@aws-sdk/client-acm-pca 3.45.0 → 3.47.2

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.
@@ -1,21 +1,28 @@
1
- import { __assign } from "tslib";
1
+ import { __assign, __awaiter, __generator } from "tslib";
2
2
  import packageInfo from "../package.json";
3
3
  import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts";
4
4
  import { NODE_REGION_CONFIG_FILE_OPTIONS, NODE_REGION_CONFIG_OPTIONS, NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, } from "@aws-sdk/config-resolver";
5
5
  import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node";
6
6
  import { Hash } from "@aws-sdk/hash-node";
7
- import { NODE_MAX_ATTEMPT_CONFIG_OPTIONS, NODE_RETRY_MODE_CONFIG_OPTIONS } from "@aws-sdk/middleware-retry";
7
+ import { DEFAULT_RETRY_MODE, NODE_MAX_ATTEMPT_CONFIG_OPTIONS, NODE_RETRY_MODE_CONFIG_OPTIONS, } from "@aws-sdk/middleware-retry";
8
8
  import { loadConfig as loadNodeConfig } from "@aws-sdk/node-config-provider";
9
- import { NodeHttpHandler, streamCollector } from "@aws-sdk/node-http-handler";
9
+ import { NodeHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/node-http-handler";
10
10
  import { fromBase64, toBase64 } from "@aws-sdk/util-base64-node";
11
11
  import { calculateBodyLength } from "@aws-sdk/util-body-length-node";
12
12
  import { defaultUserAgent } from "@aws-sdk/util-user-agent-node";
13
13
  import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-node";
14
14
  import { getRuntimeConfig as getSharedRuntimeConfig } from "./runtimeConfig.shared";
15
- import { emitWarningIfUnsupportedVersion } from "@aws-sdk/smithy-client";
15
+ import { loadConfigsForDefaultMode } from "@aws-sdk/smithy-client";
16
+ import { resolveDefaultsModeConfig } from "@aws-sdk/util-defaults-mode-node";
16
17
  export var getRuntimeConfig = function (config) {
17
18
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
18
- emitWarningIfUnsupportedVersion(process.version);
19
+ var defaultsMode = resolveDefaultsModeConfig(config);
20
+ var defaultConfigProvider = function () { return defaultsMode().then(loadConfigsForDefaultMode); };
19
21
  var clientSharedValues = getSharedRuntimeConfig(config);
20
- return __assign(__assign(__assign({}, clientSharedValues), config), { runtime: "node", base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : fromBase64, base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : toBase64, bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : calculateBodyLength, credentialDefaultProvider: (_d = config === null || config === void 0 ? void 0 : config.credentialDefaultProvider) !== null && _d !== void 0 ? _d : decorateDefaultCredentialProvider(credentialDefaultProvider), defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), maxAttempts: (_f = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _f !== void 0 ? _f : loadNodeConfig(NODE_MAX_ATTEMPT_CONFIG_OPTIONS), region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : loadNodeConfig(NODE_REGION_CONFIG_OPTIONS, NODE_REGION_CONFIG_FILE_OPTIONS), requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new NodeHttpHandler(), retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : loadNodeConfig(NODE_RETRY_MODE_CONFIG_OPTIONS), sha256: (_k = config === null || config === void 0 ? void 0 : config.sha256) !== null && _k !== void 0 ? _k : Hash.bind(null, "sha256"), streamCollector: (_l = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _l !== void 0 ? _l : streamCollector, useDualstackEndpoint: (_m = config === null || config === void 0 ? void 0 : config.useDualstackEndpoint) !== null && _m !== void 0 ? _m : loadNodeConfig(NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS), useFipsEndpoint: (_o = config === null || config === void 0 ? void 0 : config.useFipsEndpoint) !== null && _o !== void 0 ? _o : loadNodeConfig(NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS), utf8Decoder: (_p = config === null || config === void 0 ? void 0 : config.utf8Decoder) !== null && _p !== void 0 ? _p : fromUtf8, utf8Encoder: (_q = config === null || config === void 0 ? void 0 : config.utf8Encoder) !== null && _q !== void 0 ? _q : toUtf8 });
22
+ return __assign(__assign(__assign({}, clientSharedValues), config), { runtime: "node", defaultsMode: defaultsMode, base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : fromBase64, base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : toBase64, bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : calculateBodyLength, credentialDefaultProvider: (_d = config === null || config === void 0 ? void 0 : config.credentialDefaultProvider) !== null && _d !== void 0 ? _d : decorateDefaultCredentialProvider(credentialDefaultProvider), defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), maxAttempts: (_f = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _f !== void 0 ? _f : loadNodeConfig(NODE_MAX_ATTEMPT_CONFIG_OPTIONS), region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : loadNodeConfig(NODE_REGION_CONFIG_OPTIONS, NODE_REGION_CONFIG_FILE_OPTIONS), requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new RequestHandler(defaultConfigProvider), retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : loadNodeConfig(__assign(__assign({}, NODE_RETRY_MODE_CONFIG_OPTIONS), { default: function () { return __awaiter(void 0, void 0, void 0, function () { return __generator(this, function (_a) {
23
+ switch (_a.label) {
24
+ case 0: return [4, defaultConfigProvider()];
25
+ case 1: return [2, (_a.sent()).retryMode || DEFAULT_RETRY_MODE];
26
+ }
27
+ }); }); } })), sha256: (_k = config === null || config === void 0 ? void 0 : config.sha256) !== null && _k !== void 0 ? _k : Hash.bind(null, "sha256"), streamCollector: (_l = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _l !== void 0 ? _l : streamCollector, useDualstackEndpoint: (_m = config === null || config === void 0 ? void 0 : config.useDualstackEndpoint) !== null && _m !== void 0 ? _m : loadNodeConfig(NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS), useFipsEndpoint: (_o = config === null || config === void 0 ? void 0 : config.useFipsEndpoint) !== null && _o !== void 0 ? _o : loadNodeConfig(NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS), utf8Decoder: (_p = config === null || config === void 0 ? void 0 : config.utf8Decoder) !== null && _p !== void 0 ? _p : fromUtf8, utf8Encoder: (_q = config === null || config === void 0 ? void 0 : config.utf8Encoder) !== null && _q !== void 0 ? _q : toUtf8 });
21
28
  };
@@ -4,7 +4,7 @@ import { RetryInputConfig, RetryResolvedConfig } from "@aws-sdk/middleware-retry
4
4
  import { AwsAuthInputConfig, AwsAuthResolvedConfig } from "@aws-sdk/middleware-signing";
5
5
  import { UserAgentInputConfig, UserAgentResolvedConfig } from "@aws-sdk/middleware-user-agent";
6
6
  import { HttpHandler as __HttpHandler } from "@aws-sdk/protocol-http";
7
- import { Client as __Client, SmithyConfiguration as __SmithyConfiguration, SmithyResolvedConfiguration as __SmithyResolvedConfiguration } from "@aws-sdk/smithy-client";
7
+ import { Client as __Client, DefaultsMode, SmithyConfiguration as __SmithyConfiguration, SmithyResolvedConfiguration as __SmithyResolvedConfiguration } from "@aws-sdk/smithy-client";
8
8
  import { Credentials as __Credentials, Decoder as __Decoder, Encoder as __Encoder, HashConstructor as __HashConstructor, HttpHandlerOptions as __HttpHandlerOptions, Logger as __Logger, Provider as __Provider, Provider, RegionInfoProvider, StreamCollector as __StreamCollector, UrlParser as __UrlParser, UserAgent as __UserAgent } from "@aws-sdk/types";
9
9
  import { CreateCertificateAuthorityAuditReportCommandInput, CreateCertificateAuthorityAuditReportCommandOutput } from "./commands/CreateCertificateAuthorityAuditReportCommand";
10
10
  import { CreateCertificateAuthorityCommandInput, CreateCertificateAuthorityCommandOutput } from "./commands/CreateCertificateAuthorityCommand";
@@ -131,6 +131,10 @@ export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__
131
131
  * @internal
132
132
  */
133
133
  defaultUserAgentProvider?: Provider<__UserAgent>;
134
+ /**
135
+ * The {@link DefaultsMode} that will be used to determine how certain default configuration options are resolved in the SDK.
136
+ */
137
+ defaultsMode?: DefaultsMode | Provider<DefaultsMode>;
134
138
  }
135
139
  declare type ACMPCAClientConfigType = Partial<__SmithyConfiguration<__HttpHandlerOptions>> & ClientDefaults & RegionInputConfig & EndpointsInputConfig & RetryInputConfig & HostHeaderInputConfig & AwsAuthInputConfig & UserAgentInputConfig;
136
140
  /**
@@ -686,12 +686,6 @@ export interface InvalidArgsException extends __SmithyException, $MetadataBearer
686
686
  $fault: "client";
687
687
  message?: string;
688
688
  }
689
- export declare namespace InvalidArgsException {
690
- /**
691
- * @internal
692
- */
693
- const filterSensitiveLog: (obj: InvalidArgsException) => any;
694
- }
695
689
  /**
696
690
  * <p>The resource policy is invalid or is missing a required statement. For general
697
691
  * information about IAM policy and statement structure, see <a href="https://docs.aws.amazon.com/IAM/latest/UserGuide/access_policies.html#access_policies-json">Overview of JSON Policies</a>.</p>
@@ -701,12 +695,6 @@ export interface InvalidPolicyException extends __SmithyException, $MetadataBear
701
695
  $fault: "client";
702
696
  message?: string;
703
697
  }
704
- export declare namespace InvalidPolicyException {
705
- /**
706
- * @internal
707
- */
708
- const filterSensitiveLog: (obj: InvalidPolicyException) => any;
709
- }
710
698
  /**
711
699
  * <p>The tag associated with the CA is not valid. The invalid argument is contained in the
712
700
  * message field.</p>
@@ -716,12 +704,6 @@ export interface InvalidTagException extends __SmithyException, $MetadataBearer
716
704
  $fault: "client";
717
705
  message?: string;
718
706
  }
719
- export declare namespace InvalidTagException {
720
- /**
721
- * @internal
722
- */
723
- const filterSensitiveLog: (obj: InvalidTagException) => any;
724
- }
725
707
  /**
726
708
  * <p>An ACM Private CA quota has been exceeded. See the exception message returned to determine the
727
709
  * quota that was exceeded.</p>
@@ -731,12 +713,6 @@ export interface LimitExceededException extends __SmithyException, $MetadataBear
731
713
  $fault: "client";
732
714
  message?: string;
733
715
  }
734
- export declare namespace LimitExceededException {
735
- /**
736
- * @internal
737
- */
738
- const filterSensitiveLog: (obj: LimitExceededException) => any;
739
- }
740
716
  export declare enum AuditReportResponseFormat {
741
717
  CSV = "CSV",
742
718
  JSON = "JSON"
@@ -790,12 +766,6 @@ export interface InvalidArnException extends __SmithyException, $MetadataBearer
790
766
  $fault: "client";
791
767
  message?: string;
792
768
  }
793
- export declare namespace InvalidArnException {
794
- /**
795
- * @internal
796
- */
797
- const filterSensitiveLog: (obj: InvalidArnException) => any;
798
- }
799
769
  /**
800
770
  * <p>The state of the private CA does not allow this action to occur.</p>
801
771
  */
@@ -804,12 +774,6 @@ export interface InvalidStateException extends __SmithyException, $MetadataBeare
804
774
  $fault: "client";
805
775
  message?: string;
806
776
  }
807
- export declare namespace InvalidStateException {
808
- /**
809
- * @internal
810
- */
811
- const filterSensitiveLog: (obj: InvalidStateException) => any;
812
- }
813
777
  /**
814
778
  * <p>The request has failed for an unspecified reason.</p>
815
779
  */
@@ -818,12 +782,6 @@ export interface RequestFailedException extends __SmithyException, $MetadataBear
818
782
  $fault: "client";
819
783
  message?: string;
820
784
  }
821
- export declare namespace RequestFailedException {
822
- /**
823
- * @internal
824
- */
825
- const filterSensitiveLog: (obj: RequestFailedException) => any;
826
- }
827
785
  /**
828
786
  * <p>Your request is already in progress.</p>
829
787
  */
@@ -832,12 +790,6 @@ export interface RequestInProgressException extends __SmithyException, $Metadata
832
790
  $fault: "client";
833
791
  message?: string;
834
792
  }
835
- export declare namespace RequestInProgressException {
836
- /**
837
- * @internal
838
- */
839
- const filterSensitiveLog: (obj: RequestInProgressException) => any;
840
- }
841
793
  /**
842
794
  * <p>A resource such as a private CA, S3 bucket, certificate, audit report, or policy
843
795
  * cannot be found.</p>
@@ -847,12 +799,6 @@ export interface ResourceNotFoundException extends __SmithyException, $MetadataB
847
799
  $fault: "client";
848
800
  message?: string;
849
801
  }
850
- export declare namespace ResourceNotFoundException {
851
- /**
852
- * @internal
853
- */
854
- const filterSensitiveLog: (obj: ResourceNotFoundException) => any;
855
- }
856
802
  export declare enum ActionType {
857
803
  GetCertificate = "GetCertificate",
858
804
  IssueCertificate = "IssueCertificate",
@@ -898,12 +844,6 @@ export interface PermissionAlreadyExistsException extends __SmithyException, $Me
898
844
  $fault: "client";
899
845
  message?: string;
900
846
  }
901
- export declare namespace PermissionAlreadyExistsException {
902
- /**
903
- * @internal
904
- */
905
- const filterSensitiveLog: (obj: PermissionAlreadyExistsException) => any;
906
- }
907
847
  /**
908
848
  * <p>A previous update to your private CA is still ongoing.</p>
909
849
  */
@@ -912,12 +852,6 @@ export interface ConcurrentModificationException extends __SmithyException, $Met
912
852
  $fault: "client";
913
853
  message?: string;
914
854
  }
915
- export declare namespace ConcurrentModificationException {
916
- /**
917
- * @internal
918
- */
919
- const filterSensitiveLog: (obj: ConcurrentModificationException) => any;
920
- }
921
855
  export interface DeleteCertificateAuthorityRequest {
922
856
  /**
923
857
  * <p>The Amazon Resource Name (ARN) that was returned when you called <a href="https://docs.aws.amazon.com/acm-pca/latest/APIReference/API_CreateCertificateAuthority.html">CreateCertificateAuthority</a>. This must have the following form: </p>
@@ -991,12 +925,6 @@ export interface LockoutPreventedException extends __SmithyException, $MetadataB
991
925
  $fault: "client";
992
926
  message?: string;
993
927
  }
994
- export declare namespace LockoutPreventedException {
995
- /**
996
- * @internal
997
- */
998
- const filterSensitiveLog: (obj: LockoutPreventedException) => any;
999
- }
1000
928
  export interface DescribeCertificateAuthorityRequest {
1001
929
  /**
1002
930
  * <p>The Amazon Resource Name (ARN) that was returned when you called <a href="https://docs.aws.amazon.com/acm-pca/latest/APIReference/API_CreateCertificateAuthority.html">CreateCertificateAuthority</a>. This must be of the form: </p>
@@ -1319,12 +1247,6 @@ export interface CertificateMismatchException extends __SmithyException, $Metada
1319
1247
  $fault: "client";
1320
1248
  message?: string;
1321
1249
  }
1322
- export declare namespace CertificateMismatchException {
1323
- /**
1324
- * @internal
1325
- */
1326
- const filterSensitiveLog: (obj: CertificateMismatchException) => any;
1327
- }
1328
1250
  export interface ImportCertificateAuthorityCertificateRequest {
1329
1251
  /**
1330
1252
  * <p>The Amazon Resource Name (ARN) that was returned when you called <a href="https://docs.aws.amazon.com/acm-pca/latest/APIReference/API_CreateCertificateAuthority.html">CreateCertificateAuthority</a>. This must be of the form: </p>
@@ -1363,12 +1285,6 @@ export interface InvalidRequestException extends __SmithyException, $MetadataBea
1363
1285
  $fault: "client";
1364
1286
  message?: string;
1365
1287
  }
1366
- export declare namespace InvalidRequestException {
1367
- /**
1368
- * @internal
1369
- */
1370
- const filterSensitiveLog: (obj: InvalidRequestException) => any;
1371
- }
1372
1288
  /**
1373
1289
  * <p>One or more fields in the certificate are invalid.</p>
1374
1290
  */
@@ -1377,12 +1293,6 @@ export interface MalformedCertificateException extends __SmithyException, $Metad
1377
1293
  $fault: "client";
1378
1294
  message?: string;
1379
1295
  }
1380
- export declare namespace MalformedCertificateException {
1381
- /**
1382
- * @internal
1383
- */
1384
- const filterSensitiveLog: (obj: MalformedCertificateException) => any;
1385
- }
1386
1296
  export declare enum PolicyQualifierId {
1387
1297
  CPS = "CPS"
1388
1298
  }
@@ -1750,12 +1660,6 @@ export interface MalformedCSRException extends __SmithyException, $MetadataBeare
1750
1660
  $fault: "client";
1751
1661
  message?: string;
1752
1662
  }
1753
- export declare namespace MalformedCSRException {
1754
- /**
1755
- * @internal
1756
- */
1757
- const filterSensitiveLog: (obj: MalformedCSRException) => any;
1758
- }
1759
1663
  /**
1760
1664
  * <p>The token specified in the <code>NextToken</code> argument is not valid. Use the token
1761
1665
  * returned from your previous call to <a href="https://docs.aws.amazon.com/acm-pca/latest/APIReference/API_ListCertificateAuthorities.html">ListCertificateAuthorities</a>.</p>
@@ -1765,12 +1669,6 @@ export interface InvalidNextTokenException extends __SmithyException, $MetadataB
1765
1669
  $fault: "client";
1766
1670
  message?: string;
1767
1671
  }
1768
- export declare namespace InvalidNextTokenException {
1769
- /**
1770
- * @internal
1771
- */
1772
- const filterSensitiveLog: (obj: InvalidNextTokenException) => any;
1773
- }
1774
1672
  export declare enum ResourceOwner {
1775
1673
  OTHER_ACCOUNTS = "OTHER_ACCOUNTS",
1776
1674
  SELF = "SELF"
@@ -2000,12 +1898,6 @@ export interface RequestAlreadyProcessedException extends __SmithyException, $Me
2000
1898
  $fault: "client";
2001
1899
  message?: string;
2002
1900
  }
2003
- export declare namespace RequestAlreadyProcessedException {
2004
- /**
2005
- * @internal
2006
- */
2007
- const filterSensitiveLog: (obj: RequestAlreadyProcessedException) => any;
2008
- }
2009
1901
  export declare enum RevocationReason {
2010
1902
  AFFILIATION_CHANGED = "AFFILIATION_CHANGED",
2011
1903
  A_A_COMPROMISE = "A_A_COMPROMISE",
@@ -2080,12 +1972,6 @@ export interface TooManyTagsException extends __SmithyException, $MetadataBearer
2080
1972
  $fault: "client";
2081
1973
  message?: string;
2082
1974
  }
2083
- export declare namespace TooManyTagsException {
2084
- /**
2085
- * @internal
2086
- */
2087
- const filterSensitiveLog: (obj: TooManyTagsException) => any;
2088
- }
2089
1975
  export interface UntagCertificateAuthorityRequest {
2090
1976
  /**
2091
1977
  * <p>The Amazon Resource Name (ARN) that was returned when you called <a href="https://docs.aws.amazon.com/acm-pca/latest/APIReference/API_CreateCertificateAuthority.html">CreateCertificateAuthority</a>. This must be of the form: </p>
@@ -1,10 +1,11 @@
1
- import { FetchHttpHandler } from "@aws-sdk/fetch-http-handler";
1
+ import { FetchHttpHandler as RequestHandler } from "@aws-sdk/fetch-http-handler";
2
2
  import { ACMPCAClientConfig } from "./ACMPCAClient";
3
3
  /**
4
4
  * @internal
5
5
  */
6
6
  export declare const getRuntimeConfig: (config: ACMPCAClientConfig) => {
7
7
  runtime: string;
8
+ defaultsMode: import("@aws-sdk/types").Provider<import("@aws-sdk/smithy-client").ResolvedDefaultsMode>;
8
9
  base64Decoder: import("@aws-sdk/types").Decoder;
9
10
  base64Encoder: import("@aws-sdk/types").Encoder;
10
11
  bodyLengthChecker: (body: any) => number | undefined;
@@ -12,7 +13,7 @@ export declare const getRuntimeConfig: (config: ACMPCAClientConfig) => {
12
13
  defaultUserAgentProvider: import("@aws-sdk/types").Provider<import("@aws-sdk/types").UserAgent>;
13
14
  maxAttempts: number | import("@aws-sdk/types").Provider<number>;
14
15
  region: string | import("@aws-sdk/types").Provider<any>;
15
- requestHandler: (import("@aws-sdk/types").RequestHandler<any, any, import("@aws-sdk/types").HttpHandlerOptions> & import("@aws-sdk/protocol-http").HttpHandler) | FetchHttpHandler;
16
+ requestHandler: (import("@aws-sdk/types").RequestHandler<any, any, import("@aws-sdk/types").HttpHandlerOptions> & import("@aws-sdk/protocol-http").HttpHandler) | RequestHandler;
16
17
  retryMode: string | import("@aws-sdk/types").Provider<string>;
17
18
  sha256: import("@aws-sdk/types").HashConstructor;
18
19
  streamCollector: import("@aws-sdk/types").StreamCollector;
@@ -1,18 +1,19 @@
1
- import { NodeHttpHandler } from "@aws-sdk/node-http-handler";
1
+ import { NodeHttpHandler as RequestHandler } from "@aws-sdk/node-http-handler";
2
2
  import { ACMPCAClientConfig } from "./ACMPCAClient";
3
3
  /**
4
4
  * @internal
5
5
  */
6
6
  export declare const getRuntimeConfig: (config: ACMPCAClientConfig) => {
7
7
  runtime: string;
8
+ defaultsMode: import("@aws-sdk/types").Provider<import("@aws-sdk/smithy-client").ResolvedDefaultsMode>;
8
9
  base64Decoder: import("@aws-sdk/types").Decoder;
9
10
  base64Encoder: import("@aws-sdk/types").Encoder;
10
11
  bodyLengthChecker: (body: any) => number | undefined;
11
- credentialDefaultProvider: import("@aws-sdk/client-sts/dist-types/defaultStsRoleAssumers").DefaultCredentialProvider;
12
+ credentialDefaultProvider: (input: any) => import("@aws-sdk/types").Provider<import("@aws-sdk/types").Credentials>;
12
13
  defaultUserAgentProvider: import("@aws-sdk/types").Provider<import("@aws-sdk/types").UserAgent>;
13
14
  maxAttempts: number | import("@aws-sdk/types").Provider<number>;
14
15
  region: string | import("@aws-sdk/types").Provider<string>;
15
- requestHandler: (import("@aws-sdk/types").RequestHandler<any, any, import("@aws-sdk/types").HttpHandlerOptions> & import("@aws-sdk/protocol-http").HttpHandler) | NodeHttpHandler;
16
+ requestHandler: (import("@aws-sdk/types").RequestHandler<any, any, import("@aws-sdk/types").HttpHandlerOptions> & import("@aws-sdk/protocol-http").HttpHandler) | RequestHandler;
16
17
  retryMode: string | import("@aws-sdk/types").Provider<string>;
17
18
  sha256: import("@aws-sdk/types").HashConstructor;
18
19
  streamCollector: import("@aws-sdk/types").StreamCollector;
@@ -25,6 +25,7 @@ export declare const getRuntimeConfig: (config: ACMPCAClientConfig) => {
25
25
  credentialDefaultProvider: (input: any) => import("@aws-sdk/types").Provider<import("@aws-sdk/types").Credentials>;
26
26
  regionInfoProvider: import("@aws-sdk/types").RegionInfoProvider;
27
27
  defaultUserAgentProvider: import("@aws-sdk/types").Provider<import("@aws-sdk/types").UserAgent>;
28
+ defaultsMode: import("@aws-sdk/smithy-client").DefaultsMode | import("@aws-sdk/types").Provider<import("@aws-sdk/smithy-client").DefaultsMode> | import("@aws-sdk/types").Provider<import("@aws-sdk/smithy-client").ResolvedDefaultsMode>;
28
29
  endpoint?: string | import("@aws-sdk/types").Endpoint | import("@aws-sdk/types").Provider<import("@aws-sdk/types").Endpoint> | undefined;
29
30
  tls?: boolean | undefined;
30
31
  retryStrategy?: import("@aws-sdk/types").RetryStrategy | undefined;
@@ -4,7 +4,7 @@ import { RetryInputConfig, RetryResolvedConfig } from "@aws-sdk/middleware-retry
4
4
  import { AwsAuthInputConfig, AwsAuthResolvedConfig } from "@aws-sdk/middleware-signing";
5
5
  import { UserAgentInputConfig, UserAgentResolvedConfig } from "@aws-sdk/middleware-user-agent";
6
6
  import { HttpHandler as __HttpHandler } from "@aws-sdk/protocol-http";
7
- import { Client as __Client, SmithyConfiguration as __SmithyConfiguration, SmithyResolvedConfiguration as __SmithyResolvedConfiguration } from "@aws-sdk/smithy-client";
7
+ import { Client as __Client, DefaultsMode, SmithyConfiguration as __SmithyConfiguration, SmithyResolvedConfiguration as __SmithyResolvedConfiguration } from "@aws-sdk/smithy-client";
8
8
  import { Credentials as __Credentials, Decoder as __Decoder, Encoder as __Encoder, HashConstructor as __HashConstructor, HttpHandlerOptions as __HttpHandlerOptions, Logger as __Logger, Provider as __Provider, Provider, RegionInfoProvider, StreamCollector as __StreamCollector, UrlParser as __UrlParser, UserAgent as __UserAgent } from "@aws-sdk/types";
9
9
  import { CreateCertificateAuthorityAuditReportCommandInput, CreateCertificateAuthorityAuditReportCommandOutput } from "./commands/CreateCertificateAuthorityAuditReportCommand";
10
10
  import { CreateCertificateAuthorityCommandInput, CreateCertificateAuthorityCommandOutput } from "./commands/CreateCertificateAuthorityCommand";
@@ -74,6 +74,8 @@ export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__
74
74
  regionInfoProvider?: RegionInfoProvider;
75
75
 
76
76
  defaultUserAgentProvider?: Provider<__UserAgent>;
77
+
78
+ defaultsMode?: DefaultsMode | Provider<DefaultsMode>;
77
79
  }
78
80
  declare type ACMPCAClientConfigType = Partial<__SmithyConfiguration<__HttpHandlerOptions>> & ClientDefaults & RegionInputConfig & EndpointsInputConfig & RetryInputConfig & HostHeaderInputConfig & AwsAuthInputConfig & UserAgentInputConfig;
79
81
 
@@ -265,40 +265,24 @@ export interface InvalidArgsException extends __SmithyException, $MetadataBearer
265
265
  $fault: "client";
266
266
  message?: string;
267
267
  }
268
- export declare namespace InvalidArgsException {
269
-
270
- const filterSensitiveLog: (obj: InvalidArgsException) => any;
271
- }
272
268
 
273
269
  export interface InvalidPolicyException extends __SmithyException, $MetadataBearer {
274
270
  name: "InvalidPolicyException";
275
271
  $fault: "client";
276
272
  message?: string;
277
273
  }
278
- export declare namespace InvalidPolicyException {
279
-
280
- const filterSensitiveLog: (obj: InvalidPolicyException) => any;
281
- }
282
274
 
283
275
  export interface InvalidTagException extends __SmithyException, $MetadataBearer {
284
276
  name: "InvalidTagException";
285
277
  $fault: "client";
286
278
  message?: string;
287
279
  }
288
- export declare namespace InvalidTagException {
289
-
290
- const filterSensitiveLog: (obj: InvalidTagException) => any;
291
- }
292
280
 
293
281
  export interface LimitExceededException extends __SmithyException, $MetadataBearer {
294
282
  name: "LimitExceededException";
295
283
  $fault: "client";
296
284
  message?: string;
297
285
  }
298
- export declare namespace LimitExceededException {
299
-
300
- const filterSensitiveLog: (obj: LimitExceededException) => any;
301
- }
302
286
  export declare enum AuditReportResponseFormat {
303
287
  CSV = "CSV",
304
288
  JSON = "JSON"
@@ -331,50 +315,30 @@ export interface InvalidArnException extends __SmithyException, $MetadataBearer
331
315
  $fault: "client";
332
316
  message?: string;
333
317
  }
334
- export declare namespace InvalidArnException {
335
-
336
- const filterSensitiveLog: (obj: InvalidArnException) => any;
337
- }
338
318
 
339
319
  export interface InvalidStateException extends __SmithyException, $MetadataBearer {
340
320
  name: "InvalidStateException";
341
321
  $fault: "client";
342
322
  message?: string;
343
323
  }
344
- export declare namespace InvalidStateException {
345
-
346
- const filterSensitiveLog: (obj: InvalidStateException) => any;
347
- }
348
324
 
349
325
  export interface RequestFailedException extends __SmithyException, $MetadataBearer {
350
326
  name: "RequestFailedException";
351
327
  $fault: "client";
352
328
  message?: string;
353
329
  }
354
- export declare namespace RequestFailedException {
355
-
356
- const filterSensitiveLog: (obj: RequestFailedException) => any;
357
- }
358
330
 
359
331
  export interface RequestInProgressException extends __SmithyException, $MetadataBearer {
360
332
  name: "RequestInProgressException";
361
333
  $fault: "client";
362
334
  message?: string;
363
335
  }
364
- export declare namespace RequestInProgressException {
365
-
366
- const filterSensitiveLog: (obj: RequestInProgressException) => any;
367
- }
368
336
 
369
337
  export interface ResourceNotFoundException extends __SmithyException, $MetadataBearer {
370
338
  name: "ResourceNotFoundException";
371
339
  $fault: "client";
372
340
  message?: string;
373
341
  }
374
- export declare namespace ResourceNotFoundException {
375
-
376
- const filterSensitiveLog: (obj: ResourceNotFoundException) => any;
377
- }
378
342
  export declare enum ActionType {
379
343
  GetCertificate = "GetCertificate",
380
344
  IssueCertificate = "IssueCertificate",
@@ -400,20 +364,12 @@ export interface PermissionAlreadyExistsException extends __SmithyException, $Me
400
364
  $fault: "client";
401
365
  message?: string;
402
366
  }
403
- export declare namespace PermissionAlreadyExistsException {
404
-
405
- const filterSensitiveLog: (obj: PermissionAlreadyExistsException) => any;
406
- }
407
367
 
408
368
  export interface ConcurrentModificationException extends __SmithyException, $MetadataBearer {
409
369
  name: "ConcurrentModificationException";
410
370
  $fault: "client";
411
371
  message?: string;
412
372
  }
413
- export declare namespace ConcurrentModificationException {
414
-
415
- const filterSensitiveLog: (obj: ConcurrentModificationException) => any;
416
- }
417
373
  export interface DeleteCertificateAuthorityRequest {
418
374
 
419
375
  CertificateAuthorityArn: string | undefined;
@@ -450,10 +406,6 @@ export interface LockoutPreventedException extends __SmithyException, $MetadataB
450
406
  $fault: "client";
451
407
  message?: string;
452
408
  }
453
- export declare namespace LockoutPreventedException {
454
-
455
- const filterSensitiveLog: (obj: LockoutPreventedException) => any;
456
- }
457
409
  export interface DescribeCertificateAuthorityRequest {
458
410
 
459
411
  CertificateAuthorityArn: string | undefined;
@@ -624,10 +576,6 @@ export interface CertificateMismatchException extends __SmithyException, $Metada
624
576
  $fault: "client";
625
577
  message?: string;
626
578
  }
627
- export declare namespace CertificateMismatchException {
628
-
629
- const filterSensitiveLog: (obj: CertificateMismatchException) => any;
630
- }
631
579
  export interface ImportCertificateAuthorityCertificateRequest {
632
580
 
633
581
  CertificateAuthorityArn: string | undefined;
@@ -646,20 +594,12 @@ export interface InvalidRequestException extends __SmithyException, $MetadataBea
646
594
  $fault: "client";
647
595
  message?: string;
648
596
  }
649
- export declare namespace InvalidRequestException {
650
-
651
- const filterSensitiveLog: (obj: InvalidRequestException) => any;
652
- }
653
597
 
654
598
  export interface MalformedCertificateException extends __SmithyException, $MetadataBearer {
655
599
  name: "MalformedCertificateException";
656
600
  $fault: "client";
657
601
  message?: string;
658
602
  }
659
- export declare namespace MalformedCertificateException {
660
-
661
- const filterSensitiveLog: (obj: MalformedCertificateException) => any;
662
- }
663
603
  export declare enum PolicyQualifierId {
664
604
  CPS = "CPS"
665
605
  }
@@ -796,20 +736,12 @@ export interface MalformedCSRException extends __SmithyException, $MetadataBeare
796
736
  $fault: "client";
797
737
  message?: string;
798
738
  }
799
- export declare namespace MalformedCSRException {
800
-
801
- const filterSensitiveLog: (obj: MalformedCSRException) => any;
802
- }
803
739
 
804
740
  export interface InvalidNextTokenException extends __SmithyException, $MetadataBearer {
805
741
  name: "InvalidNextTokenException";
806
742
  $fault: "client";
807
743
  message?: string;
808
744
  }
809
- export declare namespace InvalidNextTokenException {
810
-
811
- const filterSensitiveLog: (obj: InvalidNextTokenException) => any;
812
- }
813
745
  export declare enum ResourceOwner {
814
746
  OTHER_ACCOUNTS = "OTHER_ACCOUNTS",
815
747
  SELF = "SELF"
@@ -923,10 +855,6 @@ export interface RequestAlreadyProcessedException extends __SmithyException, $Me
923
855
  $fault: "client";
924
856
  message?: string;
925
857
  }
926
- export declare namespace RequestAlreadyProcessedException {
927
-
928
- const filterSensitiveLog: (obj: RequestAlreadyProcessedException) => any;
929
- }
930
858
  export declare enum RevocationReason {
931
859
  AFFILIATION_CHANGED = "AFFILIATION_CHANGED",
932
860
  A_A_COMPROMISE = "A_A_COMPROMISE",
@@ -965,10 +893,6 @@ export interface TooManyTagsException extends __SmithyException, $MetadataBearer
965
893
  $fault: "client";
966
894
  message?: string;
967
895
  }
968
- export declare namespace TooManyTagsException {
969
-
970
- const filterSensitiveLog: (obj: TooManyTagsException) => any;
971
- }
972
896
  export interface UntagCertificateAuthorityRequest {
973
897
 
974
898
  CertificateAuthorityArn: string | undefined;
@@ -1,8 +1,9 @@
1
- import { FetchHttpHandler } from "@aws-sdk/fetch-http-handler";
1
+ import { FetchHttpHandler as RequestHandler } from "@aws-sdk/fetch-http-handler";
2
2
  import { ACMPCAClientConfig } from "./ACMPCAClient";
3
3
 
4
4
  export declare const getRuntimeConfig: (config: ACMPCAClientConfig) => {
5
5
  runtime: string;
6
+ defaultsMode: import("@aws-sdk/types").Provider<import("@aws-sdk/smithy-client").ResolvedDefaultsMode>;
6
7
  base64Decoder: import("@aws-sdk/types").Decoder;
7
8
  base64Encoder: import("@aws-sdk/types").Encoder;
8
9
  bodyLengthChecker: (body: any) => number | undefined;
@@ -10,7 +11,7 @@ export declare const getRuntimeConfig: (config: ACMPCAClientConfig) => {
10
11
  defaultUserAgentProvider: import("@aws-sdk/types").Provider<import("@aws-sdk/types").UserAgent>;
11
12
  maxAttempts: number | import("@aws-sdk/types").Provider<number>;
12
13
  region: string | import("@aws-sdk/types").Provider<any>;
13
- requestHandler: (import("@aws-sdk/types").RequestHandler<any, any, import("@aws-sdk/types").HttpHandlerOptions> & import("@aws-sdk/protocol-http").HttpHandler) | FetchHttpHandler;
14
+ requestHandler: (import("@aws-sdk/types").RequestHandler<any, any, import("@aws-sdk/types").HttpHandlerOptions> & import("@aws-sdk/protocol-http").HttpHandler) | RequestHandler;
14
15
  retryMode: string | import("@aws-sdk/types").Provider<string>;
15
16
  sha256: import("@aws-sdk/types").HashConstructor;
16
17
  streamCollector: import("@aws-sdk/types").StreamCollector;
@@ -1,16 +1,17 @@
1
- import { NodeHttpHandler } from "@aws-sdk/node-http-handler";
1
+ import { NodeHttpHandler as RequestHandler } from "@aws-sdk/node-http-handler";
2
2
  import { ACMPCAClientConfig } from "./ACMPCAClient";
3
3
 
4
4
  export declare const getRuntimeConfig: (config: ACMPCAClientConfig) => {
5
5
  runtime: string;
6
+ defaultsMode: import("@aws-sdk/types").Provider<import("@aws-sdk/smithy-client").ResolvedDefaultsMode>;
6
7
  base64Decoder: import("@aws-sdk/types").Decoder;
7
8
  base64Encoder: import("@aws-sdk/types").Encoder;
8
9
  bodyLengthChecker: (body: any) => number | undefined;
9
- credentialDefaultProvider: import("@aws-sdk/client-sts/dist-types/defaultStsRoleAssumers").DefaultCredentialProvider;
10
+ credentialDefaultProvider: (input: any) => import("@aws-sdk/types").Provider<import("@aws-sdk/types").Credentials>;
10
11
  defaultUserAgentProvider: import("@aws-sdk/types").Provider<import("@aws-sdk/types").UserAgent>;
11
12
  maxAttempts: number | import("@aws-sdk/types").Provider<number>;
12
13
  region: string | import("@aws-sdk/types").Provider<string>;
13
- requestHandler: (import("@aws-sdk/types").RequestHandler<any, any, import("@aws-sdk/types").HttpHandlerOptions> & import("@aws-sdk/protocol-http").HttpHandler) | NodeHttpHandler;
14
+ requestHandler: (import("@aws-sdk/types").RequestHandler<any, any, import("@aws-sdk/types").HttpHandlerOptions> & import("@aws-sdk/protocol-http").HttpHandler) | RequestHandler;
14
15
  retryMode: string | import("@aws-sdk/types").Provider<string>;
15
16
  sha256: import("@aws-sdk/types").HashConstructor;
16
17
  streamCollector: import("@aws-sdk/types").StreamCollector;
@@ -23,6 +23,7 @@ export declare const getRuntimeConfig: (config: ACMPCAClientConfig) => {
23
23
  credentialDefaultProvider: (input: any) => import("@aws-sdk/types").Provider<import("@aws-sdk/types").Credentials>;
24
24
  regionInfoProvider: import("@aws-sdk/types").RegionInfoProvider;
25
25
  defaultUserAgentProvider: import("@aws-sdk/types").Provider<import("@aws-sdk/types").UserAgent>;
26
+ defaultsMode: import("@aws-sdk/smithy-client").DefaultsMode | import("@aws-sdk/types").Provider<import("@aws-sdk/smithy-client").DefaultsMode> | import("@aws-sdk/types").Provider<import("@aws-sdk/smithy-client").ResolvedDefaultsMode>;
26
27
  endpoint?: string | import("@aws-sdk/types").Endpoint | import("@aws-sdk/types").Provider<import("@aws-sdk/types").Endpoint> | undefined;
27
28
  tls?: boolean | undefined;
28
29
  retryStrategy?: import("@aws-sdk/types").RetryStrategy | undefined;