Skip to content

Commit b75a706

Browse files
author
awstools
committed
feat(client-acm-pca): Added CCPC_LEVEL_1_OR_HIGHER KeyStorageSecurityStandard and SM2 KeyAlgorithm and SM3WITHSM2 SigningAlgorithm for China regions.
1 parent 19d56e7 commit b75a706

File tree

6 files changed

+31
-10
lines changed

6 files changed

+31
-10
lines changed

clients/client-acm-pca/src/commands/CreateCertificateAuthorityCommand.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,8 @@ export interface CreateCertificateAuthorityCommandOutput extends CreateCertifica
5757
* const client = new ACMPCAClient(config);
5858
* const input = { // CreateCertificateAuthorityRequest
5959
* CertificateAuthorityConfiguration: { // CertificateAuthorityConfiguration
60-
* KeyAlgorithm: "RSA_2048" || "RSA_4096" || "EC_prime256v1" || "EC_secp384r1", // required
61-
* SigningAlgorithm: "SHA256WITHECDSA" || "SHA384WITHECDSA" || "SHA512WITHECDSA" || "SHA256WITHRSA" || "SHA384WITHRSA" || "SHA512WITHRSA", // required
60+
* KeyAlgorithm: "RSA_2048" || "RSA_4096" || "EC_prime256v1" || "EC_secp384r1" || "SM2", // required
61+
* SigningAlgorithm: "SHA256WITHECDSA" || "SHA384WITHECDSA" || "SHA512WITHECDSA" || "SHA256WITHRSA" || "SHA384WITHRSA" || "SHA512WITHRSA" || "SM3WITHSM2", // required
6262
* Subject: { // ASN1Subject
6363
* Country: "STRING_VALUE",
6464
* Organization: "STRING_VALUE",
@@ -158,7 +158,7 @@ export interface CreateCertificateAuthorityCommandOutput extends CreateCertifica
158158
* },
159159
* CertificateAuthorityType: "ROOT" || "SUBORDINATE", // required
160160
* IdempotencyToken: "STRING_VALUE",
161-
* KeyStorageSecurityStandard: "FIPS_140_2_LEVEL_2_OR_HIGHER" || "FIPS_140_2_LEVEL_3_OR_HIGHER",
161+
* KeyStorageSecurityStandard: "FIPS_140_2_LEVEL_2_OR_HIGHER" || "FIPS_140_2_LEVEL_3_OR_HIGHER" || "CCPC_LEVEL_1_OR_HIGHER",
162162
* Tags: [ // TagList
163163
* { // Tag
164164
* Key: "STRING_VALUE", // required

clients/client-acm-pca/src/commands/DescribeCertificateAuthorityCommand.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -98,8 +98,8 @@ export interface DescribeCertificateAuthorityCommandOutput
9898
* // NotAfter: new Date("TIMESTAMP"),
9999
* // FailureReason: "REQUEST_TIMED_OUT" || "UNSUPPORTED_ALGORITHM" || "OTHER",
100100
* // CertificateAuthorityConfiguration: { // CertificateAuthorityConfiguration
101-
* // KeyAlgorithm: "RSA_2048" || "RSA_4096" || "EC_prime256v1" || "EC_secp384r1", // required
102-
* // SigningAlgorithm: "SHA256WITHECDSA" || "SHA384WITHECDSA" || "SHA512WITHECDSA" || "SHA256WITHRSA" || "SHA384WITHRSA" || "SHA512WITHRSA", // required
101+
* // KeyAlgorithm: "RSA_2048" || "RSA_4096" || "EC_prime256v1" || "EC_secp384r1" || "SM2", // required
102+
* // SigningAlgorithm: "SHA256WITHECDSA" || "SHA384WITHECDSA" || "SHA512WITHECDSA" || "SHA256WITHRSA" || "SHA384WITHRSA" || "SHA512WITHRSA" || "SM3WITHSM2", // required
103103
* // Subject: { // ASN1Subject
104104
* // Country: "STRING_VALUE",
105105
* // Organization: "STRING_VALUE",
@@ -198,7 +198,7 @@ export interface DescribeCertificateAuthorityCommandOutput
198198
* // },
199199
* // },
200200
* // RestorableUntil: new Date("TIMESTAMP"),
201-
* // KeyStorageSecurityStandard: "FIPS_140_2_LEVEL_2_OR_HIGHER" || "FIPS_140_2_LEVEL_3_OR_HIGHER",
201+
* // KeyStorageSecurityStandard: "FIPS_140_2_LEVEL_2_OR_HIGHER" || "FIPS_140_2_LEVEL_3_OR_HIGHER" || "CCPC_LEVEL_1_OR_HIGHER",
202202
* // UsageMode: "GENERAL_PURPOSE" || "SHORT_LIVED_CERTIFICATE",
203203
* // },
204204
* // };

clients/client-acm-pca/src/commands/IssueCertificateCommand.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ export interface IssueCertificateCommandOutput extends IssueCertificateResponse,
147147
* },
148148
* CertificateAuthorityArn: "STRING_VALUE", // required
149149
* Csr: new Uint8Array(), // e.g. Buffer.from("") or new TextEncoder().encode("") // required
150-
* SigningAlgorithm: "SHA256WITHECDSA" || "SHA384WITHECDSA" || "SHA512WITHECDSA" || "SHA256WITHRSA" || "SHA384WITHRSA" || "SHA512WITHRSA", // required
150+
* SigningAlgorithm: "SHA256WITHECDSA" || "SHA384WITHECDSA" || "SHA512WITHECDSA" || "SHA256WITHRSA" || "SHA384WITHRSA" || "SHA512WITHRSA" || "SM3WITHSM2", // required
151151
* TemplateArn: "STRING_VALUE",
152152
* Validity: { // Validity
153153
* Value: Number("long"), // required

clients/client-acm-pca/src/commands/ListCertificateAuthoritiesCommand.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,8 @@ export interface ListCertificateAuthoritiesCommandOutput extends ListCertificate
5656
* // NotAfter: new Date("TIMESTAMP"),
5757
* // FailureReason: "REQUEST_TIMED_OUT" || "UNSUPPORTED_ALGORITHM" || "OTHER",
5858
* // CertificateAuthorityConfiguration: { // CertificateAuthorityConfiguration
59-
* // KeyAlgorithm: "RSA_2048" || "RSA_4096" || "EC_prime256v1" || "EC_secp384r1", // required
60-
* // SigningAlgorithm: "SHA256WITHECDSA" || "SHA384WITHECDSA" || "SHA512WITHECDSA" || "SHA256WITHRSA" || "SHA384WITHRSA" || "SHA512WITHRSA", // required
59+
* // KeyAlgorithm: "RSA_2048" || "RSA_4096" || "EC_prime256v1" || "EC_secp384r1" || "SM2", // required
60+
* // SigningAlgorithm: "SHA256WITHECDSA" || "SHA384WITHECDSA" || "SHA512WITHECDSA" || "SHA256WITHRSA" || "SHA384WITHRSA" || "SHA512WITHRSA" || "SM3WITHSM2", // required
6161
* // Subject: { // ASN1Subject
6262
* // Country: "STRING_VALUE",
6363
* // Organization: "STRING_VALUE",
@@ -156,7 +156,7 @@ export interface ListCertificateAuthoritiesCommandOutput extends ListCertificate
156156
* // },
157157
* // },
158158
* // RestorableUntil: new Date("TIMESTAMP"),
159-
* // KeyStorageSecurityStandard: "FIPS_140_2_LEVEL_2_OR_HIGHER" || "FIPS_140_2_LEVEL_3_OR_HIGHER",
159+
* // KeyStorageSecurityStandard: "FIPS_140_2_LEVEL_2_OR_HIGHER" || "FIPS_140_2_LEVEL_3_OR_HIGHER" || "CCPC_LEVEL_1_OR_HIGHER",
160160
* // UsageMode: "GENERAL_PURPOSE" || "SHORT_LIVED_CERTIFICATE",
161161
* // },
162162
* // ],

clients/client-acm-pca/src/models/models_0.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -393,6 +393,7 @@ export const KeyAlgorithm = {
393393
EC_secp384r1: "EC_secp384r1",
394394
RSA_2048: "RSA_2048",
395395
RSA_4096: "RSA_4096",
396+
SM2: "SM2",
396397
} as const;
397398

398399
/**
@@ -411,6 +412,7 @@ export const SigningAlgorithm = {
411412
SHA384WITHRSA: "SHA384WITHRSA",
412413
SHA512WITHECDSA: "SHA512WITHECDSA",
413414
SHA512WITHRSA: "SHA512WITHRSA",
415+
SM3WITHSM2: "SM3WITHSM2",
414416
} as const;
415417

416418
/**
@@ -477,6 +479,7 @@ export type CertificateAuthorityType = (typeof CertificateAuthorityType)[keyof t
477479
* @enum
478480
*/
479481
export const KeyStorageSecurityStandard = {
482+
CCPC_LEVEL_1_OR_HIGHER: "CCPC_LEVEL_1_OR_HIGHER",
480483
FIPS_140_2_LEVEL_2_OR_HIGHER: "FIPS_140_2_LEVEL_2_OR_HIGHER",
481484
FIPS_140_2_LEVEL_3_OR_HIGHER: "FIPS_140_2_LEVEL_3_OR_HIGHER",
482485
} as const;

codegen/sdk-codegen/aws-models/acm-pca.json

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3316,6 +3316,12 @@
33163316
"traits": {
33173317
"smithy.api#enumValue": "EC_secp384r1"
33183318
}
3319+
},
3320+
"SM2": {
3321+
"target": "smithy.api#Unit",
3322+
"traits": {
3323+
"smithy.api#enumValue": "SM2"
3324+
}
33193325
}
33203326
}
33213327
},
@@ -3333,6 +3339,12 @@
33333339
"traits": {
33343340
"smithy.api#enumValue": "FIPS_140_2_LEVEL_3_OR_HIGHER"
33353341
}
3342+
},
3343+
"CCPC_LEVEL_1_OR_HIGHER": {
3344+
"target": "smithy.api#Unit",
3345+
"traits": {
3346+
"smithy.api#enumValue": "CCPC_LEVEL_1_OR_HIGHER"
3347+
}
33363348
}
33373349
}
33383350
},
@@ -4305,6 +4317,12 @@
43054317
"traits": {
43064318
"smithy.api#enumValue": "SHA512WITHRSA"
43074319
}
4320+
},
4321+
"SM3WITHSM2": {
4322+
"target": "smithy.api#Unit",
4323+
"traits": {
4324+
"smithy.api#enumValue": "SM3WITHSM2"
4325+
}
43084326
}
43094327
}
43104328
},

0 commit comments

Comments
 (0)