File tree 2 files changed +23
-14
lines changed
clients/client-payment-cryptography/src/models
codegen/sdk-codegen/aws-models
2 files changed +23
-14
lines changed Original file line number Diff line number Diff line change @@ -1893,6 +1893,14 @@ export const RootCertificatePublicKeyFilterSensitiveLog = (obj: RootCertificateP
1893
1893
...( obj . PublicKeyCertificate && { PublicKeyCertificate : SENSITIVE_STRING } ) ,
1894
1894
} ) ;
1895
1895
1896
+ /**
1897
+ * @internal
1898
+ */
1899
+ export const ImportTr31KeyBlockFilterSensitiveLog = ( obj : ImportTr31KeyBlock ) : any => ( {
1900
+ ...obj ,
1901
+ ...( obj . WrappedKeyBlock && { WrappedKeyBlock : SENSITIVE_STRING } ) ,
1902
+ } ) ;
1903
+
1896
1904
/**
1897
1905
* @internal
1898
1906
*/
@@ -1919,7 +1927,7 @@ export const ImportKeyMaterialFilterSensitiveLog = (obj: ImportKeyMaterial): any
1919
1927
return {
1920
1928
TrustedCertificatePublicKey : TrustedCertificatePublicKeyFilterSensitiveLog ( obj . TrustedCertificatePublicKey ) ,
1921
1929
} ;
1922
- if ( obj . Tr31KeyBlock !== undefined ) return { Tr31KeyBlock : obj . Tr31KeyBlock } ;
1930
+ if ( obj . Tr31KeyBlock !== undefined ) return { Tr31KeyBlock : ImportTr31KeyBlockFilterSensitiveLog ( obj . Tr31KeyBlock ) } ;
1923
1931
if ( obj . Tr34KeyBlock !== undefined ) return { Tr34KeyBlock : ImportTr34KeyBlockFilterSensitiveLog ( obj . Tr34KeyBlock ) } ;
1924
1932
if ( obj . KeyCryptogram !== undefined ) return { KeyCryptogram : obj . KeyCryptogram } ;
1925
1933
if ( obj . $unknown !== undefined ) return { [ obj . $unknown [ 0 ] ] : "UNKNOWN" } ;
Original file line number Diff line number Diff line change 432
432
"smithy.api#output" : {}
433
433
}
434
434
},
435
+ "com.amazonaws.paymentcryptography#EvenHexLengthBetween16And32" : {
436
+ "type" : " string" ,
437
+ "traits" : {
438
+ "smithy.api#length" : {
439
+ "min" : 16 ,
440
+ "max" : 32
441
+ },
442
+ "smithy.api#pattern" : " ^(?:[0-9a-fA-F][0-9a-fA-F])+$"
443
+ }
444
+ },
435
445
"com.amazonaws.paymentcryptography#ExportAttributes" : {
436
446
"type" : " structure" ,
437
447
"members" : {
658
668
}
659
669
},
660
670
"RandomNonce" : {
661
- "target" : " com.amazonaws.paymentcryptography#HexLength16 " ,
671
+ "target" : " com.amazonaws.paymentcryptography#EvenHexLengthBetween16And32 " ,
662
672
"traits" : {
663
673
"smithy.api#documentation" : " <p>A random number value that is unique to the TR-34 key block generated using 2 pass. The operation will fail, if a random nonce value is not provided for a TR-34 key block generated using 2 pass.</p>"
664
674
}
1085
1095
"smithy.api#output" : {}
1086
1096
}
1087
1097
},
1088
- "com.amazonaws.paymentcryptography#HexLength16" : {
1089
- "type" : " string" ,
1090
- "traits" : {
1091
- "smithy.api#length" : {
1092
- "min" : 16 ,
1093
- "max" : 16
1094
- },
1095
- "smithy.api#pattern" : " ^[0-9A-F]+$"
1096
- }
1097
- },
1098
1098
"com.amazonaws.paymentcryptography#HexLength20Or24" : {
1099
1099
"type" : " string" ,
1100
1100
"traits" : {
1338
1338
}
1339
1339
},
1340
1340
"RandomNonce" : {
1341
- "target" : " com.amazonaws.paymentcryptography#HexLength16 " ,
1341
+ "target" : " com.amazonaws.paymentcryptography#EvenHexLengthBetween16And32 " ,
1342
1342
"traits" : {
1343
1343
"smithy.api#documentation" : " <p>A random number value that is unique to the TR-34 key block generated using 2 pass. The operation will fail, if a random nonce value is not provided for a TR-34 key block generated using 2 pass.</p>"
1344
1344
}
3492
3492
"min" : 56 ,
3493
3493
"max" : 9984
3494
3494
},
3495
- "smithy.api#pattern" : " ^[0-9A-Z]+$"
3495
+ "smithy.api#pattern" : " ^[0-9A-Z]+$" ,
3496
+ "smithy.api#sensitive" : {}
3496
3497
}
3497
3498
},
3498
3499
"com.amazonaws.paymentcryptography#Tr34KeyBlockFormat" : {
You can’t perform that action at this time.
0 commit comments