@aws-sdk/client-acm-pca 3.668.0 → 3.670.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist-cjs/runtimeConfig.browser.js +1 -1
- package/dist-cjs/runtimeConfig.js +1 -1
- package/dist-es/runtimeConfig.browser.js +2 -2
- package/dist-es/runtimeConfig.js +2 -2
- package/dist-types/commands/CreateCertificateAuthorityAuditReportCommand.d.ts +3 -10
- package/dist-types/commands/ImportCertificateAuthorityCertificateCommand.d.ts +17 -19
- package/dist-types/models/models_0.d.ts +35 -40
- package/package.json +7 -7
|
@@ -25,7 +25,7 @@ const getRuntimeConfig = (config) => {
|
|
|
25
25
|
bodyLengthChecker: config?.bodyLengthChecker ?? util_body_length_browser_1.calculateBodyLength,
|
|
26
26
|
credentialDefaultProvider: config?.credentialDefaultProvider ?? ((_) => () => Promise.reject(new Error("Credential is missing"))),
|
|
27
27
|
defaultUserAgentProvider: config?.defaultUserAgentProvider ??
|
|
28
|
-
(0, util_user_agent_browser_1.
|
|
28
|
+
(0, util_user_agent_browser_1.createDefaultUserAgentProvider)({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
|
|
29
29
|
maxAttempts: config?.maxAttempts ?? util_retry_1.DEFAULT_MAX_ATTEMPTS,
|
|
30
30
|
region: config?.region ?? (0, invalid_dependency_1.invalidProvider)("Region is missing"),
|
|
31
31
|
requestHandler: fetch_http_handler_1.FetchHttpHandler.create(config?.requestHandler ?? defaultConfigProvider),
|
|
@@ -31,7 +31,7 @@ const getRuntimeConfig = (config) => {
|
|
|
31
31
|
bodyLengthChecker: config?.bodyLengthChecker ?? util_body_length_node_1.calculateBodyLength,
|
|
32
32
|
credentialDefaultProvider: config?.credentialDefaultProvider ?? credential_provider_node_1.defaultProvider,
|
|
33
33
|
defaultUserAgentProvider: config?.defaultUserAgentProvider ??
|
|
34
|
-
(0, util_user_agent_node_1.
|
|
34
|
+
(0, util_user_agent_node_1.createDefaultUserAgentProvider)({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
|
|
35
35
|
maxAttempts: config?.maxAttempts ?? (0, node_config_provider_1.loadConfig)(middleware_retry_1.NODE_MAX_ATTEMPT_CONFIG_OPTIONS),
|
|
36
36
|
region: config?.region ?? (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_REGION_CONFIG_OPTIONS, config_resolver_1.NODE_REGION_CONFIG_FILE_OPTIONS),
|
|
37
37
|
requestHandler: node_http_handler_1.NodeHttpHandler.create(config?.requestHandler ?? defaultConfigProvider),
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import packageInfo from "../package.json";
|
|
2
2
|
import { Sha256 } from "@aws-crypto/sha256-browser";
|
|
3
|
-
import {
|
|
3
|
+
import { createDefaultUserAgentProvider } from "@aws-sdk/util-user-agent-browser";
|
|
4
4
|
import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT } from "@smithy/config-resolver";
|
|
5
5
|
import { FetchHttpHandler as RequestHandler, streamCollector } from "@smithy/fetch-http-handler";
|
|
6
6
|
import { invalidProvider } from "@smithy/invalid-dependency";
|
|
@@ -21,7 +21,7 @@ export const getRuntimeConfig = (config) => {
|
|
|
21
21
|
bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength,
|
|
22
22
|
credentialDefaultProvider: config?.credentialDefaultProvider ?? ((_) => () => Promise.reject(new Error("Credential is missing"))),
|
|
23
23
|
defaultUserAgentProvider: config?.defaultUserAgentProvider ??
|
|
24
|
-
|
|
24
|
+
createDefaultUserAgentProvider({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }),
|
|
25
25
|
maxAttempts: config?.maxAttempts ?? DEFAULT_MAX_ATTEMPTS,
|
|
26
26
|
region: config?.region ?? invalidProvider("Region is missing"),
|
|
27
27
|
requestHandler: RequestHandler.create(config?.requestHandler ?? defaultConfigProvider),
|
package/dist-es/runtimeConfig.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import packageInfo from "../package.json";
|
|
2
2
|
import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core";
|
|
3
3
|
import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node";
|
|
4
|
-
import { NODE_APP_ID_CONFIG_OPTIONS,
|
|
4
|
+
import { NODE_APP_ID_CONFIG_OPTIONS, createDefaultUserAgentProvider } from "@aws-sdk/util-user-agent-node";
|
|
5
5
|
import { NODE_REGION_CONFIG_FILE_OPTIONS, NODE_REGION_CONFIG_OPTIONS, NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, } from "@smithy/config-resolver";
|
|
6
6
|
import { Hash } from "@smithy/hash-node";
|
|
7
7
|
import { NODE_MAX_ATTEMPT_CONFIG_OPTIONS, NODE_RETRY_MODE_CONFIG_OPTIONS } from "@smithy/middleware-retry";
|
|
@@ -27,7 +27,7 @@ export const getRuntimeConfig = (config) => {
|
|
|
27
27
|
bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength,
|
|
28
28
|
credentialDefaultProvider: config?.credentialDefaultProvider ?? credentialDefaultProvider,
|
|
29
29
|
defaultUserAgentProvider: config?.defaultUserAgentProvider ??
|
|
30
|
-
|
|
30
|
+
createDefaultUserAgentProvider({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }),
|
|
31
31
|
maxAttempts: config?.maxAttempts ?? loadNodeConfig(NODE_MAX_ATTEMPT_CONFIG_OPTIONS),
|
|
32
32
|
region: config?.region ?? loadNodeConfig(NODE_REGION_CONFIG_OPTIONS, NODE_REGION_CONFIG_FILE_OPTIONS),
|
|
33
33
|
requestHandler: RequestHandler.create(config?.requestHandler ?? defaultConfigProvider),
|
|
@@ -27,16 +27,9 @@ declare const CreateCertificateAuthorityAuditReportCommand_base: {
|
|
|
27
27
|
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
28
28
|
};
|
|
29
29
|
/**
|
|
30
|
-
* <p>Creates an audit report that lists every time that your CA private key is used. The
|
|
31
|
-
*
|
|
32
|
-
*
|
|
33
|
-
* <note>
|
|
34
|
-
* <p>Both Amazon Web Services Private CA and the IAM principal must have permission to write to
|
|
35
|
-
* the S3 bucket that you specify. If the IAM principal making the call
|
|
36
|
-
* does not have permission to write to the bucket, then an exception is
|
|
37
|
-
* thrown. For more information, see <a href="https://docs.aws.amazon.com/privateca/latest/userguide/crl-planning.html#s3-policies">Access
|
|
38
|
-
* policies for CRLs in Amazon S3</a>.</p>
|
|
39
|
-
* </note>
|
|
30
|
+
* <p>Creates an audit report that lists every time that your CA private key is used to issue a certificate. The <a href="https://docs.aws.amazon.com/privateca/latest/APIReference/API_IssueCertificate.html">IssueCertificate</a> and <a href="https://docs.aws.amazon.com/privateca/latest/APIReference/API_RevokeCertificate.html">RevokeCertificate</a> actions use
|
|
31
|
+
* the private key.</p>
|
|
32
|
+
* <p>To save the audit report to your designated Amazon S3 bucket, you must create a bucket policy that grants Amazon Web Services Private CA permission to access and write to it. For an example policy, see <a href="https://docs.aws.amazon.com/privateca/latest/userguide/PcaAuditReport.html#s3-access">Prepare an Amazon S3 bucket for audit reports</a>.</p>
|
|
40
33
|
* <p>Amazon Web Services Private CA assets that are stored in Amazon S3 can be protected with encryption.
|
|
41
34
|
* For more information, see <a href="https://docs.aws.amazon.com/privateca/latest/userguide/PcaAuditReport.html#audit-report-encryption">Encrypting Your Audit
|
|
42
35
|
* Reports</a>.</p>
|
|
@@ -97,64 +97,62 @@ declare const ImportCertificateAuthorityCertificateCommand_base: {
|
|
|
97
97
|
* certificate or chain.</p>
|
|
98
98
|
* <ul>
|
|
99
99
|
* <li>
|
|
100
|
-
* <p>
|
|
100
|
+
* <p>Authority key identifier</p>
|
|
101
101
|
* </li>
|
|
102
102
|
* <li>
|
|
103
|
-
* <p>
|
|
103
|
+
* <p>Basic constraints (<i>must</i> be marked critical)</p>
|
|
104
104
|
* </li>
|
|
105
105
|
* <li>
|
|
106
|
-
* <p>
|
|
106
|
+
* <p>Certificate policies</p>
|
|
107
107
|
* </li>
|
|
108
108
|
* <li>
|
|
109
109
|
* <p>Extended key usage</p>
|
|
110
110
|
* </li>
|
|
111
111
|
* <li>
|
|
112
|
-
* <p>
|
|
112
|
+
* <p>Inhibit anyPolicy</p>
|
|
113
113
|
* </li>
|
|
114
114
|
* <li>
|
|
115
|
-
* <p>
|
|
115
|
+
* <p>Issuer alternative name</p>
|
|
116
116
|
* </li>
|
|
117
117
|
* <li>
|
|
118
|
-
* <p>
|
|
118
|
+
* <p>Key usage</p>
|
|
119
119
|
* </li>
|
|
120
120
|
* <li>
|
|
121
|
-
* <p>
|
|
121
|
+
* <p>Name constraints</p>
|
|
122
122
|
* </li>
|
|
123
123
|
* <li>
|
|
124
|
-
* <p>
|
|
124
|
+
* <p>Policy mappings</p>
|
|
125
125
|
* </li>
|
|
126
126
|
* <li>
|
|
127
|
-
* <p>
|
|
127
|
+
* <p>Subject alternative name</p>
|
|
128
128
|
* </li>
|
|
129
129
|
* <li>
|
|
130
|
-
* <p>
|
|
130
|
+
* <p>Subject directory attributes</p>
|
|
131
131
|
* </li>
|
|
132
132
|
* <li>
|
|
133
|
-
* <p>
|
|
133
|
+
* <p>Subject key identifier</p>
|
|
134
|
+
* </li>
|
|
135
|
+
* <li>
|
|
136
|
+
* <p>Subject information access</p>
|
|
134
137
|
* </li>
|
|
135
138
|
* </ul>
|
|
136
139
|
* <p>Amazon Web Services Private CA rejects the following extensions when they are marked critical in an
|
|
137
140
|
* imported CA certificate or chain.</p>
|
|
138
141
|
* <ul>
|
|
139
142
|
* <li>
|
|
140
|
-
* <p>
|
|
141
|
-
* </li>
|
|
142
|
-
* <li>
|
|
143
|
-
* <p>Policy constraints</p>
|
|
143
|
+
* <p>Authority information access</p>
|
|
144
144
|
* </li>
|
|
145
145
|
* <li>
|
|
146
146
|
* <p>CRL distribution points</p>
|
|
147
147
|
* </li>
|
|
148
148
|
* <li>
|
|
149
|
-
* <p>Authority information access</p>
|
|
150
|
-
* </li>
|
|
151
|
-
* <li>
|
|
152
149
|
* <p>Freshest CRL</p>
|
|
153
150
|
* </li>
|
|
154
151
|
* <li>
|
|
155
|
-
* <p>
|
|
152
|
+
* <p>Policy constraints</p>
|
|
156
153
|
* </li>
|
|
157
154
|
* </ul>
|
|
155
|
+
* <p>Amazon Web Services Private Certificate Authority will also reject any other extension marked as critical not contained on the preceding list of allowed extensions.</p>
|
|
158
156
|
* @example
|
|
159
157
|
* Use a bare-bones client and the command you need to make an API call.
|
|
160
158
|
* ```javascript
|
|
@@ -738,33 +738,29 @@ export interface CreateCertificateAuthorityRequest {
|
|
|
738
738
|
*/
|
|
739
739
|
CertificateAuthorityConfiguration: CertificateAuthorityConfiguration | undefined;
|
|
740
740
|
/**
|
|
741
|
-
* <p>Contains information to enable Online Certificate Status Protocol (OCSP)
|
|
742
|
-
*
|
|
743
|
-
*
|
|
744
|
-
*
|
|
745
|
-
*
|
|
746
|
-
* <ul>
|
|
747
|
-
* <li>
|
|
748
|
-
* <p>A configuration disabling CRLs or OCSP must contain only the <code>Enabled=False</code>
|
|
741
|
+
* <p>Contains information to enable support for Online Certificate Status Protocol (OCSP), certificate revocation list (CRL), both protocols, or neither. By default, both certificate validation mechanisms are disabled.</p>
|
|
742
|
+
* <p>The following requirements apply to revocation configurations.</p>
|
|
743
|
+
* <ul>
|
|
744
|
+
* <li>
|
|
745
|
+
* <p>A configuration disabling CRLs or OCSP must contain only the <code>Enabled=False</code>
|
|
749
746
|
* parameter, and will fail if other parameters such as <code>CustomCname</code> or
|
|
750
747
|
* <code>ExpirationInDays</code> are included.</p>
|
|
751
|
-
*
|
|
752
|
-
*
|
|
753
|
-
*
|
|
748
|
+
* </li>
|
|
749
|
+
* <li>
|
|
750
|
+
* <p>In a CRL configuration, the <code>S3BucketName</code> parameter must conform to
|
|
754
751
|
* <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/bucketnamingrules.html">Amazon S3
|
|
755
752
|
* bucket naming rules</a>.</p>
|
|
756
|
-
*
|
|
757
|
-
*
|
|
758
|
-
*
|
|
753
|
+
* </li>
|
|
754
|
+
* <li>
|
|
755
|
+
* <p>A configuration containing a custom Canonical
|
|
759
756
|
* Name (CNAME) parameter for CRLs or OCSP must conform to <a href="https://www.ietf.org/rfc/rfc2396.txt">RFC2396</a> restrictions
|
|
760
757
|
* on the use of special characters in a CNAME. </p>
|
|
761
|
-
*
|
|
762
|
-
*
|
|
763
|
-
*
|
|
758
|
+
* </li>
|
|
759
|
+
* <li>
|
|
760
|
+
* <p>In a CRL or OCSP configuration, the value of a CNAME parameter must not include a
|
|
764
761
|
* protocol prefix such as "http://" or "https://".</p>
|
|
765
|
-
*
|
|
766
|
-
*
|
|
767
|
-
* </note>
|
|
762
|
+
* </li>
|
|
763
|
+
* </ul>
|
|
768
764
|
* <p> For more information, see the <a href="https://docs.aws.amazon.com/privateca/latest/APIReference/API_OcspConfiguration.html">OcspConfiguration</a> and <a href="https://docs.aws.amazon.com/privateca/latest/APIReference/API_CrlConfiguration.html">CrlConfiguration</a>
|
|
769
765
|
* types.</p>
|
|
770
766
|
* @public
|
|
@@ -2345,34 +2341,33 @@ export interface UpdateCertificateAuthorityRequest {
|
|
|
2345
2341
|
*/
|
|
2346
2342
|
CertificateAuthorityArn: string | undefined;
|
|
2347
2343
|
/**
|
|
2348
|
-
* <p>Contains information to enable Online Certificate Status Protocol (OCSP)
|
|
2349
|
-
* enable a certificate revocation list (CRL), to enable both, or to enable neither. If
|
|
2350
|
-
* this parameter is not supplied, existing capibilites remain unchanged. For more
|
|
2344
|
+
* <p>Contains information to enable support for Online Certificate Status Protocol (OCSP), certificate revocation list (CRL), both protocols, or neither. If you don't supply this parameter, existing capibilites remain unchanged. For more
|
|
2351
2345
|
* information, see the <a href="https://docs.aws.amazon.com/privateca/latest/APIReference/API_OcspConfiguration.html">OcspConfiguration</a> and <a href="https://docs.aws.amazon.com/privateca/latest/APIReference/API_CrlConfiguration.html">CrlConfiguration</a> types.</p>
|
|
2352
|
-
* <
|
|
2353
|
-
*
|
|
2354
|
-
* <
|
|
2355
|
-
* <
|
|
2356
|
-
* <p>A configuration disabling CRLs or OCSP must contain only the <code>Enabled=False</code>
|
|
2346
|
+
* <p>The following requirements apply to revocation configurations.</p>
|
|
2347
|
+
* <ul>
|
|
2348
|
+
* <li>
|
|
2349
|
+
* <p>A configuration disabling CRLs or OCSP must contain only the <code>Enabled=False</code>
|
|
2357
2350
|
* parameter, and will fail if other parameters such as <code>CustomCname</code> or
|
|
2358
2351
|
* <code>ExpirationInDays</code> are included.</p>
|
|
2359
|
-
*
|
|
2360
|
-
*
|
|
2361
|
-
*
|
|
2352
|
+
* </li>
|
|
2353
|
+
* <li>
|
|
2354
|
+
* <p>In a CRL configuration, the <code>S3BucketName</code> parameter must conform to
|
|
2362
2355
|
* <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/bucketnamingrules.html">Amazon S3
|
|
2363
2356
|
* bucket naming rules</a>.</p>
|
|
2364
|
-
*
|
|
2365
|
-
*
|
|
2366
|
-
*
|
|
2357
|
+
* </li>
|
|
2358
|
+
* <li>
|
|
2359
|
+
* <p>A configuration containing a custom Canonical
|
|
2367
2360
|
* Name (CNAME) parameter for CRLs or OCSP must conform to <a href="https://www.ietf.org/rfc/rfc2396.txt">RFC2396</a> restrictions
|
|
2368
2361
|
* on the use of special characters in a CNAME. </p>
|
|
2369
|
-
*
|
|
2370
|
-
*
|
|
2371
|
-
*
|
|
2362
|
+
* </li>
|
|
2363
|
+
* <li>
|
|
2364
|
+
* <p>In a CRL or OCSP configuration, the value of a CNAME parameter must not include a
|
|
2372
2365
|
* protocol prefix such as "http://" or "https://".</p>
|
|
2373
|
-
*
|
|
2374
|
-
*
|
|
2375
|
-
*
|
|
2366
|
+
* </li>
|
|
2367
|
+
* </ul>
|
|
2368
|
+
* <important>
|
|
2369
|
+
* <p> If you update the <code>S3BucketName</code> of <a href="https://docs.aws.amazon.com/privateca/latest/APIReference/API_CrlConfiguration.html">CrlConfiguration</a>, you can break revocation for existing certificates. In other words, if you call <a href="https://docs.aws.amazon.com/privateca/latest/APIReference/API_UpdateCertificateAuthority.html">UpdateCertificateAuthority</a> to update the CRL configuration's S3 bucket name, Amazon Web Services Private CA only writes CRLs to the new S3 bucket. Certificates issued prior to this point will have the old S3 bucket name in your CRL Distribution Point (CDP) extension, essentially breaking revocation. If you must update the S3 bucket, you'll need to reissue old certificates to keep the revocation working. Alternatively, you can use a <a href="https://docs.aws.amazon.com/privateca/latest/APIReference/API_CrlConfiguration.html#privateca-Type-CrlConfiguration-CustomCname">CustomCname</a> in your CRL configuration if you might need to change the S3 bucket name in the future.</p>
|
|
2370
|
+
* </important>
|
|
2376
2371
|
* @public
|
|
2377
2372
|
*/
|
|
2378
2373
|
RevocationConfiguration?: RevocationConfiguration;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-acm-pca",
|
|
3
3
|
"description": "AWS SDK for JavaScript Acm Pca Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.670.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
7
7
|
"build:cjs": "node ../../scripts/compilation/inline client-acm-pca",
|
|
@@ -20,19 +20,19 @@
|
|
|
20
20
|
"dependencies": {
|
|
21
21
|
"@aws-crypto/sha256-browser": "5.2.0",
|
|
22
22
|
"@aws-crypto/sha256-js": "5.2.0",
|
|
23
|
-
"@aws-sdk/client-sso-oidc": "3.
|
|
24
|
-
"@aws-sdk/client-sts": "3.
|
|
23
|
+
"@aws-sdk/client-sso-oidc": "3.670.0",
|
|
24
|
+
"@aws-sdk/client-sts": "3.670.0",
|
|
25
25
|
"@aws-sdk/core": "3.667.0",
|
|
26
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
26
|
+
"@aws-sdk/credential-provider-node": "3.670.0",
|
|
27
27
|
"@aws-sdk/middleware-host-header": "3.667.0",
|
|
28
28
|
"@aws-sdk/middleware-logger": "3.667.0",
|
|
29
29
|
"@aws-sdk/middleware-recursion-detection": "3.667.0",
|
|
30
|
-
"@aws-sdk/middleware-user-agent": "3.
|
|
30
|
+
"@aws-sdk/middleware-user-agent": "3.669.0",
|
|
31
31
|
"@aws-sdk/region-config-resolver": "3.667.0",
|
|
32
32
|
"@aws-sdk/types": "3.667.0",
|
|
33
33
|
"@aws-sdk/util-endpoints": "3.667.0",
|
|
34
|
-
"@aws-sdk/util-user-agent-browser": "3.
|
|
35
|
-
"@aws-sdk/util-user-agent-node": "3.
|
|
34
|
+
"@aws-sdk/util-user-agent-browser": "3.670.0",
|
|
35
|
+
"@aws-sdk/util-user-agent-node": "3.669.0",
|
|
36
36
|
"@smithy/config-resolver": "^3.0.9",
|
|
37
37
|
"@smithy/core": "^2.4.8",
|
|
38
38
|
"@smithy/fetch-http-handler": "^3.2.9",
|