Skip to content

Commit 14f1e6d

Browse files
feat: update AWS API models
1 parent 7870bd4 commit 14f1e6d

File tree

1 file changed

+236
-5
lines changed

1 file changed

+236
-5
lines changed

codegen/sdk/aws-models/payment-cryptography.json

Lines changed: 236 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -165,6 +165,103 @@
165165
"target": "com.amazonaws.paymentcryptography#Alias"
166166
}
167167
},
168+
"com.amazonaws.paymentcryptography#CertificateSigningRequestType": {
169+
"type": "string",
170+
"traits": {
171+
"smithy.api#length": {
172+
"min": 1,
173+
"max": 32768
174+
},
175+
"smithy.api#pattern": "^[^\\[;\\]<>]+$",
176+
"smithy.api#sensitive": {}
177+
}
178+
},
179+
"com.amazonaws.paymentcryptography#CertificateSubjectType": {
180+
"type": "structure",
181+
"members": {
182+
"CommonName": {
183+
"target": "smithy.api#String",
184+
"traits": {
185+
"smithy.api#documentation": "Common Name to be used in the certificate signing request",
186+
"smithy.api#length": {
187+
"min": 1,
188+
"max": 64
189+
},
190+
"smithy.api#pattern": "^[A-Za-z]+$",
191+
"smithy.api#required": {}
192+
}
193+
},
194+
"OrganizationUnit": {
195+
"target": "smithy.api#String",
196+
"traits": {
197+
"smithy.api#documentation": "Organization Unit to be used in the certificate signing request",
198+
"smithy.api#length": {
199+
"min": 1,
200+
"max": 64
201+
},
202+
"smithy.api#pattern": "^[A-Za-z]+$"
203+
}
204+
},
205+
"Organization": {
206+
"target": "smithy.api#String",
207+
"traits": {
208+
"smithy.api#documentation": "Organization to be used in the certificate signing request",
209+
"smithy.api#length": {
210+
"min": 1,
211+
"max": 64
212+
},
213+
"smithy.api#pattern": "^[A-Za-z]+$"
214+
}
215+
},
216+
"City": {
217+
"target": "smithy.api#String",
218+
"traits": {
219+
"smithy.api#documentation": "City to be used in the certificate signing request",
220+
"smithy.api#length": {
221+
"min": 1,
222+
"max": 128
223+
},
224+
"smithy.api#pattern": "^[A-Za-z]+$"
225+
}
226+
},
227+
"Country": {
228+
"target": "smithy.api#String",
229+
"traits": {
230+
"smithy.api#documentation": "Country to be used in the certificate signing request",
231+
"smithy.api#length": {
232+
"min": 2,
233+
"max": 2
234+
},
235+
"smithy.api#pattern": "^[A-Za-z]+$"
236+
}
237+
},
238+
"StateOrProvince": {
239+
"target": "smithy.api#String",
240+
"traits": {
241+
"smithy.api#documentation": "State Or Province to be used in the certificate signing request",
242+
"smithy.api#length": {
243+
"min": 1,
244+
"max": 128
245+
},
246+
"smithy.api#pattern": "^[A-Za-z]+$"
247+
}
248+
},
249+
"EmailAddress": {
250+
"target": "smithy.api#String",
251+
"traits": {
252+
"smithy.api#documentation": "Email to be used in the certificate signing request",
253+
"smithy.api#length": {
254+
"min": 1,
255+
"max": 128
256+
},
257+
"smithy.api#pattern": "^[a-zA-Z0-9.!#$%&’*+/=?^_`{|}~-]+@[a-zA-Z0-9-]+(?:\\.[a-zA-Z0-9-]+)*$"
258+
}
259+
}
260+
},
261+
"traits": {
262+
"smithy.api#documentation": "Metadata used in generating the CSR"
263+
}
264+
},
168265
"com.amazonaws.paymentcryptography#CertificateType": {
169266
"type": "string",
170267
"traits": {
@@ -1076,8 +1173,21 @@
10761173
"ExportToken": {
10771174
"target": "com.amazonaws.paymentcryptography#ExportTokenId",
10781175
"traits": {
1079-
"smithy.api#documentation": "<p>The export token to initiate key export from Amazon Web Services Payment Cryptography. It also contains the signing key certificate that will sign the wrapped key during TR-34 key block generation. Call <a href=\"https://docs.aws.amazon.com/payment-cryptography/latest/APIReference/API_GetParametersForExport.html\">GetParametersForExport</a> to receive an export token. It expires after 30 days. You can use the same export token to export multiple keys from the same service account.</p>",
1080-
"smithy.api#required": {}
1176+
"smithy.api#addedDefault": {},
1177+
"smithy.api#default": "",
1178+
"smithy.api#documentation": "<p>The export token to initiate key export from Amazon Web Services Payment Cryptography. It also contains the signing key certificate that will sign the wrapped key during TR-34 key block generation. Call <a href=\"https://docs.aws.amazon.com/payment-cryptography/latest/APIReference/API_GetParametersForExport.html\">GetParametersForExport</a> to receive an export token. It expires after 30 days. You can use the same export token to export multiple keys from the same service account.</p>"
1179+
}
1180+
},
1181+
"SigningKeyIdentifier": {
1182+
"target": "com.amazonaws.paymentcryptography#KeyArnOrKeyAliasType",
1183+
"traits": {
1184+
"smithy.api#documentation": "Key Identifier used for signing the export key"
1185+
}
1186+
},
1187+
"SigningKeyCertificate": {
1188+
"target": "com.amazonaws.paymentcryptography#CertificateType",
1189+
"traits": {
1190+
"smithy.api#documentation": "Certificate used for signing the export key"
10811191
}
10821192
},
10831193
"KeyBlockFormat": {
@@ -1172,6 +1282,83 @@
11721282
"smithy.api#output": {}
11731283
}
11741284
},
1285+
"com.amazonaws.paymentcryptography#GetCertificateSigningRequest": {
1286+
"type": "operation",
1287+
"input": {
1288+
"target": "com.amazonaws.paymentcryptography#GetCertificateSigningRequestInput"
1289+
},
1290+
"output": {
1291+
"target": "com.amazonaws.paymentcryptography#GetCertificateSigningRequestOutput"
1292+
},
1293+
"errors": [
1294+
{
1295+
"target": "com.amazonaws.paymentcryptography#AccessDeniedException"
1296+
},
1297+
{
1298+
"target": "com.amazonaws.paymentcryptography#InternalServerException"
1299+
},
1300+
{
1301+
"target": "com.amazonaws.paymentcryptography#ResourceNotFoundException"
1302+
},
1303+
{
1304+
"target": "com.amazonaws.paymentcryptography#ServiceUnavailableException"
1305+
},
1306+
{
1307+
"target": "com.amazonaws.paymentcryptography#ThrottlingException"
1308+
},
1309+
{
1310+
"target": "com.amazonaws.paymentcryptography#ValidationException"
1311+
}
1312+
],
1313+
"traits": {
1314+
"aws.api#controlPlane": {},
1315+
"smithy.api#documentation": "Used to retrieve the public key for a keypair."
1316+
}
1317+
},
1318+
"com.amazonaws.paymentcryptography#GetCertificateSigningRequestInput": {
1319+
"type": "structure",
1320+
"members": {
1321+
"KeyIdentifier": {
1322+
"target": "com.amazonaws.paymentcryptography#KeyArnOrKeyAliasType",
1323+
"traits": {
1324+
"smithy.api#documentation": "Asymmetric key used for generating the certificate signing request",
1325+
"smithy.api#required": {}
1326+
}
1327+
},
1328+
"SigningAlgorithm": {
1329+
"target": "com.amazonaws.paymentcryptography#SigningAlgorithmType",
1330+
"traits": {
1331+
"smithy.api#documentation": "Algorithm used to generate the certificate signing request",
1332+
"smithy.api#required": {}
1333+
}
1334+
},
1335+
"CertificateSubject": {
1336+
"target": "com.amazonaws.paymentcryptography#CertificateSubjectType",
1337+
"traits": {
1338+
"smithy.api#documentation": "Certificate subject data",
1339+
"smithy.api#required": {}
1340+
}
1341+
}
1342+
},
1343+
"traits": {
1344+
"smithy.api#input": {}
1345+
}
1346+
},
1347+
"com.amazonaws.paymentcryptography#GetCertificateSigningRequestOutput": {
1348+
"type": "structure",
1349+
"members": {
1350+
"CertificateSigningRequest": {
1351+
"target": "com.amazonaws.paymentcryptography#CertificateSigningRequestType",
1352+
"traits": {
1353+
"smithy.api#documentation": "Certificate signing request",
1354+
"smithy.api#required": {}
1355+
}
1356+
}
1357+
},
1358+
"traits": {
1359+
"smithy.api#output": {}
1360+
}
1361+
},
11751362
"com.amazonaws.paymentcryptography#GetDefaultKeyReplicationRegions": {
11761363
"type": "operation",
11771364
"input": {
@@ -1876,8 +2063,21 @@
18762063
"ImportToken": {
18772064
"target": "com.amazonaws.paymentcryptography#ImportTokenId",
18782065
"traits": {
1879-
"smithy.api#documentation": "<p>The import token that initiates key import using the asymmetric TR-34 key exchange method into Amazon Web Services Payment Cryptography. It expires after 30 days. You can use the same import token to import multiple keys to the same service account.</p>",
1880-
"smithy.api#required": {}
2066+
"smithy.api#addedDefault": {},
2067+
"smithy.api#default": "",
2068+
"smithy.api#documentation": "<p>The import token that initiates key import using the asymmetric TR-34 key exchange method into Amazon Web Services Payment Cryptography. It expires after 30 days. You can use the same import token to import multiple keys to the same service account.</p>"
2069+
}
2070+
},
2071+
"WrappingKeyIdentifier": {
2072+
"target": "com.amazonaws.paymentcryptography#KeyArnOrKeyAliasType",
2073+
"traits": {
2074+
"smithy.api#documentation": "Key Identifier used for unwrapping the import key"
2075+
}
2076+
},
2077+
"WrappingKeyCertificate": {
2078+
"target": "com.amazonaws.paymentcryptography#CertificateType",
2079+
"traits": {
2080+
"smithy.api#documentation": "Key Identifier used for unwrapping the import key"
18812081
}
18822082
},
18832083
"WrappedKeyBlock": {
@@ -2641,7 +2841,10 @@
26412841
}
26422842
},
26432843
"MultiRegionKeyType": {
2644-
"target": "com.amazonaws.paymentcryptography#MultiRegionKeyType"
2844+
"target": "com.amazonaws.paymentcryptography#MultiRegionKeyType",
2845+
"traits": {
2846+
"smithy.api#documentation": "<p>Indicates whether this key is a multi-region key and its role in the multi-region key hierarchy.</p> <p>Multi-region keys allow the same key material to be used across multiple Amazon Web Services Regions. This field specifies whether the key is a primary key (which can be replicated to other regions) or a replica key (which is a copy of a primary key in another region).</p>"
2847+
}
26452848
},
26462849
"PrimaryRegion": {
26472850
"target": "com.amazonaws.paymentcryptography#Region"
@@ -3114,6 +3317,9 @@
31143317
{
31153318
"target": "com.amazonaws.paymentcryptography#ExportKey"
31163319
},
3320+
{
3321+
"target": "com.amazonaws.paymentcryptography#GetCertificateSigningRequest"
3322+
},
31173323
{
31183324
"target": "com.amazonaws.paymentcryptography#GetDefaultKeyReplicationRegions"
31193325
},
@@ -3893,6 +4099,7 @@
38934099
"Status": {
38944100
"target": "com.amazonaws.paymentcryptography#KeyReplicationState",
38954101
"traits": {
4102+
"smithy.api#documentation": "<p>The current status of key replication in this region.</p> <p>This field indicates whether the key replication is in progress, completed successfully, or has encountered an error. Possible values include states such as SYNCRHONIZED, IN_PROGRESS, DELETE_IN_PROGRESS, or FAILED. This provides visibility into the replication process for monitoring and troubleshooting purposes.</p>",
38964103
"smithy.api#required": {}
38974104
}
38984105
},
@@ -4064,6 +4271,30 @@
40644271
"smithy.api#pattern": "^(?:[0-9a-fA-F][0-9a-fA-F])+$"
40654272
}
40664273
},
4274+
"com.amazonaws.paymentcryptography#SigningAlgorithmType": {
4275+
"type": "string",
4276+
"traits": {
4277+
"smithy.api#documentation": "Defines the Algorithm used to generate the certificate signing request",
4278+
"smithy.api#enum": [
4279+
{
4280+
"value": "SHA224",
4281+
"name": "SHA224"
4282+
},
4283+
{
4284+
"value": "SHA256",
4285+
"name": "SHA256"
4286+
},
4287+
{
4288+
"value": "SHA384",
4289+
"name": "SHA384"
4290+
},
4291+
{
4292+
"value": "SHA512",
4293+
"name": "SHA512"
4294+
}
4295+
]
4296+
}
4297+
},
40674298
"com.amazonaws.paymentcryptography#StartKeyUsage": {
40684299
"type": "operation",
40694300
"input": {

0 commit comments

Comments
 (0)