|
| 1 | +diff --git b/DynamoDbEncryption/runtimes/net/Generated/DynamoDbEncryption/CollectionOfErrors.cs a/DynamoDbEncryption/runtimes/net/Generated/DynamoDbEncryption/CollectionOfErrors.cs |
| 2 | +index 84d4af9e..ca3d3174 100644 |
| 3 | +--- b/DynamoDbEncryption/runtimes/net/Generated/DynamoDbEncryption/CollectionOfErrors.cs |
| 4 | ++++ a/DynamoDbEncryption/runtimes/net/Generated/DynamoDbEncryption/CollectionOfErrors.cs |
| 5 | +@@ -8,9 +8,17 @@ namespace AWS.Cryptography.DbEncryptionSDK.DynamoDb |
| 6 | + public class CollectionOfErrors : Exception |
| 7 | + { |
| 8 | + public readonly System.Collections.Generic.List<Exception> list; |
| 9 | +- public CollectionOfErrors(System.Collections.Generic.List<Exception> list, string message) : base(message) { this.list = list; } |
| 10 | ++ public CollectionOfErrors(System.Collections.Generic.List<Exception> list, string message) : base(message + $"\n List: \n{ListAsString(list)}") { this.list = list; } |
| 11 | + public CollectionOfErrors(string message) : base(message) { this.list = new System.Collections.Generic.List<Exception>(); } |
| 12 | + public CollectionOfErrors() : base("CollectionOfErrors") { this.list = new System.Collections.Generic.List<Exception>(); } |
| 13 | ++ private static string ListAsString(List<Exception> list) |
| 14 | ++ { |
| 15 | ++ if (list.Count < 1) return ""; |
| 16 | ++ string[] msgArr = new string[list.Count]; |
| 17 | ++ for (int i = 0; i < list.Count; i++) |
| 18 | ++ msgArr[i] = $"{list[i].GetType().Name} :: {list[i].Message}"; |
| 19 | ++ return String.Join("\n\t", msgArr); |
| 20 | ++ } |
| 21 | + } |
| 22 | + |
| 23 | + } |
| 24 | +diff --git b/DynamoDbEncryption/runtimes/net/Generated/DynamoDbEncryption/TypeConversion.cs a/DynamoDbEncryption/runtimes/net/Generated/DynamoDbEncryption/TypeConversion.cs |
| 25 | +index 168c3a3d..b0542873 100644 |
| 26 | +--- b/DynamoDbEncryption/runtimes/net/Generated/DynamoDbEncryption/TypeConversion.cs |
| 27 | ++++ a/DynamoDbEncryption/runtimes/net/Generated/DynamoDbEncryption/TypeConversion.cs |
| 28 | +@@ -7,10 +7,43 @@ namespace AWS.Cryptography.DbEncryptionSDK.DynamoDb |
| 29 | + { |
| 30 | + public static class TypeConversion |
| 31 | + { |
| 32 | +- private const string ISO8601DateFormat = "yyyy-MM-dd\\THH:mm:ss.fff\\Z"; |
| 33 | +- |
| 34 | +- private const string ISO8601DateFormatNoMS = "yyyy-MM-dd\\THH:mm:ss\\Z"; |
| 35 | ++ // BEGIN MANUAL EDIT |
| 36 | ++ public static AWS.Cryptography.KeyStore.KeyStore FromDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N8_dynamoDb__S17_KeyStoreReference(software.amazon.cryptography.keystore.internaldafny.types.IKeyStoreClient value) |
| 37 | ++ { |
| 38 | ++ if (value is software.amazon.cryptography.keystore.internaldafny.types.IKeyStoreClient dafnyValue) |
| 39 | ++ { |
| 40 | ++ return new AWS.Cryptography.KeyStore.KeyStore(dafnyValue); |
| 41 | ++ } |
| 42 | ++ throw new System.ArgumentException("Custom implementations of AWS.Cryptography.KeyStore.KeyStore are not supported yet"); |
| 43 | ++ } |
| 44 | ++ public static software.amazon.cryptography.keystore.internaldafny.types.IKeyStoreClient ToDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N8_dynamoDb__S17_KeyStoreReference(AWS.Cryptography.KeyStore.KeyStore value) |
| 45 | ++ { |
| 46 | ++ if (value is AWS.Cryptography.KeyStore.KeyStore nativeValue) |
| 47 | ++ { |
| 48 | ++ return nativeValue.impl(); |
| 49 | ++ } |
| 50 | ++ throw new System.ArgumentException("Custom implementations of AWS.Cryptography.KeyStore.KeyStore are not supported yet"); |
| 51 | ++ } |
| 52 | ++ public static AWS.Cryptography.DbEncryptionSDK.DynamoDb.ILegacyDynamoDbEncryptor FromDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N8_dynamoDb__S32_LegacyDynamoDbEncryptorReference(software.amazon.cryptography.dbencryptionsdk.dynamodb.internaldafny.types.ILegacyDynamoDbEncryptor value) |
| 53 | ++ { |
| 54 | ++ if (value is NativeWrapper_LegacyDynamoDbEncryptor nativeWrapper) return nativeWrapper._impl; |
| 55 | ++ return new LegacyDynamoDbEncryptor(value); |
| 56 | + |
| 57 | ++ } |
| 58 | ++ public static software.amazon.cryptography.dbencryptionsdk.dynamodb.internaldafny.types.ILegacyDynamoDbEncryptor ToDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N8_dynamoDb__S32_LegacyDynamoDbEncryptorReference(AWS.Cryptography.DbEncryptionSDK.DynamoDb.ILegacyDynamoDbEncryptor value) |
| 59 | ++ { |
| 60 | ++ switch (value) |
| 61 | ++ { |
| 62 | ++ case LegacyDynamoDbEncryptor valueWithImpl: |
| 63 | ++ return valueWithImpl._impl; |
| 64 | ++ case LegacyDynamoDbEncryptorBase nativeImpl: |
| 65 | ++ return new NativeWrapper_LegacyDynamoDbEncryptor(nativeImpl); |
| 66 | ++ default: |
| 67 | ++ throw new System.ArgumentException( |
| 68 | ++ "Custom implementations of LegacyDynamoDbEncryptor must extend LegacyDynamoDbEncryptorBase."); |
| 69 | ++ } |
| 70 | ++ } |
| 71 | ++ // END MANUAL EDIT |
| 72 | + public static AWS.Cryptography.DbEncryptionSDK.DynamoDb.BeaconKeySource FromDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N8_dynamoDb__S15_BeaconKeySource(software.amazon.cryptography.dbencryptionsdk.dynamodb.internaldafny.types._IBeaconKeySource value) |
| 73 | + { |
| 74 | + software.amazon.cryptography.dbencryptionsdk.dynamodb.internaldafny.types.BeaconKeySource concrete = (software.amazon.cryptography.dbencryptionsdk.dynamodb.internaldafny.types.BeaconKeySource)value; |
0 commit comments