@@ -7,43 +7,10 @@ namespace AWS.Cryptography.DbEncryptionSDK.DynamoDb
77{
88 public static class TypeConversion
99 {
10- // BEGIN MANUAL EDIT
11- 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 )
12- {
13- if ( value is software . amazon . cryptography . keystore . internaldafny . types . IKeyStoreClient dafnyValue )
14- {
15- return new AWS . Cryptography . KeyStore . KeyStore ( dafnyValue ) ;
16- }
17- throw new System . ArgumentException ( "Custom implementations of AWS.Cryptography.KeyStore.KeyStore are not supported yet" ) ;
18- }
19- 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 )
20- {
21- if ( value is AWS . Cryptography . KeyStore . KeyStore nativeValue )
22- {
23- return nativeValue . impl ( ) ;
24- }
25- throw new System . ArgumentException ( "Custom implementations of AWS.Cryptography.KeyStore.KeyStore are not supported yet" ) ;
26- }
27- 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 )
28- {
29- if ( value is NativeWrapper_LegacyDynamoDbEncryptor nativeWrapper ) return nativeWrapper . _impl ;
30- return new LegacyDynamoDbEncryptor ( value ) ;
10+ private const string ISO8601DateFormat = "yyyy-MM-dd\\ THH:mm:ss.fff\\ Z" ;
11+
12+ private const string ISO8601DateFormatNoMS = "yyyy-MM-dd\\ THH:mm:ss\\ Z" ;
3113
32- }
33- 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 )
34- {
35- switch ( value )
36- {
37- case LegacyDynamoDbEncryptor valueWithImpl :
38- return valueWithImpl . _impl ;
39- case LegacyDynamoDbEncryptorBase nativeImpl :
40- return new NativeWrapper_LegacyDynamoDbEncryptor ( nativeImpl ) ;
41- default :
42- throw new System . ArgumentException (
43- "Custom implementations of LegacyDynamoDbEncryptor must extend LegacyDynamoDbEncryptorBase." ) ;
44- }
45- }
46- // END MANUAL EDIT
4714 public static AWS . Cryptography . DbEncryptionSDK . DynamoDb . AsSet FromDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N8_dynamoDb__S5_AsSet ( software . amazon . cryptography . dbencryptionsdk . dynamodb . internaldafny . types . _IAsSet value )
4815 {
4916 software . amazon . cryptography . dbencryptionsdk . dynamodb . internaldafny . types . AsSet concrete = ( software . amazon . cryptography . dbencryptionsdk . dynamodb . internaldafny . types . AsSet ) value ; AWS . Cryptography . DbEncryptionSDK . DynamoDb . AsSet converted = new AWS . Cryptography . DbEncryptionSDK . DynamoDb . AsSet ( ) ; return converted ;
0 commit comments