@aws-sdk/client-acm-pca 3.35.0 → 3.38.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +47 -0
- package/dist-cjs/ACMPCA.js +0 -21
- package/dist-cjs/ACMPCAClient.js +0 -26
- package/dist-cjs/commands/CreateCertificateAuthorityAuditReportCommand.js +0 -40
- package/dist-cjs/commands/CreateCertificateAuthorityCommand.js +0 -45
- package/dist-cjs/commands/CreatePermissionCommand.js +0 -51
- package/dist-cjs/commands/DeleteCertificateAuthorityCommand.js +0 -44
- package/dist-cjs/commands/DeletePermissionCommand.js +0 -53
- package/dist-cjs/commands/DeletePolicyCommand.js +0 -59
- package/dist-cjs/commands/DescribeCertificateAuthorityAuditReportCommand.js +0 -28
- package/dist-cjs/commands/DescribeCertificateAuthorityCommand.js +0 -65
- package/dist-cjs/commands/GetCertificateAuthorityCertificateCommand.js +0 -28
- package/dist-cjs/commands/GetCertificateAuthorityCsrCommand.js +0 -29
- package/dist-cjs/commands/GetCertificateCommand.js +0 -32
- package/dist-cjs/commands/GetPolicyCommand.js +0 -55
- package/dist-cjs/commands/ImportCertificateAuthorityCertificateCommand.js +0 -152
- package/dist-cjs/commands/IssueCertificateCommand.js +0 -32
- package/dist-cjs/commands/ListCertificateAuthoritiesCommand.js +0 -25
- package/dist-cjs/commands/ListPermissionsCommand.js +0 -52
- package/dist-cjs/commands/ListTagsCommand.js +0 -28
- package/dist-cjs/commands/PutPolicyCommand.js +0 -56
- package/dist-cjs/commands/RestoreCertificateAuthorityCommand.js +0 -35
- package/dist-cjs/commands/RevokeCertificateCommand.js +0 -44
- package/dist-cjs/commands/TagCertificateAuthorityCommand.js +0 -32
- package/dist-cjs/commands/UntagCertificateAuthorityCommand.js +0 -29
- package/dist-cjs/commands/UpdateCertificateAuthorityCommand.js +0 -35
- package/dist-cjs/commands/index.js +26 -0
- package/dist-cjs/endpoints.js +1 -2
- package/dist-cjs/index.js +5 -33
- package/dist-cjs/models/index.js +0 -1
- package/dist-cjs/models/models_0.js +0 -229
- package/dist-cjs/pagination/Interfaces.js +0 -1
- package/dist-cjs/pagination/ListCertificateAuthoritiesPaginator.js +0 -11
- package/dist-cjs/pagination/ListPermissionsPaginator.js +0 -11
- package/dist-cjs/pagination/ListTagsPaginator.js +0 -11
- package/dist-cjs/pagination/index.js +7 -0
- package/dist-cjs/protocols/Aws_json1_1.js +0 -6
- package/dist-cjs/runtimeConfig.browser.js +1 -6
- package/dist-cjs/runtimeConfig.js +2 -7
- package/dist-cjs/runtimeConfig.native.js +0 -4
- package/dist-cjs/runtimeConfig.shared.js +0 -4
- package/dist-cjs/waiters/index.js +6 -0
- package/dist-cjs/waiters/waitForAuditReportCreated.js +0 -10
- package/dist-cjs/waiters/waitForCertificateAuthorityCSRCreated.js +0 -10
- package/dist-cjs/waiters/waitForCertificateIssued.js +0 -10
- package/dist-es/ACMPCA.js +0 -1
- package/dist-es/ACMPCAClient.js +0 -1
- package/dist-es/commands/CreateCertificateAuthorityAuditReportCommand.js +0 -1
- package/dist-es/commands/CreateCertificateAuthorityCommand.js +0 -1
- package/dist-es/commands/CreatePermissionCommand.js +0 -1
- package/dist-es/commands/DeleteCertificateAuthorityCommand.js +0 -1
- package/dist-es/commands/DeletePermissionCommand.js +0 -1
- package/dist-es/commands/DeletePolicyCommand.js +0 -1
- package/dist-es/commands/DescribeCertificateAuthorityAuditReportCommand.js +0 -1
- package/dist-es/commands/DescribeCertificateAuthorityCommand.js +0 -1
- package/dist-es/commands/GetCertificateAuthorityCertificateCommand.js +0 -1
- package/dist-es/commands/GetCertificateAuthorityCsrCommand.js +0 -1
- package/dist-es/commands/GetCertificateCommand.js +0 -1
- package/dist-es/commands/GetPolicyCommand.js +0 -1
- package/dist-es/commands/ImportCertificateAuthorityCertificateCommand.js +0 -1
- package/dist-es/commands/IssueCertificateCommand.js +0 -1
- package/dist-es/commands/ListCertificateAuthoritiesCommand.js +0 -1
- package/dist-es/commands/ListPermissionsCommand.js +0 -1
- package/dist-es/commands/ListTagsCommand.js +0 -1
- package/dist-es/commands/PutPolicyCommand.js +0 -1
- package/dist-es/commands/RestoreCertificateAuthorityCommand.js +0 -1
- package/dist-es/commands/RevokeCertificateCommand.js +0 -1
- package/dist-es/commands/TagCertificateAuthorityCommand.js +0 -1
- package/dist-es/commands/UntagCertificateAuthorityCommand.js +0 -1
- package/dist-es/commands/UpdateCertificateAuthorityCommand.js +0 -1
- package/dist-es/commands/index.js +23 -0
- package/dist-es/endpoints.js +1 -2
- package/dist-es/index.js +5 -33
- package/dist-es/models/index.js +0 -1
- package/dist-es/models/models_0.js +0 -1
- package/dist-es/pagination/Interfaces.js +0 -1
- package/dist-es/pagination/ListCertificateAuthoritiesPaginator.js +0 -1
- package/dist-es/pagination/ListPermissionsPaginator.js +0 -1
- package/dist-es/pagination/ListTagsPaginator.js +0 -1
- package/dist-es/pagination/index.js +4 -0
- package/dist-es/protocols/Aws_json1_1.js +0 -1
- package/dist-es/runtimeConfig.browser.js +1 -2
- package/dist-es/runtimeConfig.js +2 -3
- package/dist-es/runtimeConfig.native.js +0 -1
- package/dist-es/runtimeConfig.shared.js +0 -1
- package/dist-es/waiters/index.js +3 -0
- package/dist-es/waiters/waitForAuditReportCreated.js +0 -1
- package/dist-es/waiters/waitForCertificateAuthorityCSRCreated.js +0 -1
- package/dist-es/waiters/waitForCertificateIssued.js +0 -1
- package/dist-types/commands/index.d.ts +23 -0
- package/dist-types/index.d.ts +5 -32
- package/dist-types/pagination/index.d.ts +4 -0
- package/dist-types/ts3.4/ACMPCA.d.ts +24 -563
- package/dist-types/ts3.4/ACMPCAClient.d.ts +24 -106
- package/dist-types/ts3.4/commands/CreateCertificateAuthorityAuditReportCommand.d.ts +2 -35
- package/dist-types/ts3.4/commands/CreateCertificateAuthorityCommand.d.ts +2 -40
- package/dist-types/ts3.4/commands/CreatePermissionCommand.d.ts +2 -46
- package/dist-types/ts3.4/commands/DeleteCertificateAuthorityCommand.d.ts +2 -39
- package/dist-types/ts3.4/commands/DeletePermissionCommand.d.ts +2 -48
- package/dist-types/ts3.4/commands/DeletePolicyCommand.d.ts +2 -54
- package/dist-types/ts3.4/commands/DescribeCertificateAuthorityAuditReportCommand.d.ts +2 -23
- package/dist-types/ts3.4/commands/DescribeCertificateAuthorityCommand.d.ts +2 -60
- package/dist-types/ts3.4/commands/GetCertificateAuthorityCertificateCommand.d.ts +2 -23
- package/dist-types/ts3.4/commands/GetCertificateAuthorityCsrCommand.d.ts +2 -24
- package/dist-types/ts3.4/commands/GetCertificateCommand.d.ts +2 -27
- package/dist-types/ts3.4/commands/GetPolicyCommand.d.ts +2 -50
- package/dist-types/ts3.4/commands/ImportCertificateAuthorityCertificateCommand.d.ts +2 -147
- package/dist-types/ts3.4/commands/IssueCertificateCommand.d.ts +2 -27
- package/dist-types/ts3.4/commands/ListCertificateAuthoritiesCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/ListPermissionsCommand.d.ts +2 -47
- package/dist-types/ts3.4/commands/ListTagsCommand.d.ts +2 -23
- package/dist-types/ts3.4/commands/PutPolicyCommand.d.ts +2 -51
- package/dist-types/ts3.4/commands/RestoreCertificateAuthorityCommand.d.ts +2 -30
- package/dist-types/ts3.4/commands/RevokeCertificateCommand.d.ts +2 -39
- package/dist-types/ts3.4/commands/TagCertificateAuthorityCommand.d.ts +2 -27
- package/dist-types/ts3.4/commands/UntagCertificateAuthorityCommand.d.ts +2 -24
- package/dist-types/ts3.4/commands/UpdateCertificateAuthorityCommand.d.ts +2 -30
- package/dist-types/ts3.4/commands/index.d.ts +23 -0
- package/dist-types/ts3.4/index.d.ts +5 -32
- package/dist-types/ts3.4/models/models_0.d.ts +289 -1432
- package/dist-types/ts3.4/pagination/index.d.ts +4 -0
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +1 -3
- package/dist-types/ts3.4/runtimeConfig.d.ts +1 -3
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +1 -3
- package/dist-types/ts3.4/runtimeConfig.shared.d.ts +1 -3
- package/dist-types/ts3.4/waiters/index.d.ts +3 -0
- package/dist-types/ts3.4/waiters/waitForAuditReportCreated.d.ts +2 -9
- package/dist-types/ts3.4/waiters/waitForCertificateAuthorityCSRCreated.d.ts +2 -9
- package/dist-types/ts3.4/waiters/waitForCertificateIssued.d.ts +2 -9
- package/dist-types/waiters/index.d.ts +3 -0
- package/package.json +34 -31
- package/dist-cjs/ACMPCA.js.map +0 -1
- package/dist-cjs/ACMPCAClient.js.map +0 -1
- package/dist-cjs/commands/CreateCertificateAuthorityAuditReportCommand.js.map +0 -1
- package/dist-cjs/commands/CreateCertificateAuthorityCommand.js.map +0 -1
- package/dist-cjs/commands/CreatePermissionCommand.js.map +0 -1
- package/dist-cjs/commands/DeleteCertificateAuthorityCommand.js.map +0 -1
- package/dist-cjs/commands/DeletePermissionCommand.js.map +0 -1
- package/dist-cjs/commands/DeletePolicyCommand.js.map +0 -1
- package/dist-cjs/commands/DescribeCertificateAuthorityAuditReportCommand.js.map +0 -1
- package/dist-cjs/commands/DescribeCertificateAuthorityCommand.js.map +0 -1
- package/dist-cjs/commands/GetCertificateAuthorityCertificateCommand.js.map +0 -1
- package/dist-cjs/commands/GetCertificateAuthorityCsrCommand.js.map +0 -1
- package/dist-cjs/commands/GetCertificateCommand.js.map +0 -1
- package/dist-cjs/commands/GetPolicyCommand.js.map +0 -1
- package/dist-cjs/commands/ImportCertificateAuthorityCertificateCommand.js.map +0 -1
- package/dist-cjs/commands/IssueCertificateCommand.js.map +0 -1
- package/dist-cjs/commands/ListCertificateAuthoritiesCommand.js.map +0 -1
- package/dist-cjs/commands/ListPermissionsCommand.js.map +0 -1
- package/dist-cjs/commands/ListTagsCommand.js.map +0 -1
- package/dist-cjs/commands/PutPolicyCommand.js.map +0 -1
- package/dist-cjs/commands/RestoreCertificateAuthorityCommand.js.map +0 -1
- package/dist-cjs/commands/RevokeCertificateCommand.js.map +0 -1
- package/dist-cjs/commands/TagCertificateAuthorityCommand.js.map +0 -1
- package/dist-cjs/commands/UntagCertificateAuthorityCommand.js.map +0 -1
- package/dist-cjs/commands/UpdateCertificateAuthorityCommand.js.map +0 -1
- package/dist-cjs/endpoints.js.map +0 -1
- package/dist-cjs/index.js.map +0 -1
- package/dist-cjs/models/index.js.map +0 -1
- package/dist-cjs/models/models_0.js.map +0 -1
- package/dist-cjs/pagination/Interfaces.js.map +0 -1
- package/dist-cjs/pagination/ListCertificateAuthoritiesPaginator.js.map +0 -1
- package/dist-cjs/pagination/ListPermissionsPaginator.js.map +0 -1
- package/dist-cjs/pagination/ListTagsPaginator.js.map +0 -1
- package/dist-cjs/protocols/Aws_json1_1.js.map +0 -1
- package/dist-cjs/runtimeConfig.browser.js.map +0 -1
- package/dist-cjs/runtimeConfig.js.map +0 -1
- package/dist-cjs/runtimeConfig.native.js.map +0 -1
- package/dist-cjs/runtimeConfig.shared.js.map +0 -1
- package/dist-cjs/waiters/waitForAuditReportCreated.js.map +0 -1
- package/dist-cjs/waiters/waitForCertificateAuthorityCSRCreated.js.map +0 -1
- package/dist-cjs/waiters/waitForCertificateIssued.js.map +0 -1
- package/dist-es/ACMPCA.js.map +0 -1
- package/dist-es/ACMPCAClient.js.map +0 -1
- package/dist-es/commands/CreateCertificateAuthorityAuditReportCommand.js.map +0 -1
- package/dist-es/commands/CreateCertificateAuthorityCommand.js.map +0 -1
- package/dist-es/commands/CreatePermissionCommand.js.map +0 -1
- package/dist-es/commands/DeleteCertificateAuthorityCommand.js.map +0 -1
- package/dist-es/commands/DeletePermissionCommand.js.map +0 -1
- package/dist-es/commands/DeletePolicyCommand.js.map +0 -1
- package/dist-es/commands/DescribeCertificateAuthorityAuditReportCommand.js.map +0 -1
- package/dist-es/commands/DescribeCertificateAuthorityCommand.js.map +0 -1
- package/dist-es/commands/GetCertificateAuthorityCertificateCommand.js.map +0 -1
- package/dist-es/commands/GetCertificateAuthorityCsrCommand.js.map +0 -1
- package/dist-es/commands/GetCertificateCommand.js.map +0 -1
- package/dist-es/commands/GetPolicyCommand.js.map +0 -1
- package/dist-es/commands/ImportCertificateAuthorityCertificateCommand.js.map +0 -1
- package/dist-es/commands/IssueCertificateCommand.js.map +0 -1
- package/dist-es/commands/ListCertificateAuthoritiesCommand.js.map +0 -1
- package/dist-es/commands/ListPermissionsCommand.js.map +0 -1
- package/dist-es/commands/ListTagsCommand.js.map +0 -1
- package/dist-es/commands/PutPolicyCommand.js.map +0 -1
- package/dist-es/commands/RestoreCertificateAuthorityCommand.js.map +0 -1
- package/dist-es/commands/RevokeCertificateCommand.js.map +0 -1
- package/dist-es/commands/TagCertificateAuthorityCommand.js.map +0 -1
- package/dist-es/commands/UntagCertificateAuthorityCommand.js.map +0 -1
- package/dist-es/commands/UpdateCertificateAuthorityCommand.js.map +0 -1
- package/dist-es/endpoints.js.map +0 -1
- package/dist-es/index.js.map +0 -1
- package/dist-es/models/index.js.map +0 -1
- package/dist-es/models/models_0.js.map +0 -1
- package/dist-es/pagination/Interfaces.js.map +0 -1
- package/dist-es/pagination/ListCertificateAuthoritiesPaginator.js.map +0 -1
- package/dist-es/pagination/ListPermissionsPaginator.js.map +0 -1
- package/dist-es/pagination/ListTagsPaginator.js.map +0 -1
- package/dist-es/protocols/Aws_json1_1.js.map +0 -1
- package/dist-es/runtimeConfig.browser.js.map +0 -1
- package/dist-es/runtimeConfig.js.map +0 -1
- package/dist-es/runtimeConfig.native.js.map +0 -1
- package/dist-es/runtimeConfig.shared.js.map +0 -1
- package/dist-es/waiters/waitForAuditReportCreated.js.map +0 -1
- package/dist-es/waiters/waitForCertificateAuthorityCSRCreated.js.map +0 -1
- package/dist-es/waiters/waitForCertificateIssued.js.map +0 -1
- package/jest.config.js +0 -4
- package/src/ACMPCA.ts +0 -1323
- package/src/ACMPCAClient.ts +0 -361
- package/src/commands/CreateCertificateAuthorityAuditReportCommand.ts +0 -122
- package/src/commands/CreateCertificateAuthorityCommand.ts +0 -118
- package/src/commands/CreatePermissionCommand.ts +0 -121
- package/src/commands/DeleteCertificateAuthorityCommand.ts +0 -117
- package/src/commands/DeletePermissionCommand.ts +0 -123
- package/src/commands/DeletePolicyCommand.ts +0 -129
- package/src/commands/DescribeCertificateAuthorityAuditReportCommand.ts +0 -113
- package/src/commands/DescribeCertificateAuthorityCommand.ts +0 -140
- package/src/commands/GetCertificateAuthorityCertificateCommand.ts +0 -109
- package/src/commands/GetCertificateAuthorityCsrCommand.ts +0 -102
- package/src/commands/GetCertificateCommand.ts +0 -102
- package/src/commands/GetPolicyCommand.ts +0 -122
- package/src/commands/ImportCertificateAuthorityCertificateCommand.ts +0 -229
- package/src/commands/IssueCertificateCommand.ts +0 -102
- package/src/commands/ListCertificateAuthoritiesCommand.ts +0 -98
- package/src/commands/ListPermissionsCommand.ts +0 -122
- package/src/commands/ListTagsCommand.ts +0 -91
- package/src/commands/PutPolicyCommand.ts +0 -123
- package/src/commands/RestoreCertificateAuthorityCommand.ts +0 -108
- package/src/commands/RevokeCertificateCommand.ts +0 -114
- package/src/commands/TagCertificateAuthorityCommand.ts +0 -102
- package/src/commands/UntagCertificateAuthorityCommand.ts +0 -102
- package/src/commands/UpdateCertificateAuthorityCommand.ts +0 -108
- package/src/endpoints.ts +0 -91
- package/src/index.ts +0 -33
- package/src/models/index.ts +0 -1
- package/src/models/models_0.ts +0 -2571
- package/src/pagination/Interfaces.ts +0 -8
- package/src/pagination/ListCertificateAuthoritiesPaginator.ts +0 -59
- package/src/pagination/ListPermissionsPaginator.ts +0 -59
- package/src/pagination/ListTagsPaginator.ts +0 -55
- package/src/protocols/Aws_json1_1.ts +0 -3845
- package/src/runtimeConfig.browser.ts +0 -41
- package/src/runtimeConfig.native.ts +0 -17
- package/src/runtimeConfig.shared.ts +0 -17
- package/src/runtimeConfig.ts +0 -46
- package/src/waiters/waitForAuditReportCreated.ts +0 -61
- package/src/waiters/waitForCertificateAuthorityCSRCreated.ts +0 -49
- package/src/waiters/waitForCertificateIssued.ts +0 -43
- package/tsconfig.es.json +0 -10
- package/tsconfig.json +0 -33
- package/tsconfig.types.json +0 -9
|
@@ -4,22 +4,13 @@ exports.paginateListCertificateAuthorities = void 0;
|
|
|
4
4
|
const ACMPCA_1 = require("../ACMPCA");
|
|
5
5
|
const ACMPCAClient_1 = require("../ACMPCAClient");
|
|
6
6
|
const ListCertificateAuthoritiesCommand_1 = require("../commands/ListCertificateAuthoritiesCommand");
|
|
7
|
-
/**
|
|
8
|
-
* @private
|
|
9
|
-
*/
|
|
10
7
|
const makePagedClientRequest = async (client, input, ...args) => {
|
|
11
|
-
// @ts-ignore
|
|
12
8
|
return await client.send(new ListCertificateAuthoritiesCommand_1.ListCertificateAuthoritiesCommand(input), ...args);
|
|
13
9
|
};
|
|
14
|
-
/**
|
|
15
|
-
* @private
|
|
16
|
-
*/
|
|
17
10
|
const makePagedRequest = async (client, input, ...args) => {
|
|
18
|
-
// @ts-ignore
|
|
19
11
|
return await client.listCertificateAuthorities(input, ...args);
|
|
20
12
|
};
|
|
21
13
|
async function* paginateListCertificateAuthorities(config, input, ...additionalArguments) {
|
|
22
|
-
// ToDo: replace with actual type instead of typeof input.NextToken
|
|
23
14
|
let token = config.startingToken || undefined;
|
|
24
15
|
let hasNext = true;
|
|
25
16
|
let page;
|
|
@@ -39,8 +30,6 @@ async function* paginateListCertificateAuthorities(config, input, ...additionalA
|
|
|
39
30
|
token = page.NextToken;
|
|
40
31
|
hasNext = !!token;
|
|
41
32
|
}
|
|
42
|
-
// @ts-ignore
|
|
43
33
|
return undefined;
|
|
44
34
|
}
|
|
45
35
|
exports.paginateListCertificateAuthorities = paginateListCertificateAuthorities;
|
|
46
|
-
//# sourceMappingURL=ListCertificateAuthoritiesPaginator.js.map
|
|
@@ -4,22 +4,13 @@ exports.paginateListPermissions = void 0;
|
|
|
4
4
|
const ACMPCA_1 = require("../ACMPCA");
|
|
5
5
|
const ACMPCAClient_1 = require("../ACMPCAClient");
|
|
6
6
|
const ListPermissionsCommand_1 = require("../commands/ListPermissionsCommand");
|
|
7
|
-
/**
|
|
8
|
-
* @private
|
|
9
|
-
*/
|
|
10
7
|
const makePagedClientRequest = async (client, input, ...args) => {
|
|
11
|
-
// @ts-ignore
|
|
12
8
|
return await client.send(new ListPermissionsCommand_1.ListPermissionsCommand(input), ...args);
|
|
13
9
|
};
|
|
14
|
-
/**
|
|
15
|
-
* @private
|
|
16
|
-
*/
|
|
17
10
|
const makePagedRequest = async (client, input, ...args) => {
|
|
18
|
-
// @ts-ignore
|
|
19
11
|
return await client.listPermissions(input, ...args);
|
|
20
12
|
};
|
|
21
13
|
async function* paginateListPermissions(config, input, ...additionalArguments) {
|
|
22
|
-
// ToDo: replace with actual type instead of typeof input.NextToken
|
|
23
14
|
let token = config.startingToken || undefined;
|
|
24
15
|
let hasNext = true;
|
|
25
16
|
let page;
|
|
@@ -39,8 +30,6 @@ async function* paginateListPermissions(config, input, ...additionalArguments) {
|
|
|
39
30
|
token = page.NextToken;
|
|
40
31
|
hasNext = !!token;
|
|
41
32
|
}
|
|
42
|
-
// @ts-ignore
|
|
43
33
|
return undefined;
|
|
44
34
|
}
|
|
45
35
|
exports.paginateListPermissions = paginateListPermissions;
|
|
46
|
-
//# sourceMappingURL=ListPermissionsPaginator.js.map
|
|
@@ -4,22 +4,13 @@ exports.paginateListTags = void 0;
|
|
|
4
4
|
const ACMPCA_1 = require("../ACMPCA");
|
|
5
5
|
const ACMPCAClient_1 = require("../ACMPCAClient");
|
|
6
6
|
const ListTagsCommand_1 = require("../commands/ListTagsCommand");
|
|
7
|
-
/**
|
|
8
|
-
* @private
|
|
9
|
-
*/
|
|
10
7
|
const makePagedClientRequest = async (client, input, ...args) => {
|
|
11
|
-
// @ts-ignore
|
|
12
8
|
return await client.send(new ListTagsCommand_1.ListTagsCommand(input), ...args);
|
|
13
9
|
};
|
|
14
|
-
/**
|
|
15
|
-
* @private
|
|
16
|
-
*/
|
|
17
10
|
const makePagedRequest = async (client, input, ...args) => {
|
|
18
|
-
// @ts-ignore
|
|
19
11
|
return await client.listTags(input, ...args);
|
|
20
12
|
};
|
|
21
13
|
async function* paginateListTags(config, input, ...additionalArguments) {
|
|
22
|
-
// ToDo: replace with actual type instead of typeof input.NextToken
|
|
23
14
|
let token = config.startingToken || undefined;
|
|
24
15
|
let hasNext = true;
|
|
25
16
|
let page;
|
|
@@ -39,8 +30,6 @@ async function* paginateListTags(config, input, ...additionalArguments) {
|
|
|
39
30
|
token = page.NextToken;
|
|
40
31
|
hasNext = !!token;
|
|
41
32
|
}
|
|
42
|
-
// @ts-ignore
|
|
43
33
|
return undefined;
|
|
44
34
|
}
|
|
45
35
|
exports.paginateListTags = paginateListTags;
|
|
46
|
-
//# sourceMappingURL=ListTagsPaginator.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const tslib_1 = require("tslib");
|
|
4
|
+
tslib_1.__exportStar(require("./Interfaces"), exports);
|
|
5
|
+
tslib_1.__exportStar(require("./ListCertificateAuthoritiesPaginator"), exports);
|
|
6
|
+
tslib_1.__exportStar(require("./ListPermissionsPaginator"), exports);
|
|
7
|
+
tslib_1.__exportStar(require("./ListTagsPaginator"), exports);
|
|
@@ -3070,14 +3070,12 @@ const deserializeMetadata = (output) => {
|
|
|
3070
3070
|
cfId: output.headers["x-amz-cf-id"],
|
|
3071
3071
|
});
|
|
3072
3072
|
};
|
|
3073
|
-
// Collect low-level response body stream to Uint8Array.
|
|
3074
3073
|
const collectBody = (streamBody = new Uint8Array(), context) => {
|
|
3075
3074
|
if (streamBody instanceof Uint8Array) {
|
|
3076
3075
|
return Promise.resolve(streamBody);
|
|
3077
3076
|
}
|
|
3078
3077
|
return context.streamCollector(streamBody) || Promise.resolve(new Uint8Array());
|
|
3079
3078
|
};
|
|
3080
|
-
// Encode Uint8Array data into string with utf-8.
|
|
3081
3079
|
const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body));
|
|
3082
3080
|
const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, body) => {
|
|
3083
3081
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
@@ -3103,9 +3101,6 @@ const parseBody = (streamBody, context) => collectBodyString(streamBody, context
|
|
|
3103
3101
|
}
|
|
3104
3102
|
return {};
|
|
3105
3103
|
});
|
|
3106
|
-
/**
|
|
3107
|
-
* Load an error code for the aws.rest-json-1.1 protocol.
|
|
3108
|
-
*/
|
|
3109
3104
|
const loadRestJsonErrorCode = (output, data) => {
|
|
3110
3105
|
const findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase());
|
|
3111
3106
|
const sanitizeErrorCode = (rawValue) => {
|
|
@@ -3130,4 +3125,3 @@ const loadRestJsonErrorCode = (output, data) => {
|
|
|
3130
3125
|
}
|
|
3131
3126
|
return "";
|
|
3132
3127
|
};
|
|
3133
|
-
//# sourceMappingURL=Aws_json1_1.js.map
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.getRuntimeConfig = void 0;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
|
+
const package_json_1 = tslib_1.__importDefault(require("../package.json"));
|
|
5
6
|
const sha256_browser_1 = require("@aws-crypto/sha256-browser");
|
|
6
7
|
const fetch_http_handler_1 = require("@aws-sdk/fetch-http-handler");
|
|
7
8
|
const invalid_dependency_1 = require("@aws-sdk/invalid-dependency");
|
|
@@ -10,12 +11,7 @@ const util_base64_browser_1 = require("@aws-sdk/util-base64-browser");
|
|
|
10
11
|
const util_body_length_browser_1 = require("@aws-sdk/util-body-length-browser");
|
|
11
12
|
const util_user_agent_browser_1 = require("@aws-sdk/util-user-agent-browser");
|
|
12
13
|
const util_utf8_browser_1 = require("@aws-sdk/util-utf8-browser");
|
|
13
|
-
// @ts-ignore: package.json will be imported from dist folders
|
|
14
|
-
const package_json_1 = tslib_1.__importDefault(require("../package.json"));
|
|
15
14
|
const runtimeConfig_shared_1 = require("./runtimeConfig.shared");
|
|
16
|
-
/**
|
|
17
|
-
* @internal
|
|
18
|
-
*/
|
|
19
15
|
const getRuntimeConfig = (config) => {
|
|
20
16
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o;
|
|
21
17
|
const clientSharedValues = runtimeConfig_shared_1.getRuntimeConfig(config);
|
|
@@ -39,4 +35,3 @@ const getRuntimeConfig = (config) => {
|
|
|
39
35
|
};
|
|
40
36
|
};
|
|
41
37
|
exports.getRuntimeConfig = getRuntimeConfig;
|
|
42
|
-
//# sourceMappingURL=runtimeConfig.browser.js.map
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.getRuntimeConfig = void 0;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
|
+
const package_json_1 = tslib_1.__importDefault(require("../package.json"));
|
|
5
6
|
const client_sts_1 = require("@aws-sdk/client-sts");
|
|
6
7
|
const config_resolver_1 = require("@aws-sdk/config-resolver");
|
|
7
8
|
const credential_provider_node_1 = require("@aws-sdk/credential-provider-node");
|
|
@@ -9,17 +10,12 @@ const hash_node_1 = require("@aws-sdk/hash-node");
|
|
|
9
10
|
const middleware_retry_1 = require("@aws-sdk/middleware-retry");
|
|
10
11
|
const node_config_provider_1 = require("@aws-sdk/node-config-provider");
|
|
11
12
|
const node_http_handler_1 = require("@aws-sdk/node-http-handler");
|
|
12
|
-
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
13
13
|
const util_base64_node_1 = require("@aws-sdk/util-base64-node");
|
|
14
14
|
const util_body_length_node_1 = require("@aws-sdk/util-body-length-node");
|
|
15
15
|
const util_user_agent_node_1 = require("@aws-sdk/util-user-agent-node");
|
|
16
16
|
const util_utf8_node_1 = require("@aws-sdk/util-utf8-node");
|
|
17
|
-
// @ts-ignore: package.json will be imported from dist folders
|
|
18
|
-
const package_json_1 = tslib_1.__importDefault(require("../package.json"));
|
|
19
17
|
const runtimeConfig_shared_1 = require("./runtimeConfig.shared");
|
|
20
|
-
|
|
21
|
-
* @internal
|
|
22
|
-
*/
|
|
18
|
+
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
23
19
|
const getRuntimeConfig = (config) => {
|
|
24
20
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o;
|
|
25
21
|
smithy_client_1.emitWarningIfUnsupportedVersion(process.version);
|
|
@@ -44,4 +40,3 @@ const getRuntimeConfig = (config) => {
|
|
|
44
40
|
};
|
|
45
41
|
};
|
|
46
42
|
exports.getRuntimeConfig = getRuntimeConfig;
|
|
47
|
-
//# sourceMappingURL=runtimeConfig.js.map
|
|
@@ -3,9 +3,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.getRuntimeConfig = void 0;
|
|
4
4
|
const sha256_js_1 = require("@aws-crypto/sha256-js");
|
|
5
5
|
const runtimeConfig_browser_1 = require("./runtimeConfig.browser");
|
|
6
|
-
/**
|
|
7
|
-
* @internal
|
|
8
|
-
*/
|
|
9
6
|
const getRuntimeConfig = (config) => {
|
|
10
7
|
var _a;
|
|
11
8
|
const browserDefaults = runtimeConfig_browser_1.getRuntimeConfig(config);
|
|
@@ -17,4 +14,3 @@ const getRuntimeConfig = (config) => {
|
|
|
17
14
|
};
|
|
18
15
|
};
|
|
19
16
|
exports.getRuntimeConfig = getRuntimeConfig;
|
|
20
|
-
//# sourceMappingURL=runtimeConfig.native.js.map
|
|
@@ -3,9 +3,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.getRuntimeConfig = void 0;
|
|
4
4
|
const url_parser_1 = require("@aws-sdk/url-parser");
|
|
5
5
|
const endpoints_1 = require("./endpoints");
|
|
6
|
-
/**
|
|
7
|
-
* @internal
|
|
8
|
-
*/
|
|
9
6
|
const getRuntimeConfig = (config) => {
|
|
10
7
|
var _a, _b, _c, _d, _e;
|
|
11
8
|
return ({
|
|
@@ -18,4 +15,3 @@ const getRuntimeConfig = (config) => {
|
|
|
18
15
|
});
|
|
19
16
|
};
|
|
20
17
|
exports.getRuntimeConfig = getRuntimeConfig;
|
|
21
|
-
//# sourceMappingURL=runtimeConfig.shared.js.map
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const tslib_1 = require("tslib");
|
|
4
|
+
tslib_1.__exportStar(require("./waitForAuditReportCreated"), exports);
|
|
5
|
+
tslib_1.__exportStar(require("./waitForCertificateAuthorityCSRCreated"), exports);
|
|
6
|
+
tslib_1.__exportStar(require("./waitForCertificateIssued"), exports);
|
|
@@ -32,24 +32,14 @@ const checkState = async (client, input) => {
|
|
|
32
32
|
}
|
|
33
33
|
return { state: util_waiter_1.WaiterState.RETRY, reason };
|
|
34
34
|
};
|
|
35
|
-
/**
|
|
36
|
-
* Wait until a Audit Report is created
|
|
37
|
-
* @deprecated Use waitUntilAuditReportCreated instead. waitForAuditReportCreated does not throw error in non-success cases.
|
|
38
|
-
*/
|
|
39
35
|
const waitForAuditReportCreated = async (params, input) => {
|
|
40
36
|
const serviceDefaults = { minDelay: 3, maxDelay: 120 };
|
|
41
37
|
return util_waiter_1.createWaiter({ ...serviceDefaults, ...params }, input, checkState);
|
|
42
38
|
};
|
|
43
39
|
exports.waitForAuditReportCreated = waitForAuditReportCreated;
|
|
44
|
-
/**
|
|
45
|
-
* Wait until a Audit Report is created
|
|
46
|
-
* @param params - Waiter configuration options.
|
|
47
|
-
* @param input - The input to DescribeCertificateAuthorityAuditReportCommand for polling.
|
|
48
|
-
*/
|
|
49
40
|
const waitUntilAuditReportCreated = async (params, input) => {
|
|
50
41
|
const serviceDefaults = { minDelay: 3, maxDelay: 120 };
|
|
51
42
|
const result = await util_waiter_1.createWaiter({ ...serviceDefaults, ...params }, input, checkState);
|
|
52
43
|
return util_waiter_1.checkExceptions(result);
|
|
53
44
|
};
|
|
54
45
|
exports.waitUntilAuditReportCreated = waitUntilAuditReportCreated;
|
|
55
|
-
//# sourceMappingURL=waitForAuditReportCreated.js.map
|
|
@@ -18,24 +18,14 @@ const checkState = async (client, input) => {
|
|
|
18
18
|
}
|
|
19
19
|
return { state: util_waiter_1.WaiterState.RETRY, reason };
|
|
20
20
|
};
|
|
21
|
-
/**
|
|
22
|
-
* Wait until a Certificate Authority CSR is created
|
|
23
|
-
* @deprecated Use waitUntilCertificateAuthorityCSRCreated instead. waitForCertificateAuthorityCSRCreated does not throw error in non-success cases.
|
|
24
|
-
*/
|
|
25
21
|
const waitForCertificateAuthorityCSRCreated = async (params, input) => {
|
|
26
22
|
const serviceDefaults = { minDelay: 3, maxDelay: 120 };
|
|
27
23
|
return util_waiter_1.createWaiter({ ...serviceDefaults, ...params }, input, checkState);
|
|
28
24
|
};
|
|
29
25
|
exports.waitForCertificateAuthorityCSRCreated = waitForCertificateAuthorityCSRCreated;
|
|
30
|
-
/**
|
|
31
|
-
* Wait until a Certificate Authority CSR is created
|
|
32
|
-
* @param params - Waiter configuration options.
|
|
33
|
-
* @param input - The input to GetCertificateAuthorityCsrCommand for polling.
|
|
34
|
-
*/
|
|
35
26
|
const waitUntilCertificateAuthorityCSRCreated = async (params, input) => {
|
|
36
27
|
const serviceDefaults = { minDelay: 3, maxDelay: 120 };
|
|
37
28
|
const result = await util_waiter_1.createWaiter({ ...serviceDefaults, ...params }, input, checkState);
|
|
38
29
|
return util_waiter_1.checkExceptions(result);
|
|
39
30
|
};
|
|
40
31
|
exports.waitUntilCertificateAuthorityCSRCreated = waitUntilCertificateAuthorityCSRCreated;
|
|
41
|
-
//# sourceMappingURL=waitForCertificateAuthorityCSRCreated.js.map
|
|
@@ -18,24 +18,14 @@ const checkState = async (client, input) => {
|
|
|
18
18
|
}
|
|
19
19
|
return { state: util_waiter_1.WaiterState.RETRY, reason };
|
|
20
20
|
};
|
|
21
|
-
/**
|
|
22
|
-
* Wait until a certificate is issued
|
|
23
|
-
* @deprecated Use waitUntilCertificateIssued instead. waitForCertificateIssued does not throw error in non-success cases.
|
|
24
|
-
*/
|
|
25
21
|
const waitForCertificateIssued = async (params, input) => {
|
|
26
22
|
const serviceDefaults = { minDelay: 3, maxDelay: 120 };
|
|
27
23
|
return util_waiter_1.createWaiter({ ...serviceDefaults, ...params }, input, checkState);
|
|
28
24
|
};
|
|
29
25
|
exports.waitForCertificateIssued = waitForCertificateIssued;
|
|
30
|
-
/**
|
|
31
|
-
* Wait until a certificate is issued
|
|
32
|
-
* @param params - Waiter configuration options.
|
|
33
|
-
* @param input - The input to GetCertificateCommand for polling.
|
|
34
|
-
*/
|
|
35
26
|
const waitUntilCertificateIssued = async (params, input) => {
|
|
36
27
|
const serviceDefaults = { minDelay: 3, maxDelay: 120 };
|
|
37
28
|
const result = await util_waiter_1.createWaiter({ ...serviceDefaults, ...params }, input, checkState);
|
|
38
29
|
return util_waiter_1.checkExceptions(result);
|
|
39
30
|
};
|
|
40
31
|
exports.waitUntilCertificateIssued = waitUntilCertificateIssued;
|
|
41
|
-
//# sourceMappingURL=waitForCertificateIssued.js.map
|
package/dist-es/ACMPCA.js
CHANGED
package/dist-es/ACMPCAClient.js
CHANGED
|
@@ -37,4 +37,3 @@ var CreateCertificateAuthorityAuditReportCommand = (function (_super) {
|
|
|
37
37
|
return CreateCertificateAuthorityAuditReportCommand;
|
|
38
38
|
}($Command));
|
|
39
39
|
export { CreateCertificateAuthorityAuditReportCommand };
|
|
40
|
-
//# sourceMappingURL=CreateCertificateAuthorityAuditReportCommand.js.map
|
|
@@ -37,4 +37,3 @@ var DescribeCertificateAuthorityAuditReportCommand = (function (_super) {
|
|
|
37
37
|
return DescribeCertificateAuthorityAuditReportCommand;
|
|
38
38
|
}($Command));
|
|
39
39
|
export { DescribeCertificateAuthorityAuditReportCommand };
|
|
40
|
-
//# sourceMappingURL=DescribeCertificateAuthorityAuditReportCommand.js.map
|
|
@@ -37,4 +37,3 @@ var ImportCertificateAuthorityCertificateCommand = (function (_super) {
|
|
|
37
37
|
return ImportCertificateAuthorityCertificateCommand;
|
|
38
38
|
}($Command));
|
|
39
39
|
export { ImportCertificateAuthorityCertificateCommand };
|
|
40
|
-
//# sourceMappingURL=ImportCertificateAuthorityCertificateCommand.js.map
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
export * from "./CreateCertificateAuthorityAuditReportCommand";
|
|
2
|
+
export * from "./CreateCertificateAuthorityCommand";
|
|
3
|
+
export * from "./CreatePermissionCommand";
|
|
4
|
+
export * from "./DeleteCertificateAuthorityCommand";
|
|
5
|
+
export * from "./DeletePermissionCommand";
|
|
6
|
+
export * from "./DeletePolicyCommand";
|
|
7
|
+
export * from "./DescribeCertificateAuthorityAuditReportCommand";
|
|
8
|
+
export * from "./DescribeCertificateAuthorityCommand";
|
|
9
|
+
export * from "./GetCertificateAuthorityCertificateCommand";
|
|
10
|
+
export * from "./GetCertificateAuthorityCsrCommand";
|
|
11
|
+
export * from "./GetCertificateCommand";
|
|
12
|
+
export * from "./GetPolicyCommand";
|
|
13
|
+
export * from "./ImportCertificateAuthorityCertificateCommand";
|
|
14
|
+
export * from "./IssueCertificateCommand";
|
|
15
|
+
export * from "./ListCertificateAuthoritiesCommand";
|
|
16
|
+
export * from "./ListPermissionsCommand";
|
|
17
|
+
export * from "./ListTagsCommand";
|
|
18
|
+
export * from "./PutPolicyCommand";
|
|
19
|
+
export * from "./RestoreCertificateAuthorityCommand";
|
|
20
|
+
export * from "./RevokeCertificateCommand";
|
|
21
|
+
export * from "./TagCertificateAuthorityCommand";
|
|
22
|
+
export * from "./UntagCertificateAuthorityCommand";
|
|
23
|
+
export * from "./UpdateCertificateAuthorityCommand";
|
package/dist-es/endpoints.js
CHANGED
|
@@ -67,7 +67,7 @@ var partitionHash = {
|
|
|
67
67
|
hostname: "acm-pca.{region}.amazonaws.com.cn",
|
|
68
68
|
},
|
|
69
69
|
"aws-iso": {
|
|
70
|
-
regions: ["us-iso-east-1"],
|
|
70
|
+
regions: ["us-iso-east-1", "us-iso-west-1"],
|
|
71
71
|
hostname: "acm-pca.{region}.c2s.ic.gov",
|
|
72
72
|
},
|
|
73
73
|
"aws-iso-b": {
|
|
@@ -84,4 +84,3 @@ export var defaultRegionInfoProvider = function (region, options) { return __awa
|
|
|
84
84
|
return [2, getRegionInfo(region, __assign(__assign({}, options), { signingService: "acm-pca", regionHash: regionHash, partitionHash: partitionHash }))];
|
|
85
85
|
});
|
|
86
86
|
}); };
|
|
87
|
-
//# sourceMappingURL=endpoints.js.map
|
package/dist-es/index.js
CHANGED
|
@@ -1,34 +1,6 @@
|
|
|
1
|
-
export * from "./ACMPCAClient";
|
|
2
1
|
export * from "./ACMPCA";
|
|
3
|
-
export * from "./
|
|
4
|
-
export * from "./commands
|
|
5
|
-
export * from "./
|
|
6
|
-
export * from "./
|
|
7
|
-
export * from "./
|
|
8
|
-
export * from "./commands/DeletePolicyCommand";
|
|
9
|
-
export * from "./commands/DescribeCertificateAuthorityCommand";
|
|
10
|
-
export * from "./commands/DescribeCertificateAuthorityAuditReportCommand";
|
|
11
|
-
export * from "./waiters/waitForAuditReportCreated";
|
|
12
|
-
export * from "./commands/GetCertificateCommand";
|
|
13
|
-
export * from "./waiters/waitForCertificateIssued";
|
|
14
|
-
export * from "./commands/GetCertificateAuthorityCertificateCommand";
|
|
15
|
-
export * from "./commands/GetCertificateAuthorityCsrCommand";
|
|
16
|
-
export * from "./waiters/waitForCertificateAuthorityCSRCreated";
|
|
17
|
-
export * from "./commands/GetPolicyCommand";
|
|
18
|
-
export * from "./commands/ImportCertificateAuthorityCertificateCommand";
|
|
19
|
-
export * from "./commands/IssueCertificateCommand";
|
|
20
|
-
export * from "./commands/ListCertificateAuthoritiesCommand";
|
|
21
|
-
export * from "./pagination/ListCertificateAuthoritiesPaginator";
|
|
22
|
-
export * from "./commands/ListPermissionsCommand";
|
|
23
|
-
export * from "./pagination/ListPermissionsPaginator";
|
|
24
|
-
export * from "./commands/ListTagsCommand";
|
|
25
|
-
export * from "./pagination/ListTagsPaginator";
|
|
26
|
-
export * from "./commands/PutPolicyCommand";
|
|
27
|
-
export * from "./commands/RestoreCertificateAuthorityCommand";
|
|
28
|
-
export * from "./commands/RevokeCertificateCommand";
|
|
29
|
-
export * from "./commands/TagCertificateAuthorityCommand";
|
|
30
|
-
export * from "./commands/UntagCertificateAuthorityCommand";
|
|
31
|
-
export * from "./commands/UpdateCertificateAuthorityCommand";
|
|
32
|
-
export * from "./pagination/Interfaces";
|
|
33
|
-
export * from "./models/index";
|
|
34
|
-
//# sourceMappingURL=index.js.map
|
|
2
|
+
export * from "./ACMPCAClient";
|
|
3
|
+
export * from "./commands";
|
|
4
|
+
export * from "./models";
|
|
5
|
+
export * from "./pagination";
|
|
6
|
+
export * from "./waiters";
|
package/dist-es/models/index.js
CHANGED
|
@@ -413,4 +413,3 @@ export var UpdateCertificateAuthorityRequest;
|
|
|
413
413
|
(function (UpdateCertificateAuthorityRequest) {
|
|
414
414
|
UpdateCertificateAuthorityRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
415
415
|
})(UpdateCertificateAuthorityRequest || (UpdateCertificateAuthorityRequest = {}));
|
|
416
|
-
//# sourceMappingURL=models_0.js.map
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { __assign } from "tslib";
|
|
2
|
+
import packageInfo from "../package.json";
|
|
2
3
|
import { Sha256 } from "@aws-crypto/sha256-browser";
|
|
3
4
|
import { FetchHttpHandler, streamCollector } from "@aws-sdk/fetch-http-handler";
|
|
4
5
|
import { invalidProvider } from "@aws-sdk/invalid-dependency";
|
|
@@ -7,11 +8,9 @@ import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser";
|
|
|
7
8
|
import { calculateBodyLength } from "@aws-sdk/util-body-length-browser";
|
|
8
9
|
import { defaultUserAgent } from "@aws-sdk/util-user-agent-browser";
|
|
9
10
|
import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-browser";
|
|
10
|
-
import packageInfo from "../package.json";
|
|
11
11
|
import { getRuntimeConfig as getSharedRuntimeConfig } from "./runtimeConfig.shared";
|
|
12
12
|
export var getRuntimeConfig = function (config) {
|
|
13
13
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o;
|
|
14
14
|
var clientSharedValues = getSharedRuntimeConfig(config);
|
|
15
15
|
return __assign(__assign(__assign({}, clientSharedValues), config), { runtime: "browser", 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 : (function (_) { return function () { return Promise.reject(new Error("Credential is missing")); }; }), 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 : DEFAULT_MAX_ATTEMPTS, region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : invalidProvider("Region is missing"), requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new FetchHttpHandler(), retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : (function () { return Promise.resolve(DEFAULT_RETRY_MODE); }), sha256: (_k = config === null || config === void 0 ? void 0 : config.sha256) !== null && _k !== void 0 ? _k : Sha256, streamCollector: (_l = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _l !== void 0 ? _l : streamCollector, utf8Decoder: (_m = config === null || config === void 0 ? void 0 : config.utf8Decoder) !== null && _m !== void 0 ? _m : fromUtf8, utf8Encoder: (_o = config === null || config === void 0 ? void 0 : config.utf8Encoder) !== null && _o !== void 0 ? _o : toUtf8 });
|
|
16
16
|
};
|
|
17
|
-
//# sourceMappingURL=runtimeConfig.browser.js.map
|