@@ -7,10 +7,43 @@ namespace AWS.Cryptography.DbEncryptionSDK.DynamoDb
7
7
{
8
8
public static class TypeConversion
9
9
{
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" ;
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 ) ;
13
31
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
14
47
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 )
15
48
{
16
49
software . amazon . cryptography . dbencryptionsdk . dynamodb . internaldafny . types . BeaconKeySource concrete = ( software . amazon . cryptography . dbencryptionsdk . dynamodb . internaldafny . types . BeaconKeySource ) value ;
0 commit comments