diff --git a/AwsCryptographicMaterialProviders/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/materialproviders/model/CreateAwsKmsHierarchicalKeyringInput.java b/AwsCryptographicMaterialProviders/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/materialproviders/model/CreateAwsKmsHierarchicalKeyringInput.java index da972fa97..e9601e556 100644 --- a/AwsCryptographicMaterialProviders/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/materialproviders/model/CreateAwsKmsHierarchicalKeyringInput.java +++ b/AwsCryptographicMaterialProviders/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/materialproviders/model/CreateAwsKmsHierarchicalKeyringInput.java @@ -31,7 +31,7 @@ public class CreateAwsKmsHierarchicalKeyringInput { /** * How many seconds the Branch Key material is allowed to be reused within the local cache before it is re-retrieved from Amazon DynamoDB and re-authenticated with AWS KMS. */ - private final long ttlSeconds; + private final Long ttlSeconds; /** * Sets the type of cache for this Hierarchical Keyring. By providing an already initialized 'Shared' cache, users can determine the scope of the cache. That is, if the cache is shared across other Cryptographic Material Providers, for instance other Hierarchical Keyrings or Caching Cryptographic Materials Managers (Caching CMMs). If any other type of cache in the CacheType union is provided, the Hierarchical Keyring will initialize a cache of that type, to be used with only this Hierarchical Keyring. If not set, a DefaultCache is initialized to be used with only this Hierarchical Keyring with entryCapacity = 1000. @@ -76,7 +76,7 @@ public KeyStore keyStore() { /** * @return How many seconds the Branch Key material is allowed to be reused within the local cache before it is re-retrieved from Amazon DynamoDB and re-authenticated with AWS KMS. */ - public long ttlSeconds() { + public Long ttlSeconds() { return this.ttlSeconds; } @@ -136,12 +136,12 @@ public interface Builder { /** * @param ttlSeconds How many seconds the Branch Key material is allowed to be reused within the local cache before it is re-retrieved from Amazon DynamoDB and re-authenticated with AWS KMS. */ - Builder ttlSeconds(long ttlSeconds); + Builder ttlSeconds(Long ttlSeconds); /** * @return How many seconds the Branch Key material is allowed to be reused within the local cache before it is re-retrieved from Amazon DynamoDB and re-authenticated with AWS KMS. */ - long ttlSeconds(); + Long ttlSeconds(); /** * @param cache Sets the type of cache for this Hierarchical Keyring. By providing an already initialized 'Shared' cache, users can determine the scope of the cache. That is, if the cache is shared across other Cryptographic Material Providers, for instance other Hierarchical Keyrings or Caching Cryptographic Materials Managers (Caching CMMs). If any other type of cache in the CacheType union is provided, the Hierarchical Keyring will initialize a cache of that type, to be used with only this Hierarchical Keyring. If not set, a DefaultCache is initialized to be used with only this Hierarchical Keyring with entryCapacity = 1000. @@ -174,9 +174,7 @@ static class BuilderImpl implements Builder { protected KeyStore keyStore; - protected long ttlSeconds; - - private boolean _ttlSecondsSet = false; + protected Long ttlSeconds; protected CacheType cache; @@ -189,7 +187,6 @@ protected BuilderImpl(CreateAwsKmsHierarchicalKeyringInput model) { this.branchKeyIdSupplier = model.branchKeyIdSupplier(); this.keyStore = model.keyStore(); this.ttlSeconds = model.ttlSeconds(); - this._ttlSecondsSet = true; this.cache = model.cache(); this.partitionId = model.partitionId(); } @@ -223,13 +220,12 @@ public KeyStore keyStore() { return this.keyStore; } - public Builder ttlSeconds(long ttlSeconds) { + public Builder ttlSeconds(Long ttlSeconds) { this.ttlSeconds = ttlSeconds; - this._ttlSecondsSet = true; return this; } - public long ttlSeconds() { + public Long ttlSeconds() { return this.ttlSeconds; } @@ -257,12 +253,12 @@ public CreateAwsKmsHierarchicalKeyringInput build() { "Missing value for required field `keyStore`" ); } - if (!this._ttlSecondsSet) { + if (Objects.isNull(this.ttlSeconds())) { throw new IllegalArgumentException( "Missing value for required field `ttlSeconds`" ); } - if (this._ttlSecondsSet && this.ttlSeconds() < 0) { + if (Objects.nonNull(this.ttlSeconds()) && this.ttlSeconds() < 0) { throw new IllegalArgumentException( "`ttlSeconds` must be greater than or equal to 0" ); diff --git a/AwsCryptographicMaterialProviders/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/materialproviders/model/DefaultCache.java b/AwsCryptographicMaterialProviders/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/materialproviders/model/DefaultCache.java index fda8b217c..844d26eab 100644 --- a/AwsCryptographicMaterialProviders/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/materialproviders/model/DefaultCache.java +++ b/AwsCryptographicMaterialProviders/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/materialproviders/model/DefaultCache.java @@ -3,6 +3,8 @@ // Do not modify this file. This file is machine generated, and any changes to it will be overwritten. package software.amazon.cryptography.materialproviders.model; +import java.util.Objects; + /** * The best choice for most situations. Probably a StormTrackingCache. */ @@ -11,7 +13,7 @@ public class DefaultCache { /** * Maximum number of entries cached. */ - private final int entryCapacity; + private final Integer entryCapacity; protected DefaultCache(BuilderImpl builder) { this.entryCapacity = builder.entryCapacity(); @@ -20,7 +22,7 @@ protected DefaultCache(BuilderImpl builder) { /** * @return Maximum number of entries cached. */ - public int entryCapacity() { + public Integer entryCapacity() { return this.entryCapacity; } @@ -36,46 +38,42 @@ public interface Builder { /** * @param entryCapacity Maximum number of entries cached. */ - Builder entryCapacity(int entryCapacity); + Builder entryCapacity(Integer entryCapacity); /** * @return Maximum number of entries cached. */ - int entryCapacity(); + Integer entryCapacity(); DefaultCache build(); } static class BuilderImpl implements Builder { - protected int entryCapacity; - - private boolean _entryCapacitySet = false; + protected Integer entryCapacity; protected BuilderImpl() {} protected BuilderImpl(DefaultCache model) { this.entryCapacity = model.entryCapacity(); - this._entryCapacitySet = true; } - public Builder entryCapacity(int entryCapacity) { + public Builder entryCapacity(Integer entryCapacity) { this.entryCapacity = entryCapacity; - this._entryCapacitySet = true; return this; } - public int entryCapacity() { + public Integer entryCapacity() { return this.entryCapacity; } public DefaultCache build() { - if (!this._entryCapacitySet) { + if (Objects.isNull(this.entryCapacity())) { throw new IllegalArgumentException( "Missing value for required field `entryCapacity`" ); } - if (this._entryCapacitySet && this.entryCapacity() < 1) { + if (Objects.nonNull(this.entryCapacity()) && this.entryCapacity() < 1) { throw new IllegalArgumentException( "`entryCapacity` must be greater than or equal to 1" ); diff --git a/AwsCryptographicMaterialProviders/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/materialproviders/model/GetCacheEntryOutput.java b/AwsCryptographicMaterialProviders/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/materialproviders/model/GetCacheEntryOutput.java index 98f90d607..d4d4b7f5e 100644 --- a/AwsCryptographicMaterialProviders/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/materialproviders/model/GetCacheEntryOutput.java +++ b/AwsCryptographicMaterialProviders/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/materialproviders/model/GetCacheEntryOutput.java @@ -9,13 +9,13 @@ public class GetCacheEntryOutput { private final Materials materials; - private final long creationTime; + private final Long creationTime; - private final long expiryTime; + private final Long expiryTime; - private final int messagesUsed; + private final Integer messagesUsed; - private final int bytesUsed; + private final Integer bytesUsed; protected GetCacheEntryOutput(BuilderImpl builder) { this.materials = builder.materials(); @@ -29,19 +29,19 @@ public Materials materials() { return this.materials; } - public long creationTime() { + public Long creationTime() { return this.creationTime; } - public long expiryTime() { + public Long expiryTime() { return this.expiryTime; } - public int messagesUsed() { + public Integer messagesUsed() { return this.messagesUsed; } - public int bytesUsed() { + public Integer bytesUsed() { return this.bytesUsed; } @@ -58,21 +58,21 @@ public interface Builder { Materials materials(); - Builder creationTime(long creationTime); + Builder creationTime(Long creationTime); - long creationTime(); + Long creationTime(); - Builder expiryTime(long expiryTime); + Builder expiryTime(Long expiryTime); - long expiryTime(); + Long expiryTime(); - Builder messagesUsed(int messagesUsed); + Builder messagesUsed(Integer messagesUsed); - int messagesUsed(); + Integer messagesUsed(); - Builder bytesUsed(int bytesUsed); + Builder bytesUsed(Integer bytesUsed); - int bytesUsed(); + Integer bytesUsed(); GetCacheEntryOutput build(); } @@ -81,34 +81,22 @@ static class BuilderImpl implements Builder { protected Materials materials; - protected long creationTime; + protected Long creationTime; - private boolean _creationTimeSet = false; + protected Long expiryTime; - protected long expiryTime; + protected Integer messagesUsed; - private boolean _expiryTimeSet = false; - - protected int messagesUsed; - - private boolean _messagesUsedSet = false; - - protected int bytesUsed; - - private boolean _bytesUsedSet = false; + protected Integer bytesUsed; protected BuilderImpl() {} protected BuilderImpl(GetCacheEntryOutput model) { this.materials = model.materials(); this.creationTime = model.creationTime(); - this._creationTimeSet = true; this.expiryTime = model.expiryTime(); - this._expiryTimeSet = true; this.messagesUsed = model.messagesUsed(); - this._messagesUsedSet = true; this.bytesUsed = model.bytesUsed(); - this._bytesUsedSet = true; } public Builder materials(Materials materials) { @@ -120,43 +108,39 @@ public Materials materials() { return this.materials; } - public Builder creationTime(long creationTime) { + public Builder creationTime(Long creationTime) { this.creationTime = creationTime; - this._creationTimeSet = true; return this; } - public long creationTime() { + public Long creationTime() { return this.creationTime; } - public Builder expiryTime(long expiryTime) { + public Builder expiryTime(Long expiryTime) { this.expiryTime = expiryTime; - this._expiryTimeSet = true; return this; } - public long expiryTime() { + public Long expiryTime() { return this.expiryTime; } - public Builder messagesUsed(int messagesUsed) { + public Builder messagesUsed(Integer messagesUsed) { this.messagesUsed = messagesUsed; - this._messagesUsedSet = true; return this; } - public int messagesUsed() { + public Integer messagesUsed() { return this.messagesUsed; } - public Builder bytesUsed(int bytesUsed) { + public Builder bytesUsed(Integer bytesUsed) { this.bytesUsed = bytesUsed; - this._bytesUsedSet = true; return this; } - public int bytesUsed() { + public Integer bytesUsed() { return this.bytesUsed; } @@ -166,42 +150,42 @@ public GetCacheEntryOutput build() { "Missing value for required field `materials`" ); } - if (!this._creationTimeSet) { + if (Objects.isNull(this.creationTime())) { throw new IllegalArgumentException( "Missing value for required field `creationTime`" ); } - if (this._creationTimeSet && this.creationTime() < 0) { + if (Objects.nonNull(this.creationTime()) && this.creationTime() < 0) { throw new IllegalArgumentException( "`creationTime` must be greater than or equal to 0" ); } - if (!this._expiryTimeSet) { + if (Objects.isNull(this.expiryTime())) { throw new IllegalArgumentException( "Missing value for required field `expiryTime`" ); } - if (this._expiryTimeSet && this.expiryTime() < 0) { + if (Objects.nonNull(this.expiryTime()) && this.expiryTime() < 0) { throw new IllegalArgumentException( "`expiryTime` must be greater than or equal to 0" ); } - if (!this._messagesUsedSet) { + if (Objects.isNull(this.messagesUsed())) { throw new IllegalArgumentException( "Missing value for required field `messagesUsed`" ); } - if (this._messagesUsedSet && this.messagesUsed() < 0) { + if (Objects.nonNull(this.messagesUsed()) && this.messagesUsed() < 0) { throw new IllegalArgumentException( "`messagesUsed` must be greater than or equal to 0" ); } - if (!this._bytesUsedSet) { + if (Objects.isNull(this.bytesUsed())) { throw new IllegalArgumentException( "Missing value for required field `bytesUsed`" ); } - if (this._bytesUsedSet && this.bytesUsed() < 0) { + if (Objects.nonNull(this.bytesUsed()) && this.bytesUsed() < 0) { throw new IllegalArgumentException( "`bytesUsed` must be greater than or equal to 0" ); diff --git a/AwsCryptographicMaterialProviders/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/materialproviders/model/HKDF.java b/AwsCryptographicMaterialProviders/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/materialproviders/model/HKDF.java index 65b935b09..0038e98d6 100644 --- a/AwsCryptographicMaterialProviders/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/materialproviders/model/HKDF.java +++ b/AwsCryptographicMaterialProviders/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/materialproviders/model/HKDF.java @@ -10,11 +10,11 @@ public class HKDF { private final DigestAlgorithm hmac; - private final int saltLength; + private final Integer saltLength; - private final int inputKeyLength; + private final Integer inputKeyLength; - private final int outputKeyLength; + private final Integer outputKeyLength; protected HKDF(BuilderImpl builder) { this.hmac = builder.hmac(); @@ -27,15 +27,15 @@ public DigestAlgorithm hmac() { return this.hmac; } - public int saltLength() { + public Integer saltLength() { return this.saltLength; } - public int inputKeyLength() { + public Integer inputKeyLength() { return this.inputKeyLength; } - public int outputKeyLength() { + public Integer outputKeyLength() { return this.outputKeyLength; } @@ -52,17 +52,17 @@ public interface Builder { DigestAlgorithm hmac(); - Builder saltLength(int saltLength); + Builder saltLength(Integer saltLength); - int saltLength(); + Integer saltLength(); - Builder inputKeyLength(int inputKeyLength); + Builder inputKeyLength(Integer inputKeyLength); - int inputKeyLength(); + Integer inputKeyLength(); - Builder outputKeyLength(int outputKeyLength); + Builder outputKeyLength(Integer outputKeyLength); - int outputKeyLength(); + Integer outputKeyLength(); HKDF build(); } @@ -71,28 +71,19 @@ static class BuilderImpl implements Builder { protected DigestAlgorithm hmac; - protected int saltLength; + protected Integer saltLength; - private boolean _saltLengthSet = false; + protected Integer inputKeyLength; - protected int inputKeyLength; - - private boolean _inputKeyLengthSet = false; - - protected int outputKeyLength; - - private boolean _outputKeyLengthSet = false; + protected Integer outputKeyLength; protected BuilderImpl() {} protected BuilderImpl(HKDF model) { this.hmac = model.hmac(); this.saltLength = model.saltLength(); - this._saltLengthSet = true; this.inputKeyLength = model.inputKeyLength(); - this._inputKeyLengthSet = true; this.outputKeyLength = model.outputKeyLength(); - this._outputKeyLengthSet = true; } public Builder hmac(DigestAlgorithm hmac) { @@ -104,33 +95,30 @@ public DigestAlgorithm hmac() { return this.hmac; } - public Builder saltLength(int saltLength) { + public Builder saltLength(Integer saltLength) { this.saltLength = saltLength; - this._saltLengthSet = true; return this; } - public int saltLength() { + public Integer saltLength() { return this.saltLength; } - public Builder inputKeyLength(int inputKeyLength) { + public Builder inputKeyLength(Integer inputKeyLength) { this.inputKeyLength = inputKeyLength; - this._inputKeyLengthSet = true; return this; } - public int inputKeyLength() { + public Integer inputKeyLength() { return this.inputKeyLength; } - public Builder outputKeyLength(int outputKeyLength) { + public Builder outputKeyLength(Integer outputKeyLength) { this.outputKeyLength = outputKeyLength; - this._outputKeyLengthSet = true; return this; } - public int outputKeyLength() { + public Integer outputKeyLength() { return this.outputKeyLength; } @@ -140,42 +128,48 @@ public HKDF build() { "Missing value for required field `hmac`" ); } - if (!this._saltLengthSet) { + if (Objects.isNull(this.saltLength())) { throw new IllegalArgumentException( "Missing value for required field `saltLength`" ); } - if (this._saltLengthSet && this.saltLength() < 0) { + if (Objects.nonNull(this.saltLength()) && this.saltLength() < 0) { throw new IllegalArgumentException( "`saltLength` must be greater than or equal to 0" ); } - if (!this._inputKeyLengthSet) { + if (Objects.isNull(this.inputKeyLength())) { throw new IllegalArgumentException( "Missing value for required field `inputKeyLength`" ); } - if (this._inputKeyLengthSet && this.inputKeyLength() < 1) { + if (Objects.nonNull(this.inputKeyLength()) && this.inputKeyLength() < 1) { throw new IllegalArgumentException( "`inputKeyLength` must be greater than or equal to 1" ); } - if (this._inputKeyLengthSet && this.inputKeyLength() > 32) { + if ( + Objects.nonNull(this.inputKeyLength()) && this.inputKeyLength() > 32 + ) { throw new IllegalArgumentException( "`inputKeyLength` must be less than or equal to 32." ); } - if (!this._outputKeyLengthSet) { + if (Objects.isNull(this.outputKeyLength())) { throw new IllegalArgumentException( "Missing value for required field `outputKeyLength`" ); } - if (this._outputKeyLengthSet && this.outputKeyLength() < 1) { + if ( + Objects.nonNull(this.outputKeyLength()) && this.outputKeyLength() < 1 + ) { throw new IllegalArgumentException( "`outputKeyLength` must be greater than or equal to 1" ); } - if (this._outputKeyLengthSet && this.outputKeyLength() > 32) { + if ( + Objects.nonNull(this.outputKeyLength()) && this.outputKeyLength() > 32 + ) { throw new IllegalArgumentException( "`outputKeyLength` must be less than or equal to 32." ); diff --git a/AwsCryptographicMaterialProviders/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/materialproviders/model/MultiThreadedCache.java b/AwsCryptographicMaterialProviders/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/materialproviders/model/MultiThreadedCache.java index 79e146e5f..742bd2482 100644 --- a/AwsCryptographicMaterialProviders/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/materialproviders/model/MultiThreadedCache.java +++ b/AwsCryptographicMaterialProviders/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/materialproviders/model/MultiThreadedCache.java @@ -3,6 +3,8 @@ // Do not modify this file. This file is machine generated, and any changes to it will be overwritten. package software.amazon.cryptography.materialproviders.model; +import java.util.Objects; + /** * A cache that is safe for use in a multi threaded environment, but no extra functionality. */ @@ -11,12 +13,12 @@ public class MultiThreadedCache { /** * Maximum number of entries cached. */ - private final int entryCapacity; + private final Integer entryCapacity; /** * Number of entries to prune at a time. */ - private final int entryPruningTailSize; + private final Integer entryPruningTailSize; protected MultiThreadedCache(BuilderImpl builder) { this.entryCapacity = builder.entryCapacity(); @@ -26,14 +28,14 @@ protected MultiThreadedCache(BuilderImpl builder) { /** * @return Maximum number of entries cached. */ - public int entryCapacity() { + public Integer entryCapacity() { return this.entryCapacity; } /** * @return Number of entries to prune at a time. */ - public int entryPruningTailSize() { + public Integer entryPruningTailSize() { return this.entryPruningTailSize; } @@ -49,77 +51,72 @@ public interface Builder { /** * @param entryCapacity Maximum number of entries cached. */ - Builder entryCapacity(int entryCapacity); + Builder entryCapacity(Integer entryCapacity); /** * @return Maximum number of entries cached. */ - int entryCapacity(); + Integer entryCapacity(); /** * @param entryPruningTailSize Number of entries to prune at a time. */ - Builder entryPruningTailSize(int entryPruningTailSize); + Builder entryPruningTailSize(Integer entryPruningTailSize); /** * @return Number of entries to prune at a time. */ - int entryPruningTailSize(); + Integer entryPruningTailSize(); MultiThreadedCache build(); } static class BuilderImpl implements Builder { - protected int entryCapacity; - - private boolean _entryCapacitySet = false; - - protected int entryPruningTailSize; + protected Integer entryCapacity; - private boolean _entryPruningTailSizeSet = false; + protected Integer entryPruningTailSize; protected BuilderImpl() {} protected BuilderImpl(MultiThreadedCache model) { this.entryCapacity = model.entryCapacity(); - this._entryCapacitySet = true; this.entryPruningTailSize = model.entryPruningTailSize(); - this._entryPruningTailSizeSet = true; } - public Builder entryCapacity(int entryCapacity) { + public Builder entryCapacity(Integer entryCapacity) { this.entryCapacity = entryCapacity; - this._entryCapacitySet = true; return this; } - public int entryCapacity() { + public Integer entryCapacity() { return this.entryCapacity; } - public Builder entryPruningTailSize(int entryPruningTailSize) { + public Builder entryPruningTailSize(Integer entryPruningTailSize) { this.entryPruningTailSize = entryPruningTailSize; - this._entryPruningTailSizeSet = true; return this; } - public int entryPruningTailSize() { + public Integer entryPruningTailSize() { return this.entryPruningTailSize; } public MultiThreadedCache build() { - if (!this._entryCapacitySet) { + if (Objects.isNull(this.entryCapacity())) { throw new IllegalArgumentException( "Missing value for required field `entryCapacity`" ); } - if (this._entryCapacitySet && this.entryCapacity() < 1) { + if (Objects.nonNull(this.entryCapacity()) && this.entryCapacity() < 1) { throw new IllegalArgumentException( "`entryCapacity` must be greater than or equal to 1" ); } - if (this._entryPruningTailSizeSet && this.entryPruningTailSize() < 1) { + if ( + Objects.nonNull(this.entryPruningTailSize()) && + this.entryPruningTailSize() < 1 + ) { throw new IllegalArgumentException( "`entryPruningTailSize` must be greater than or equal to 1" ); diff --git a/AwsCryptographicMaterialProviders/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/materialproviders/model/PutCacheEntryInput.java b/AwsCryptographicMaterialProviders/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/materialproviders/model/PutCacheEntryInput.java index cdc22c12d..cdcf808ea 100644 --- a/AwsCryptographicMaterialProviders/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/materialproviders/model/PutCacheEntryInput.java +++ b/AwsCryptographicMaterialProviders/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/materialproviders/model/PutCacheEntryInput.java @@ -12,13 +12,13 @@ public class PutCacheEntryInput { private final Materials materials; - private final long creationTime; + private final Long creationTime; - private final long expiryTime; + private final Long expiryTime; - private final int messagesUsed; + private final Integer messagesUsed; - private final int bytesUsed; + private final Integer bytesUsed; protected PutCacheEntryInput(BuilderImpl builder) { this.identifier = builder.identifier(); @@ -37,19 +37,19 @@ public Materials materials() { return this.materials; } - public long creationTime() { + public Long creationTime() { return this.creationTime; } - public long expiryTime() { + public Long expiryTime() { return this.expiryTime; } - public int messagesUsed() { + public Integer messagesUsed() { return this.messagesUsed; } - public int bytesUsed() { + public Integer bytesUsed() { return this.bytesUsed; } @@ -70,21 +70,21 @@ public interface Builder { Materials materials(); - Builder creationTime(long creationTime); + Builder creationTime(Long creationTime); - long creationTime(); + Long creationTime(); - Builder expiryTime(long expiryTime); + Builder expiryTime(Long expiryTime); - long expiryTime(); + Long expiryTime(); - Builder messagesUsed(int messagesUsed); + Builder messagesUsed(Integer messagesUsed); - int messagesUsed(); + Integer messagesUsed(); - Builder bytesUsed(int bytesUsed); + Builder bytesUsed(Integer bytesUsed); - int bytesUsed(); + Integer bytesUsed(); PutCacheEntryInput build(); } @@ -95,21 +95,13 @@ static class BuilderImpl implements Builder { protected Materials materials; - protected long creationTime; + protected Long creationTime; - private boolean _creationTimeSet = false; + protected Long expiryTime; - protected long expiryTime; + protected Integer messagesUsed; - private boolean _expiryTimeSet = false; - - protected int messagesUsed; - - private boolean _messagesUsedSet = false; - - protected int bytesUsed; - - private boolean _bytesUsedSet = false; + protected Integer bytesUsed; protected BuilderImpl() {} @@ -117,13 +109,9 @@ protected BuilderImpl(PutCacheEntryInput model) { this.identifier = model.identifier(); this.materials = model.materials(); this.creationTime = model.creationTime(); - this._creationTimeSet = true; this.expiryTime = model.expiryTime(); - this._expiryTimeSet = true; this.messagesUsed = model.messagesUsed(); - this._messagesUsedSet = true; this.bytesUsed = model.bytesUsed(); - this._bytesUsedSet = true; } public Builder identifier(ByteBuffer identifier) { @@ -144,43 +132,39 @@ public Materials materials() { return this.materials; } - public Builder creationTime(long creationTime) { + public Builder creationTime(Long creationTime) { this.creationTime = creationTime; - this._creationTimeSet = true; return this; } - public long creationTime() { + public Long creationTime() { return this.creationTime; } - public Builder expiryTime(long expiryTime) { + public Builder expiryTime(Long expiryTime) { this.expiryTime = expiryTime; - this._expiryTimeSet = true; return this; } - public long expiryTime() { + public Long expiryTime() { return this.expiryTime; } - public Builder messagesUsed(int messagesUsed) { + public Builder messagesUsed(Integer messagesUsed) { this.messagesUsed = messagesUsed; - this._messagesUsedSet = true; return this; } - public int messagesUsed() { + public Integer messagesUsed() { return this.messagesUsed; } - public Builder bytesUsed(int bytesUsed) { + public Builder bytesUsed(Integer bytesUsed) { this.bytesUsed = bytesUsed; - this._bytesUsedSet = true; return this; } - public int bytesUsed() { + public Integer bytesUsed() { return this.bytesUsed; } @@ -195,32 +179,32 @@ public PutCacheEntryInput build() { "Missing value for required field `materials`" ); } - if (!this._creationTimeSet) { + if (Objects.isNull(this.creationTime())) { throw new IllegalArgumentException( "Missing value for required field `creationTime`" ); } - if (this._creationTimeSet && this.creationTime() < 0) { + if (Objects.nonNull(this.creationTime()) && this.creationTime() < 0) { throw new IllegalArgumentException( "`creationTime` must be greater than or equal to 0" ); } - if (!this._expiryTimeSet) { + if (Objects.isNull(this.expiryTime())) { throw new IllegalArgumentException( "Missing value for required field `expiryTime`" ); } - if (this._expiryTimeSet && this.expiryTime() < 0) { + if (Objects.nonNull(this.expiryTime()) && this.expiryTime() < 0) { throw new IllegalArgumentException( "`expiryTime` must be greater than or equal to 0" ); } - if (this._messagesUsedSet && this.messagesUsed() < 0) { + if (Objects.nonNull(this.messagesUsed()) && this.messagesUsed() < 0) { throw new IllegalArgumentException( "`messagesUsed` must be greater than or equal to 0" ); } - if (this._bytesUsedSet && this.bytesUsed() < 0) { + if (Objects.nonNull(this.bytesUsed()) && this.bytesUsed() < 0) { throw new IllegalArgumentException( "`bytesUsed` must be greater than or equal to 0" ); diff --git a/AwsCryptographicMaterialProviders/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/materialproviders/model/SingleThreadedCache.java b/AwsCryptographicMaterialProviders/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/materialproviders/model/SingleThreadedCache.java index 12b64bde3..614182944 100644 --- a/AwsCryptographicMaterialProviders/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/materialproviders/model/SingleThreadedCache.java +++ b/AwsCryptographicMaterialProviders/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/materialproviders/model/SingleThreadedCache.java @@ -3,6 +3,8 @@ // Do not modify this file. This file is machine generated, and any changes to it will be overwritten. package software.amazon.cryptography.materialproviders.model; +import java.util.Objects; + /** * A cache that is NOT safe for use in a multi threaded environment. */ @@ -11,12 +13,12 @@ public class SingleThreadedCache { /** * Maximum number of entries cached. */ - private final int entryCapacity; + private final Integer entryCapacity; /** * Number of entries to prune at a time. */ - private final int entryPruningTailSize; + private final Integer entryPruningTailSize; protected SingleThreadedCache(BuilderImpl builder) { this.entryCapacity = builder.entryCapacity(); @@ -26,14 +28,14 @@ protected SingleThreadedCache(BuilderImpl builder) { /** * @return Maximum number of entries cached. */ - public int entryCapacity() { + public Integer entryCapacity() { return this.entryCapacity; } /** * @return Number of entries to prune at a time. */ - public int entryPruningTailSize() { + public Integer entryPruningTailSize() { return this.entryPruningTailSize; } @@ -49,77 +51,72 @@ public interface Builder { /** * @param entryCapacity Maximum number of entries cached. */ - Builder entryCapacity(int entryCapacity); + Builder entryCapacity(Integer entryCapacity); /** * @return Maximum number of entries cached. */ - int entryCapacity(); + Integer entryCapacity(); /** * @param entryPruningTailSize Number of entries to prune at a time. */ - Builder entryPruningTailSize(int entryPruningTailSize); + Builder entryPruningTailSize(Integer entryPruningTailSize); /** * @return Number of entries to prune at a time. */ - int entryPruningTailSize(); + Integer entryPruningTailSize(); SingleThreadedCache build(); } static class BuilderImpl implements Builder { - protected int entryCapacity; - - private boolean _entryCapacitySet = false; - - protected int entryPruningTailSize; + protected Integer entryCapacity; - private boolean _entryPruningTailSizeSet = false; + protected Integer entryPruningTailSize; protected BuilderImpl() {} protected BuilderImpl(SingleThreadedCache model) { this.entryCapacity = model.entryCapacity(); - this._entryCapacitySet = true; this.entryPruningTailSize = model.entryPruningTailSize(); - this._entryPruningTailSizeSet = true; } - public Builder entryCapacity(int entryCapacity) { + public Builder entryCapacity(Integer entryCapacity) { this.entryCapacity = entryCapacity; - this._entryCapacitySet = true; return this; } - public int entryCapacity() { + public Integer entryCapacity() { return this.entryCapacity; } - public Builder entryPruningTailSize(int entryPruningTailSize) { + public Builder entryPruningTailSize(Integer entryPruningTailSize) { this.entryPruningTailSize = entryPruningTailSize; - this._entryPruningTailSizeSet = true; return this; } - public int entryPruningTailSize() { + public Integer entryPruningTailSize() { return this.entryPruningTailSize; } public SingleThreadedCache build() { - if (!this._entryCapacitySet) { + if (Objects.isNull(this.entryCapacity())) { throw new IllegalArgumentException( "Missing value for required field `entryCapacity`" ); } - if (this._entryCapacitySet && this.entryCapacity() < 1) { + if (Objects.nonNull(this.entryCapacity()) && this.entryCapacity() < 1) { throw new IllegalArgumentException( "`entryCapacity` must be greater than or equal to 1" ); } - if (this._entryPruningTailSizeSet && this.entryPruningTailSize() < 1) { + if ( + Objects.nonNull(this.entryPruningTailSize()) && + this.entryPruningTailSize() < 1 + ) { throw new IllegalArgumentException( "`entryPruningTailSize` must be greater than or equal to 1" ); diff --git a/AwsCryptographicMaterialProviders/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/materialproviders/model/StormTrackingCache.java b/AwsCryptographicMaterialProviders/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/materialproviders/model/StormTrackingCache.java index 8f3835b43..f2227c785 100644 --- a/AwsCryptographicMaterialProviders/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/materialproviders/model/StormTrackingCache.java +++ b/AwsCryptographicMaterialProviders/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/materialproviders/model/StormTrackingCache.java @@ -3,6 +3,8 @@ // Do not modify this file. This file is machine generated, and any changes to it will be overwritten. package software.amazon.cryptography.materialproviders.model; +import java.util.Objects; + /** * A cache that is safe for use in a multi threaded environment, * and tries to prevent redundant or overly parallel backend calls. @@ -12,38 +14,38 @@ public class StormTrackingCache { /** * Maximum number of entries cached. */ - private final int entryCapacity; + private final Integer entryCapacity; /** * Number of entries to prune at a time. */ - private final int entryPruningTailSize; + private final Integer entryPruningTailSize; /** * How much time before expiration should an attempt be made to refresh the materials. * If zero, use a simple cache with no storm tracking. */ - private final int gracePeriod; + private final Integer gracePeriod; /** * How much time between attempts to refresh the materials. */ - private final int graceInterval; + private final Integer graceInterval; /** * How many simultaneous attempts to refresh the materials. */ - private final int fanOut; + private final Integer fanOut; /** * How much time until an attempt to refresh the materials should be forgotten. */ - private final int inFlightTTL; + private final Integer inFlightTTL; /** * How many milliseconds should a thread sleep if fanOut is exceeded. */ - private final int sleepMilli; + private final Integer sleepMilli; /** * The time unit for gracePeriod, graceInterval, and inFlightTTL. @@ -66,14 +68,14 @@ protected StormTrackingCache(BuilderImpl builder) { /** * @return Maximum number of entries cached. */ - public int entryCapacity() { + public Integer entryCapacity() { return this.entryCapacity; } /** * @return Number of entries to prune at a time. */ - public int entryPruningTailSize() { + public Integer entryPruningTailSize() { return this.entryPruningTailSize; } @@ -81,35 +83,35 @@ public int entryPruningTailSize() { * @return How much time before expiration should an attempt be made to refresh the materials. * If zero, use a simple cache with no storm tracking. */ - public int gracePeriod() { + public Integer gracePeriod() { return this.gracePeriod; } /** * @return How much time between attempts to refresh the materials. */ - public int graceInterval() { + public Integer graceInterval() { return this.graceInterval; } /** * @return How many simultaneous attempts to refresh the materials. */ - public int fanOut() { + public Integer fanOut() { return this.fanOut; } /** * @return How much time until an attempt to refresh the materials should be forgotten. */ - public int inFlightTTL() { + public Integer inFlightTTL() { return this.inFlightTTL; } /** * @return How many milliseconds should a thread sleep if fanOut is exceeded. */ - public int sleepMilli() { + public Integer sleepMilli() { return this.sleepMilli; } @@ -134,74 +136,74 @@ public interface Builder { /** * @param entryCapacity Maximum number of entries cached. */ - Builder entryCapacity(int entryCapacity); + Builder entryCapacity(Integer entryCapacity); /** * @return Maximum number of entries cached. */ - int entryCapacity(); + Integer entryCapacity(); /** * @param entryPruningTailSize Number of entries to prune at a time. */ - Builder entryPruningTailSize(int entryPruningTailSize); + Builder entryPruningTailSize(Integer entryPruningTailSize); /** * @return Number of entries to prune at a time. */ - int entryPruningTailSize(); + Integer entryPruningTailSize(); /** * @param gracePeriod How much time before expiration should an attempt be made to refresh the materials. * If zero, use a simple cache with no storm tracking. */ - Builder gracePeriod(int gracePeriod); + Builder gracePeriod(Integer gracePeriod); /** * @return How much time before expiration should an attempt be made to refresh the materials. * If zero, use a simple cache with no storm tracking. */ - int gracePeriod(); + Integer gracePeriod(); /** * @param graceInterval How much time between attempts to refresh the materials. */ - Builder graceInterval(int graceInterval); + Builder graceInterval(Integer graceInterval); /** * @return How much time between attempts to refresh the materials. */ - int graceInterval(); + Integer graceInterval(); /** * @param fanOut How many simultaneous attempts to refresh the materials. */ - Builder fanOut(int fanOut); + Builder fanOut(Integer fanOut); /** * @return How many simultaneous attempts to refresh the materials. */ - int fanOut(); + Integer fanOut(); /** * @param inFlightTTL How much time until an attempt to refresh the materials should be forgotten. */ - Builder inFlightTTL(int inFlightTTL); + Builder inFlightTTL(Integer inFlightTTL); /** * @return How much time until an attempt to refresh the materials should be forgotten. */ - int inFlightTTL(); + Integer inFlightTTL(); /** * @param sleepMilli How many milliseconds should a thread sleep if fanOut is exceeded. */ - Builder sleepMilli(int sleepMilli); + Builder sleepMilli(Integer sleepMilli); /** * @return How many milliseconds should a thread sleep if fanOut is exceeded. */ - int sleepMilli(); + Integer sleepMilli(); /** * @param timeUnits The time unit for gracePeriod, graceInterval, and inFlightTTL. @@ -222,33 +224,19 @@ public interface Builder { static class BuilderImpl implements Builder { - protected int entryCapacity; - - private boolean _entryCapacitySet = false; - - protected int entryPruningTailSize; - - private boolean _entryPruningTailSizeSet = false; - - protected int gracePeriod; - - private boolean _gracePeriodSet = false; - - protected int graceInterval; - - private boolean _graceIntervalSet = false; + protected Integer entryCapacity; - protected int fanOut; + protected Integer entryPruningTailSize; - private boolean _fanOutSet = false; + protected Integer gracePeriod; - protected int inFlightTTL; + protected Integer graceInterval; - private boolean _inFlightTTLSet = false; + protected Integer fanOut; - protected int sleepMilli; + protected Integer inFlightTTL; - private boolean _sleepMilliSet = false; + protected Integer sleepMilli; protected TimeUnits timeUnits; @@ -256,89 +244,75 @@ protected BuilderImpl() {} protected BuilderImpl(StormTrackingCache model) { this.entryCapacity = model.entryCapacity(); - this._entryCapacitySet = true; this.entryPruningTailSize = model.entryPruningTailSize(); - this._entryPruningTailSizeSet = true; this.gracePeriod = model.gracePeriod(); - this._gracePeriodSet = true; this.graceInterval = model.graceInterval(); - this._graceIntervalSet = true; this.fanOut = model.fanOut(); - this._fanOutSet = true; this.inFlightTTL = model.inFlightTTL(); - this._inFlightTTLSet = true; this.sleepMilli = model.sleepMilli(); - this._sleepMilliSet = true; this.timeUnits = model.timeUnits(); } - public Builder entryCapacity(int entryCapacity) { + public Builder entryCapacity(Integer entryCapacity) { this.entryCapacity = entryCapacity; - this._entryCapacitySet = true; return this; } - public int entryCapacity() { + public Integer entryCapacity() { return this.entryCapacity; } - public Builder entryPruningTailSize(int entryPruningTailSize) { + public Builder entryPruningTailSize(Integer entryPruningTailSize) { this.entryPruningTailSize = entryPruningTailSize; - this._entryPruningTailSizeSet = true; return this; } - public int entryPruningTailSize() { + public Integer entryPruningTailSize() { return this.entryPruningTailSize; } - public Builder gracePeriod(int gracePeriod) { + public Builder gracePeriod(Integer gracePeriod) { this.gracePeriod = gracePeriod; - this._gracePeriodSet = true; return this; } - public int gracePeriod() { + public Integer gracePeriod() { return this.gracePeriod; } - public Builder graceInterval(int graceInterval) { + public Builder graceInterval(Integer graceInterval) { this.graceInterval = graceInterval; - this._graceIntervalSet = true; return this; } - public int graceInterval() { + public Integer graceInterval() { return this.graceInterval; } - public Builder fanOut(int fanOut) { + public Builder fanOut(Integer fanOut) { this.fanOut = fanOut; - this._fanOutSet = true; return this; } - public int fanOut() { + public Integer fanOut() { return this.fanOut; } - public Builder inFlightTTL(int inFlightTTL) { + public Builder inFlightTTL(Integer inFlightTTL) { this.inFlightTTL = inFlightTTL; - this._inFlightTTLSet = true; return this; } - public int inFlightTTL() { + public Integer inFlightTTL() { return this.inFlightTTL; } - public Builder sleepMilli(int sleepMilli) { + public Builder sleepMilli(Integer sleepMilli) { this.sleepMilli = sleepMilli; - this._sleepMilliSet = true; return this; } - public int sleepMilli() { + public Integer sleepMilli() { return this.sleepMilli; } @@ -352,67 +326,70 @@ public TimeUnits timeUnits() { } public StormTrackingCache build() { - if (!this._entryCapacitySet) { + if (Objects.isNull(this.entryCapacity())) { throw new IllegalArgumentException( "Missing value for required field `entryCapacity`" ); } - if (this._entryCapacitySet && this.entryCapacity() < 1) { + if (Objects.nonNull(this.entryCapacity()) && this.entryCapacity() < 1) { throw new IllegalArgumentException( "`entryCapacity` must be greater than or equal to 1" ); } - if (this._entryPruningTailSizeSet && this.entryPruningTailSize() < 1) { + if ( + Objects.nonNull(this.entryPruningTailSize()) && + this.entryPruningTailSize() < 1 + ) { throw new IllegalArgumentException( "`entryPruningTailSize` must be greater than or equal to 1" ); } - if (!this._gracePeriodSet) { + if (Objects.isNull(this.gracePeriod())) { throw new IllegalArgumentException( "Missing value for required field `gracePeriod`" ); } - if (this._gracePeriodSet && this.gracePeriod() < 1) { + if (Objects.nonNull(this.gracePeriod()) && this.gracePeriod() < 1) { throw new IllegalArgumentException( "`gracePeriod` must be greater than or equal to 1" ); } - if (!this._graceIntervalSet) { + if (Objects.isNull(this.graceInterval())) { throw new IllegalArgumentException( "Missing value for required field `graceInterval`" ); } - if (this._graceIntervalSet && this.graceInterval() < 1) { + if (Objects.nonNull(this.graceInterval()) && this.graceInterval() < 1) { throw new IllegalArgumentException( "`graceInterval` must be greater than or equal to 1" ); } - if (!this._fanOutSet) { + if (Objects.isNull(this.fanOut())) { throw new IllegalArgumentException( "Missing value for required field `fanOut`" ); } - if (this._fanOutSet && this.fanOut() < 1) { + if (Objects.nonNull(this.fanOut()) && this.fanOut() < 1) { throw new IllegalArgumentException( "`fanOut` must be greater than or equal to 1" ); } - if (!this._inFlightTTLSet) { + if (Objects.isNull(this.inFlightTTL())) { throw new IllegalArgumentException( "Missing value for required field `inFlightTTL`" ); } - if (this._inFlightTTLSet && this.inFlightTTL() < 1) { + if (Objects.nonNull(this.inFlightTTL()) && this.inFlightTTL() < 1) { throw new IllegalArgumentException( "`inFlightTTL` must be greater than or equal to 1" ); } - if (!this._sleepMilliSet) { + if (Objects.isNull(this.sleepMilli())) { throw new IllegalArgumentException( "Missing value for required field `sleepMilli`" ); } - if (this._sleepMilliSet && this.sleepMilli() < 1) { + if (Objects.nonNull(this.sleepMilli()) && this.sleepMilli() < 1) { throw new IllegalArgumentException( "`sleepMilli` must be greater than or equal to 1" ); diff --git a/AwsCryptographicMaterialProviders/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/materialproviders/model/UpdateUsageMetadataInput.java b/AwsCryptographicMaterialProviders/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/materialproviders/model/UpdateUsageMetadataInput.java index 4752a7cb8..c87c488b7 100644 --- a/AwsCryptographicMaterialProviders/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/materialproviders/model/UpdateUsageMetadataInput.java +++ b/AwsCryptographicMaterialProviders/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/materialproviders/model/UpdateUsageMetadataInput.java @@ -10,7 +10,7 @@ public class UpdateUsageMetadataInput { private final ByteBuffer identifier; - private final int bytesUsed; + private final Integer bytesUsed; protected UpdateUsageMetadataInput(BuilderImpl builder) { this.identifier = builder.identifier(); @@ -21,7 +21,7 @@ public ByteBuffer identifier() { return this.identifier; } - public int bytesUsed() { + public Integer bytesUsed() { return this.bytesUsed; } @@ -38,9 +38,9 @@ public interface Builder { ByteBuffer identifier(); - Builder bytesUsed(int bytesUsed); + Builder bytesUsed(Integer bytesUsed); - int bytesUsed(); + Integer bytesUsed(); UpdateUsageMetadataInput build(); } @@ -49,16 +49,13 @@ static class BuilderImpl implements Builder { protected ByteBuffer identifier; - protected int bytesUsed; - - private boolean _bytesUsedSet = false; + protected Integer bytesUsed; protected BuilderImpl() {} protected BuilderImpl(UpdateUsageMetadataInput model) { this.identifier = model.identifier(); this.bytesUsed = model.bytesUsed(); - this._bytesUsedSet = true; } public Builder identifier(ByteBuffer identifier) { @@ -70,13 +67,12 @@ public ByteBuffer identifier() { return this.identifier; } - public Builder bytesUsed(int bytesUsed) { + public Builder bytesUsed(Integer bytesUsed) { this.bytesUsed = bytesUsed; - this._bytesUsedSet = true; return this; } - public int bytesUsed() { + public Integer bytesUsed() { return this.bytesUsed; } @@ -86,12 +82,12 @@ public UpdateUsageMetadataInput build() { "Missing value for required field `identifier`" ); } - if (!this._bytesUsedSet) { + if (Objects.isNull(this.bytesUsed())) { throw new IllegalArgumentException( "Missing value for required field `bytesUsed`" ); } - if (this._bytesUsedSet && this.bytesUsed() < 0) { + if (Objects.nonNull(this.bytesUsed()) && this.bytesUsed() < 0) { throw new IllegalArgumentException( "`bytesUsed` must be greater than or equal to 0" ); diff --git a/AwsCryptographicMaterialProviders/runtimes/net/Generated/AwsCryptographicMaterialProviders/TypeConversion.cs b/AwsCryptographicMaterialProviders/runtimes/net/Generated/AwsCryptographicMaterialProviders/TypeConversion.cs index 446365249..2db1698f4 100644 --- a/AwsCryptographicMaterialProviders/runtimes/net/Generated/AwsCryptographicMaterialProviders/TypeConversion.cs +++ b/AwsCryptographicMaterialProviders/runtimes/net/Generated/AwsCryptographicMaterialProviders/TypeConversion.cs @@ -30,12 +30,12 @@ public static AWS.Cryptography.MaterialProviders.AlgorithmSuiteId FromDafny_N3_a software.amazon.cryptography.materialproviders.internaldafny.types.AlgorithmSuiteId concrete = (software.amazon.cryptography.materialproviders.internaldafny.types.AlgorithmSuiteId)value; var converted = new AWS.Cryptography.MaterialProviders.AlgorithmSuiteId(); if (value.is_ESDK) { - converted.ESDK = FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S16_AlgorithmSuiteId__M4_ESDK(concrete.dtor_ESDK); + converted.ESDK = (AWS.Cryptography.MaterialProviders.ESDKAlgorithmSuiteId)(FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S16_AlgorithmSuiteId__M4_ESDK(concrete.dtor_ESDK)); return converted; } if (value.is_DBE) { - converted.DBE = FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S16_AlgorithmSuiteId__M3_DBE(concrete.dtor_DBE); + converted.DBE = (AWS.Cryptography.MaterialProviders.DBEAlgorithmSuiteId)(FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S16_AlgorithmSuiteId__M3_DBE(concrete.dtor_DBE)); return converted; } throw new System.ArgumentException("Invalid AWS.Cryptography.MaterialProviders.AlgorithmSuiteId state"); @@ -88,32 +88,32 @@ public static AWS.Cryptography.MaterialProviders.CacheType FromDafny_N3_aws__N12 software.amazon.cryptography.materialproviders.internaldafny.types.CacheType concrete = (software.amazon.cryptography.materialproviders.internaldafny.types.CacheType)value; var converted = new AWS.Cryptography.MaterialProviders.CacheType(); if (value.is_Default) { - converted.Default = FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S9_CacheType__M7_Default(concrete.dtor_Default); + converted.Default = (AWS.Cryptography.MaterialProviders.DefaultCache)(FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S9_CacheType__M7_Default(concrete.dtor_Default)); return converted; } if (value.is_No) { - converted.No = FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S9_CacheType__M2_No(concrete.dtor_No); + converted.No = (AWS.Cryptography.MaterialProviders.NoCache)(FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S9_CacheType__M2_No(concrete.dtor_No)); return converted; } if (value.is_SingleThreaded) { - converted.SingleThreaded = FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S9_CacheType__M14_SingleThreaded(concrete.dtor_SingleThreaded); + converted.SingleThreaded = (AWS.Cryptography.MaterialProviders.SingleThreadedCache)(FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S9_CacheType__M14_SingleThreaded(concrete.dtor_SingleThreaded)); return converted; } if (value.is_MultiThreaded) { - converted.MultiThreaded = FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S9_CacheType__M13_MultiThreaded(concrete.dtor_MultiThreaded); + converted.MultiThreaded = (AWS.Cryptography.MaterialProviders.MultiThreadedCache)(FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S9_CacheType__M13_MultiThreaded(concrete.dtor_MultiThreaded)); return converted; } if (value.is_StormTracking) { - converted.StormTracking = FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S9_CacheType__M13_StormTracking(concrete.dtor_StormTracking); + converted.StormTracking = (AWS.Cryptography.MaterialProviders.StormTrackingCache)(FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S9_CacheType__M13_StormTracking(concrete.dtor_StormTracking)); return converted; } if (value.is_Shared) { - converted.Shared = FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S9_CacheType__M6_Shared(concrete.dtor_Shared); + converted.Shared = (AWS.Cryptography.MaterialProviders.ICryptographicMaterialsCache)(FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S9_CacheType__M6_Shared(concrete.dtor_Shared)); return converted; } throw new System.ArgumentException("Invalid AWS.Cryptography.MaterialProviders.CacheType state"); @@ -151,12 +151,12 @@ public static AWS.Cryptography.MaterialProviders.CommitmentPolicy FromDafny_N3_a software.amazon.cryptography.materialproviders.internaldafny.types.CommitmentPolicy concrete = (software.amazon.cryptography.materialproviders.internaldafny.types.CommitmentPolicy)value; var converted = new AWS.Cryptography.MaterialProviders.CommitmentPolicy(); if (value.is_ESDK) { - converted.ESDK = FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S16_CommitmentPolicy__M4_ESDK(concrete.dtor_ESDK); + converted.ESDK = (AWS.Cryptography.MaterialProviders.ESDKCommitmentPolicy)(FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S16_CommitmentPolicy__M4_ESDK(concrete.dtor_ESDK)); return converted; } if (value.is_DBE) { - converted.DBE = FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S16_CommitmentPolicy__M3_DBE(concrete.dtor_DBE); + converted.DBE = (AWS.Cryptography.MaterialProviders.DBECommitmentPolicy)(FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S16_CommitmentPolicy__M3_DBE(concrete.dtor_DBE)); return converted; } throw new System.ArgumentException("Invalid AWS.Cryptography.MaterialProviders.CommitmentPolicy state"); @@ -544,17 +544,17 @@ public static AWS.Cryptography.MaterialProviders.DerivationAlgorithm FromDafny_N software.amazon.cryptography.materialproviders.internaldafny.types.DerivationAlgorithm concrete = (software.amazon.cryptography.materialproviders.internaldafny.types.DerivationAlgorithm)value; var converted = new AWS.Cryptography.MaterialProviders.DerivationAlgorithm(); if (value.is_HKDF) { - converted.HKDF = FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S19_DerivationAlgorithm__M4_HKDF(concrete.dtor_HKDF); + converted.HKDF = (AWS.Cryptography.MaterialProviders.HKDF)(FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S19_DerivationAlgorithm__M4_HKDF(concrete.dtor_HKDF)); return converted; } if (value.is_IDENTITY) { - converted.IDENTITY = FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S19_DerivationAlgorithm__M8_IDENTITY(concrete.dtor_IDENTITY); + converted.IDENTITY = (AWS.Cryptography.MaterialProviders.IDENTITY)(FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S19_DerivationAlgorithm__M8_IDENTITY(concrete.dtor_IDENTITY)); return converted; } if (value.is_None) { - converted.None = FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S19_DerivationAlgorithm__M4_None(concrete.dtor_None); + converted.None = (AWS.Cryptography.MaterialProviders.None)(FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S19_DerivationAlgorithm__M4_None(concrete.dtor_None)); return converted; } throw new System.ArgumentException("Invalid AWS.Cryptography.MaterialProviders.DerivationAlgorithm state"); @@ -580,12 +580,12 @@ public static AWS.Cryptography.MaterialProviders.EdkWrappingAlgorithm FromDafny_ software.amazon.cryptography.materialproviders.internaldafny.types.EdkWrappingAlgorithm concrete = (software.amazon.cryptography.materialproviders.internaldafny.types.EdkWrappingAlgorithm)value; var converted = new AWS.Cryptography.MaterialProviders.EdkWrappingAlgorithm(); if (value.is_DIRECT__KEY__WRAPPING) { - converted.DIRECT__KEY__WRAPPING = FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S20_EdkWrappingAlgorithm__M19_DIRECT_KEY_WRAPPING(concrete.dtor_DIRECT__KEY__WRAPPING); + converted.DIRECT__KEY__WRAPPING = (AWS.Cryptography.MaterialProviders.DIRECT_KEY_WRAPPING)(FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S20_EdkWrappingAlgorithm__M19_DIRECT_KEY_WRAPPING(concrete.dtor_DIRECT__KEY__WRAPPING)); return converted; } if (value.is_IntermediateKeyWrapping) { - converted.IntermediateKeyWrapping = FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S20_EdkWrappingAlgorithm__M23_IntermediateKeyWrapping(concrete.dtor_IntermediateKeyWrapping); + converted.IntermediateKeyWrapping = (AWS.Cryptography.MaterialProviders.IntermediateKeyWrapping)(FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S20_EdkWrappingAlgorithm__M23_IntermediateKeyWrapping(concrete.dtor_IntermediateKeyWrapping)); return converted; } throw new System.ArgumentException("Invalid AWS.Cryptography.MaterialProviders.EdkWrappingAlgorithm state"); @@ -607,7 +607,7 @@ public static AWS.Cryptography.MaterialProviders.Encrypt FromDafny_N3_aws__N12_c software.amazon.cryptography.materialproviders.internaldafny.types.Encrypt concrete = (software.amazon.cryptography.materialproviders.internaldafny.types.Encrypt)value; var converted = new AWS.Cryptography.MaterialProviders.Encrypt(); if (value.is_AES__GCM) { - converted.AES__GCM = FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S7_Encrypt__M7_AES_GCM(concrete.dtor_AES__GCM); + converted.AES__GCM = (AWS.Cryptography.Primitives.AES_GCM)(FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S7_Encrypt__M7_AES_GCM(concrete.dtor_AES__GCM)); return converted; } throw new System.ArgumentException("Invalid AWS.Cryptography.MaterialProviders.Encrypt state"); @@ -941,7 +941,7 @@ public static AWS.Cryptography.MaterialProviders.KeyAgreementScheme FromDafny_N3 software.amazon.cryptography.materialproviders.internaldafny.types.KeyAgreementScheme concrete = (software.amazon.cryptography.materialproviders.internaldafny.types.KeyAgreementScheme)value; var converted = new AWS.Cryptography.MaterialProviders.KeyAgreementScheme(); if (value.is_StaticConfiguration) { - converted.StaticConfiguration = FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S18_KeyAgreementScheme__M19_StaticConfiguration(concrete.dtor_StaticConfiguration); + converted.StaticConfiguration = (AWS.Cryptography.MaterialProviders.StaticConfigurations)(FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S18_KeyAgreementScheme__M19_StaticConfiguration(concrete.dtor_StaticConfiguration)); return converted; } throw new System.ArgumentException("Invalid AWS.Cryptography.MaterialProviders.KeyAgreementScheme state"); @@ -959,12 +959,12 @@ public static AWS.Cryptography.MaterialProviders.KmsEcdhStaticConfigurations Fro software.amazon.cryptography.materialproviders.internaldafny.types.KmsEcdhStaticConfigurations concrete = (software.amazon.cryptography.materialproviders.internaldafny.types.KmsEcdhStaticConfigurations)value; var converted = new AWS.Cryptography.MaterialProviders.KmsEcdhStaticConfigurations(); if (value.is_KmsPublicKeyDiscovery) { - converted.KmsPublicKeyDiscovery = FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S27_KmsEcdhStaticConfigurations__M21_KmsPublicKeyDiscovery(concrete.dtor_KmsPublicKeyDiscovery); + converted.KmsPublicKeyDiscovery = (AWS.Cryptography.MaterialProviders.KmsPublicKeyDiscoveryInput)(FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S27_KmsEcdhStaticConfigurations__M21_KmsPublicKeyDiscovery(concrete.dtor_KmsPublicKeyDiscovery)); return converted; } if (value.is_KmsPrivateKeyToStaticPublicKey) { - converted.KmsPrivateKeyToStaticPublicKey = FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S27_KmsEcdhStaticConfigurations__M30_KmsPrivateKeyToStaticPublicKey(concrete.dtor_KmsPrivateKeyToStaticPublicKey); + converted.KmsPrivateKeyToStaticPublicKey = (AWS.Cryptography.MaterialProviders.KmsPrivateKeyToStaticPublicKeyInput)(FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S27_KmsEcdhStaticConfigurations__M30_KmsPrivateKeyToStaticPublicKey(concrete.dtor_KmsPrivateKeyToStaticPublicKey)); return converted; } throw new System.ArgumentException("Invalid AWS.Cryptography.MaterialProviders.KmsEcdhStaticConfigurations state"); @@ -996,22 +996,22 @@ public static AWS.Cryptography.MaterialProviders.Materials FromDafny_N3_aws__N12 software.amazon.cryptography.materialproviders.internaldafny.types.Materials concrete = (software.amazon.cryptography.materialproviders.internaldafny.types.Materials)value; var converted = new AWS.Cryptography.MaterialProviders.Materials(); if (value.is_Encryption) { - converted.Encryption = FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S9_Materials__M10_Encryption(concrete.dtor_Encryption); + converted.Encryption = (AWS.Cryptography.MaterialProviders.EncryptionMaterials)(FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S9_Materials__M10_Encryption(concrete.dtor_Encryption)); return converted; } if (value.is_Decryption) { - converted.Decryption = FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S9_Materials__M10_Decryption(concrete.dtor_Decryption); + converted.Decryption = (AWS.Cryptography.MaterialProviders.DecryptionMaterials)(FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S9_Materials__M10_Decryption(concrete.dtor_Decryption)); return converted; } if (value.is_BranchKey) { - converted.BranchKey = FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S9_Materials__M9_BranchKey(concrete.dtor_BranchKey); + converted.BranchKey = (AWS.Cryptography.KeyStore.BranchKeyMaterials)(FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S9_Materials__M9_BranchKey(concrete.dtor_BranchKey)); return converted; } if (value.is_BeaconKey) { - converted.BeaconKey = FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S9_Materials__M9_BeaconKey(concrete.dtor_BeaconKey); + converted.BeaconKey = (AWS.Cryptography.KeyStore.BeaconKeyMaterials)(FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S9_Materials__M9_BeaconKey(concrete.dtor_BeaconKey)); return converted; } throw new System.ArgumentException("Invalid AWS.Cryptography.MaterialProviders.Materials state"); @@ -1116,17 +1116,17 @@ public static AWS.Cryptography.MaterialProviders.RawEcdhStaticConfigurations Fro software.amazon.cryptography.materialproviders.internaldafny.types.RawEcdhStaticConfigurations concrete = (software.amazon.cryptography.materialproviders.internaldafny.types.RawEcdhStaticConfigurations)value; var converted = new AWS.Cryptography.MaterialProviders.RawEcdhStaticConfigurations(); if (value.is_PublicKeyDiscovery) { - converted.PublicKeyDiscovery = FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S27_RawEcdhStaticConfigurations__M18_PublicKeyDiscovery(concrete.dtor_PublicKeyDiscovery); + converted.PublicKeyDiscovery = (AWS.Cryptography.MaterialProviders.PublicKeyDiscoveryInput)(FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S27_RawEcdhStaticConfigurations__M18_PublicKeyDiscovery(concrete.dtor_PublicKeyDiscovery)); return converted; } if (value.is_RawPrivateKeyToStaticPublicKey) { - converted.RawPrivateKeyToStaticPublicKey = FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S27_RawEcdhStaticConfigurations__M30_RawPrivateKeyToStaticPublicKey(concrete.dtor_RawPrivateKeyToStaticPublicKey); + converted.RawPrivateKeyToStaticPublicKey = (AWS.Cryptography.MaterialProviders.RawPrivateKeyToStaticPublicKeyInput)(FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S27_RawEcdhStaticConfigurations__M30_RawPrivateKeyToStaticPublicKey(concrete.dtor_RawPrivateKeyToStaticPublicKey)); return converted; } if (value.is_EphemeralPrivateKeyToStaticPublicKey) { - converted.EphemeralPrivateKeyToStaticPublicKey = FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S27_RawEcdhStaticConfigurations__M36_EphemeralPrivateKeyToStaticPublicKey(concrete.dtor_EphemeralPrivateKeyToStaticPublicKey); + converted.EphemeralPrivateKeyToStaticPublicKey = (AWS.Cryptography.MaterialProviders.EphemeralPrivateKeyToStaticPublicKeyInput)(FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S27_RawEcdhStaticConfigurations__M36_EphemeralPrivateKeyToStaticPublicKey(concrete.dtor_EphemeralPrivateKeyToStaticPublicKey)); return converted; } throw new System.ArgumentException("Invalid AWS.Cryptography.MaterialProviders.RawEcdhStaticConfigurations state"); @@ -1152,12 +1152,12 @@ public static AWS.Cryptography.MaterialProviders.SignatureAlgorithm FromDafny_N3 software.amazon.cryptography.materialproviders.internaldafny.types.SignatureAlgorithm concrete = (software.amazon.cryptography.materialproviders.internaldafny.types.SignatureAlgorithm)value; var converted = new AWS.Cryptography.MaterialProviders.SignatureAlgorithm(); if (value.is_ECDSA) { - converted.ECDSA = FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S18_SignatureAlgorithm__M5_ECDSA(concrete.dtor_ECDSA); + converted.ECDSA = (AWS.Cryptography.MaterialProviders.ECDSA)(FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S18_SignatureAlgorithm__M5_ECDSA(concrete.dtor_ECDSA)); return converted; } if (value.is_None) { - converted.None = FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S18_SignatureAlgorithm__M4_None(concrete.dtor_None); + converted.None = (AWS.Cryptography.MaterialProviders.None)(FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S18_SignatureAlgorithm__M4_None(concrete.dtor_None)); return converted; } throw new System.ArgumentException("Invalid AWS.Cryptography.MaterialProviders.SignatureAlgorithm state"); @@ -1179,12 +1179,12 @@ public static AWS.Cryptography.MaterialProviders.StaticConfigurations FromDafny_ software.amazon.cryptography.materialproviders.internaldafny.types.StaticConfigurations concrete = (software.amazon.cryptography.materialproviders.internaldafny.types.StaticConfigurations)value; var converted = new AWS.Cryptography.MaterialProviders.StaticConfigurations(); if (value.is_AWS__KMS__ECDH) { - converted.AWS__KMS__ECDH = FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S20_StaticConfigurations__M12_AWS_KMS_ECDH(concrete.dtor_AWS__KMS__ECDH); + converted.AWS__KMS__ECDH = (AWS.Cryptography.MaterialProviders.KmsEcdhStaticConfigurations)(FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S20_StaticConfigurations__M12_AWS_KMS_ECDH(concrete.dtor_AWS__KMS__ECDH)); return converted; } if (value.is_RAW__ECDH) { - converted.RAW__ECDH = FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S20_StaticConfigurations__M8_RAW_ECDH(concrete.dtor_RAW__ECDH); + converted.RAW__ECDH = (AWS.Cryptography.MaterialProviders.RawEcdhStaticConfigurations)(FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S20_StaticConfigurations__M8_RAW_ECDH(concrete.dtor_RAW__ECDH)); return converted; } throw new System.ArgumentException("Invalid AWS.Cryptography.MaterialProviders.StaticConfigurations state"); @@ -1206,12 +1206,12 @@ public static AWS.Cryptography.MaterialProviders.SymmetricSignatureAlgorithm Fro software.amazon.cryptography.materialproviders.internaldafny.types.SymmetricSignatureAlgorithm concrete = (software.amazon.cryptography.materialproviders.internaldafny.types.SymmetricSignatureAlgorithm)value; var converted = new AWS.Cryptography.MaterialProviders.SymmetricSignatureAlgorithm(); if (value.is_HMAC) { - converted.HMAC = FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S27_SymmetricSignatureAlgorithm__M4_HMAC(concrete.dtor_HMAC); + converted.HMAC = (AWS.Cryptography.Primitives.DigestAlgorithm)(FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S27_SymmetricSignatureAlgorithm__M4_HMAC(concrete.dtor_HMAC)); return converted; } if (value.is_None) { - converted.None = FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S27_SymmetricSignatureAlgorithm__M4_None(concrete.dtor_None); + converted.None = (AWS.Cryptography.MaterialProviders.None)(FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S27_SymmetricSignatureAlgorithm__M4_None(concrete.dtor_None)); return converted; } throw new System.ArgumentException("Invalid AWS.Cryptography.MaterialProviders.SymmetricSignatureAlgorithm state"); @@ -1301,7 +1301,7 @@ public static AWS.Cryptography.MaterialProviders.ESDKAlgorithmSuiteId FromDafny_ } public static software.amazon.cryptography.materialproviders.internaldafny.types._IESDKAlgorithmSuiteId ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S16_AlgorithmSuiteId__M4_ESDK(AWS.Cryptography.MaterialProviders.ESDKAlgorithmSuiteId value) { - return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S20_ESDKAlgorithmSuiteId(value); + return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S20_ESDKAlgorithmSuiteId((AWS.Cryptography.MaterialProviders.ESDKAlgorithmSuiteId)value); } public static AWS.Cryptography.MaterialProviders.DBEAlgorithmSuiteId FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S16_AlgorithmSuiteId__M3_DBE(software.amazon.cryptography.materialproviders.internaldafny.types._IDBEAlgorithmSuiteId value) { @@ -1309,7 +1309,7 @@ public static AWS.Cryptography.MaterialProviders.DBEAlgorithmSuiteId FromDafny_N } public static software.amazon.cryptography.materialproviders.internaldafny.types._IDBEAlgorithmSuiteId ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S16_AlgorithmSuiteId__M3_DBE(AWS.Cryptography.MaterialProviders.DBEAlgorithmSuiteId value) { - return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S19_DBEAlgorithmSuiteId(value); + return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S19_DBEAlgorithmSuiteId((AWS.Cryptography.MaterialProviders.DBEAlgorithmSuiteId)value); } public static AWS.Cryptography.MaterialProviders.AlgorithmSuiteId FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S18_AlgorithmSuiteInfo__M2_id(software.amazon.cryptography.materialproviders.internaldafny.types._IAlgorithmSuiteId value) { @@ -1317,7 +1317,7 @@ public static AWS.Cryptography.MaterialProviders.AlgorithmSuiteId FromDafny_N3_a } public static software.amazon.cryptography.materialproviders.internaldafny.types._IAlgorithmSuiteId ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S18_AlgorithmSuiteInfo__M2_id(AWS.Cryptography.MaterialProviders.AlgorithmSuiteId value) { - return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S16_AlgorithmSuiteId(value); + return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S16_AlgorithmSuiteId((AWS.Cryptography.MaterialProviders.AlgorithmSuiteId)value); } public static System.IO.MemoryStream FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S18_AlgorithmSuiteInfo__M8_binaryId(Dafny.ISequence value) { @@ -1325,15 +1325,15 @@ public static System.IO.MemoryStream FromDafny_N3_aws__N12_cryptography__N17_mat } public static Dafny.ISequence ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S18_AlgorithmSuiteInfo__M8_binaryId(System.IO.MemoryStream value) { - return ToDafny_N6_smithy__N3_api__S4_Blob(value); + return ToDafny_N6_smithy__N3_api__S4_Blob((System.IO.MemoryStream)value); } - public static int FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S18_AlgorithmSuiteInfo__M14_messageVersion(int value) + public static int? FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S18_AlgorithmSuiteInfo__M14_messageVersion(int value) { return FromDafny_N6_smithy__N3_api__S7_Integer(value); } - public static int ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S18_AlgorithmSuiteInfo__M14_messageVersion(int value) + public static int ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S18_AlgorithmSuiteInfo__M14_messageVersion(int? value) { - return ToDafny_N6_smithy__N3_api__S7_Integer(value); + return ToDafny_N6_smithy__N3_api__S7_Integer((int)value); } public static AWS.Cryptography.MaterialProviders.Encrypt FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S18_AlgorithmSuiteInfo__M7_encrypt(software.amazon.cryptography.materialproviders.internaldafny.types._IEncrypt value) { @@ -1341,7 +1341,7 @@ public static AWS.Cryptography.MaterialProviders.Encrypt FromDafny_N3_aws__N12_c } public static software.amazon.cryptography.materialproviders.internaldafny.types._IEncrypt ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S18_AlgorithmSuiteInfo__M7_encrypt(AWS.Cryptography.MaterialProviders.Encrypt value) { - return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S7_Encrypt(value); + return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S7_Encrypt((AWS.Cryptography.MaterialProviders.Encrypt)value); } public static AWS.Cryptography.MaterialProviders.DerivationAlgorithm FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S18_AlgorithmSuiteInfo__M3_kdf(software.amazon.cryptography.materialproviders.internaldafny.types._IDerivationAlgorithm value) { @@ -1349,7 +1349,7 @@ public static AWS.Cryptography.MaterialProviders.DerivationAlgorithm FromDafny_N } public static software.amazon.cryptography.materialproviders.internaldafny.types._IDerivationAlgorithm ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S18_AlgorithmSuiteInfo__M3_kdf(AWS.Cryptography.MaterialProviders.DerivationAlgorithm value) { - return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S19_DerivationAlgorithm(value); + return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S19_DerivationAlgorithm((AWS.Cryptography.MaterialProviders.DerivationAlgorithm)value); } public static AWS.Cryptography.MaterialProviders.DerivationAlgorithm FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S18_AlgorithmSuiteInfo__M10_commitment(software.amazon.cryptography.materialproviders.internaldafny.types._IDerivationAlgorithm value) { @@ -1357,7 +1357,7 @@ public static AWS.Cryptography.MaterialProviders.DerivationAlgorithm FromDafny_N } public static software.amazon.cryptography.materialproviders.internaldafny.types._IDerivationAlgorithm ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S18_AlgorithmSuiteInfo__M10_commitment(AWS.Cryptography.MaterialProviders.DerivationAlgorithm value) { - return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S19_DerivationAlgorithm(value); + return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S19_DerivationAlgorithm((AWS.Cryptography.MaterialProviders.DerivationAlgorithm)value); } public static AWS.Cryptography.MaterialProviders.SignatureAlgorithm FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S18_AlgorithmSuiteInfo__M9_signature(software.amazon.cryptography.materialproviders.internaldafny.types._ISignatureAlgorithm value) { @@ -1365,7 +1365,7 @@ public static AWS.Cryptography.MaterialProviders.SignatureAlgorithm FromDafny_N3 } public static software.amazon.cryptography.materialproviders.internaldafny.types._ISignatureAlgorithm ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S18_AlgorithmSuiteInfo__M9_signature(AWS.Cryptography.MaterialProviders.SignatureAlgorithm value) { - return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S18_SignatureAlgorithm(value); + return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S18_SignatureAlgorithm((AWS.Cryptography.MaterialProviders.SignatureAlgorithm)value); } public static AWS.Cryptography.MaterialProviders.SymmetricSignatureAlgorithm FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S18_AlgorithmSuiteInfo__M18_symmetricSignature(software.amazon.cryptography.materialproviders.internaldafny.types._ISymmetricSignatureAlgorithm value) { @@ -1373,7 +1373,7 @@ public static AWS.Cryptography.MaterialProviders.SymmetricSignatureAlgorithm Fro } public static software.amazon.cryptography.materialproviders.internaldafny.types._ISymmetricSignatureAlgorithm ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S18_AlgorithmSuiteInfo__M18_symmetricSignature(AWS.Cryptography.MaterialProviders.SymmetricSignatureAlgorithm value) { - return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S27_SymmetricSignatureAlgorithm(value); + return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S27_SymmetricSignatureAlgorithm((AWS.Cryptography.MaterialProviders.SymmetricSignatureAlgorithm)value); } public static AWS.Cryptography.MaterialProviders.EdkWrappingAlgorithm FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S18_AlgorithmSuiteInfo__M11_edkWrapping(software.amazon.cryptography.materialproviders.internaldafny.types._IEdkWrappingAlgorithm value) { @@ -1381,7 +1381,7 @@ public static AWS.Cryptography.MaterialProviders.EdkWrappingAlgorithm FromDafny_ } public static software.amazon.cryptography.materialproviders.internaldafny.types._IEdkWrappingAlgorithm ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S18_AlgorithmSuiteInfo__M11_edkWrapping(AWS.Cryptography.MaterialProviders.EdkWrappingAlgorithm value) { - return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S20_EdkWrappingAlgorithm(value); + return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S20_EdkWrappingAlgorithm((AWS.Cryptography.MaterialProviders.EdkWrappingAlgorithm)value); } public static string FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S42_AwsCryptographicMaterialProvidersException__M7_message(Dafny.ISequence value) { @@ -1389,7 +1389,7 @@ public static string FromDafny_N3_aws__N12_cryptography__N17_materialProviders__ } public static Dafny.ISequence ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S42_AwsCryptographicMaterialProvidersException__M7_message(string value) { - return ToDafny_N6_smithy__N3_api__S6_String(value); + return ToDafny_N6_smithy__N3_api__S6_String((string)value); } public static AWS.Cryptography.MaterialProviders.DefaultCache FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S9_CacheType__M7_Default(software.amazon.cryptography.materialproviders.internaldafny.types._IDefaultCache value) { @@ -1397,7 +1397,7 @@ public static AWS.Cryptography.MaterialProviders.DefaultCache FromDafny_N3_aws__ } public static software.amazon.cryptography.materialproviders.internaldafny.types._IDefaultCache ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S9_CacheType__M7_Default(AWS.Cryptography.MaterialProviders.DefaultCache value) { - return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S12_DefaultCache(value); + return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S12_DefaultCache((AWS.Cryptography.MaterialProviders.DefaultCache)value); } public static AWS.Cryptography.MaterialProviders.NoCache FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S9_CacheType__M2_No(software.amazon.cryptography.materialproviders.internaldafny.types._INoCache value) { @@ -1405,7 +1405,7 @@ public static AWS.Cryptography.MaterialProviders.NoCache FromDafny_N3_aws__N12_c } public static software.amazon.cryptography.materialproviders.internaldafny.types._INoCache ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S9_CacheType__M2_No(AWS.Cryptography.MaterialProviders.NoCache value) { - return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S7_NoCache(value); + return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S7_NoCache((AWS.Cryptography.MaterialProviders.NoCache)value); } public static AWS.Cryptography.MaterialProviders.SingleThreadedCache FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S9_CacheType__M14_SingleThreaded(software.amazon.cryptography.materialproviders.internaldafny.types._ISingleThreadedCache value) { @@ -1413,7 +1413,7 @@ public static AWS.Cryptography.MaterialProviders.SingleThreadedCache FromDafny_N } public static software.amazon.cryptography.materialproviders.internaldafny.types._ISingleThreadedCache ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S9_CacheType__M14_SingleThreaded(AWS.Cryptography.MaterialProviders.SingleThreadedCache value) { - return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S19_SingleThreadedCache(value); + return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S19_SingleThreadedCache((AWS.Cryptography.MaterialProviders.SingleThreadedCache)value); } public static AWS.Cryptography.MaterialProviders.MultiThreadedCache FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S9_CacheType__M13_MultiThreaded(software.amazon.cryptography.materialproviders.internaldafny.types._IMultiThreadedCache value) { @@ -1421,7 +1421,7 @@ public static AWS.Cryptography.MaterialProviders.MultiThreadedCache FromDafny_N3 } public static software.amazon.cryptography.materialproviders.internaldafny.types._IMultiThreadedCache ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S9_CacheType__M13_MultiThreaded(AWS.Cryptography.MaterialProviders.MultiThreadedCache value) { - return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S18_MultiThreadedCache(value); + return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S18_MultiThreadedCache((AWS.Cryptography.MaterialProviders.MultiThreadedCache)value); } public static AWS.Cryptography.MaterialProviders.StormTrackingCache FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S9_CacheType__M13_StormTracking(software.amazon.cryptography.materialproviders.internaldafny.types._IStormTrackingCache value) { @@ -1429,7 +1429,7 @@ public static AWS.Cryptography.MaterialProviders.StormTrackingCache FromDafny_N3 } public static software.amazon.cryptography.materialproviders.internaldafny.types._IStormTrackingCache ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S9_CacheType__M13_StormTracking(AWS.Cryptography.MaterialProviders.StormTrackingCache value) { - return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S18_StormTrackingCache(value); + return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S18_StormTrackingCache((AWS.Cryptography.MaterialProviders.StormTrackingCache)value); } public static AWS.Cryptography.MaterialProviders.ICryptographicMaterialsCache FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S9_CacheType__M6_Shared(software.amazon.cryptography.materialproviders.internaldafny.types.ICryptographicMaterialsCache value) { @@ -1437,7 +1437,7 @@ public static AWS.Cryptography.MaterialProviders.ICryptographicMaterialsCache Fr } public static software.amazon.cryptography.materialproviders.internaldafny.types.ICryptographicMaterialsCache ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S9_CacheType__M6_Shared(AWS.Cryptography.MaterialProviders.ICryptographicMaterialsCache value) { - return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S36_CryptographicMaterialsCacheReference(value); + return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S36_CryptographicMaterialsCacheReference((AWS.Cryptography.MaterialProviders.ICryptographicMaterialsCache)value); } public static AWS.Cryptography.MaterialProviders.ESDKCommitmentPolicy FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S16_CommitmentPolicy__M4_ESDK(software.amazon.cryptography.materialproviders.internaldafny.types._IESDKCommitmentPolicy value) { @@ -1445,7 +1445,7 @@ public static AWS.Cryptography.MaterialProviders.ESDKCommitmentPolicy FromDafny_ } public static software.amazon.cryptography.materialproviders.internaldafny.types._IESDKCommitmentPolicy ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S16_CommitmentPolicy__M4_ESDK(AWS.Cryptography.MaterialProviders.ESDKCommitmentPolicy value) { - return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S20_ESDKCommitmentPolicy(value); + return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S20_ESDKCommitmentPolicy((AWS.Cryptography.MaterialProviders.ESDKCommitmentPolicy)value); } public static AWS.Cryptography.MaterialProviders.DBECommitmentPolicy FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S16_CommitmentPolicy__M3_DBE(software.amazon.cryptography.materialproviders.internaldafny.types._IDBECommitmentPolicy value) { @@ -1453,7 +1453,7 @@ public static AWS.Cryptography.MaterialProviders.DBECommitmentPolicy FromDafny_N } public static software.amazon.cryptography.materialproviders.internaldafny.types._IDBECommitmentPolicy ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S16_CommitmentPolicy__M3_DBE(AWS.Cryptography.MaterialProviders.DBECommitmentPolicy value) { - return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S19_DBECommitmentPolicy(value); + return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S19_DBECommitmentPolicy((AWS.Cryptography.MaterialProviders.DBECommitmentPolicy)value); } public static Amazon.KeyManagementService.IAmazonKeyManagementService FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S33_CreateAwsKmsDiscoveryKeyringInput__M9_kmsClient(software.amazon.cryptography.services.kms.internaldafny.types.IKMSClient value) { @@ -1461,7 +1461,7 @@ public static Amazon.KeyManagementService.IAmazonKeyManagementService FromDafny_ } public static software.amazon.cryptography.services.kms.internaldafny.types.IKMSClient ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S33_CreateAwsKmsDiscoveryKeyringInput__M9_kmsClient(Amazon.KeyManagementService.IAmazonKeyManagementService value) { - return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S18_KmsClientReference(value); + return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S18_KmsClientReference((Amazon.KeyManagementService.IAmazonKeyManagementService)value); } public static AWS.Cryptography.MaterialProviders.DiscoveryFilter FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S33_CreateAwsKmsDiscoveryKeyringInput__M15_discoveryFilter(Wrappers_Compile._IOption value) { @@ -1485,7 +1485,7 @@ public static System.Collections.Generic.List FromDafny_N3_aws__N12_cryp } public static Dafny.ISequence> ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S38_CreateAwsKmsDiscoveryMultiKeyringInput__M7_regions(System.Collections.Generic.List value) { - return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S10_RegionList(value); + return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S10_RegionList((System.Collections.Generic.List)value); } public static AWS.Cryptography.MaterialProviders.DiscoveryFilter FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S38_CreateAwsKmsDiscoveryMultiKeyringInput__M15_discoveryFilter(Wrappers_Compile._IOption value) { @@ -1517,7 +1517,7 @@ public static AWS.Cryptography.MaterialProviders.KmsEcdhStaticConfigurations Fro } public static software.amazon.cryptography.materialproviders.internaldafny.types._IKmsEcdhStaticConfigurations ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S28_CreateAwsKmsEcdhKeyringInput__M18_KeyAgreementScheme(AWS.Cryptography.MaterialProviders.KmsEcdhStaticConfigurations value) { - return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S27_KmsEcdhStaticConfigurations(value); + return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S27_KmsEcdhStaticConfigurations((AWS.Cryptography.MaterialProviders.KmsEcdhStaticConfigurations)value); } public static AWS.Cryptography.Primitives.ECDHCurveSpec FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S28_CreateAwsKmsEcdhKeyringInput__M9_curveSpec(software.amazon.cryptography.primitives.internaldafny.types._IECDHCurveSpec value) { @@ -1525,7 +1525,7 @@ public static AWS.Cryptography.Primitives.ECDHCurveSpec FromDafny_N3_aws__N12_cr } public static software.amazon.cryptography.primitives.internaldafny.types._IECDHCurveSpec ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S28_CreateAwsKmsEcdhKeyringInput__M9_curveSpec(AWS.Cryptography.Primitives.ECDHCurveSpec value) { - return ToDafny_N3_aws__N12_cryptography__N10_primitives__S13_ECDHCurveSpec(value); + return ToDafny_N3_aws__N12_cryptography__N10_primitives__S13_ECDHCurveSpec((AWS.Cryptography.Primitives.ECDHCurveSpec)value); } public static Amazon.KeyManagementService.IAmazonKeyManagementService FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S28_CreateAwsKmsEcdhKeyringInput__M9_kmsClient(software.amazon.cryptography.services.kms.internaldafny.types.IKMSClient value) { @@ -1533,7 +1533,7 @@ public static Amazon.KeyManagementService.IAmazonKeyManagementService FromDafny_ } public static software.amazon.cryptography.services.kms.internaldafny.types.IKMSClient ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S28_CreateAwsKmsEcdhKeyringInput__M9_kmsClient(Amazon.KeyManagementService.IAmazonKeyManagementService value) { - return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S18_KmsClientReference(value); + return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S18_KmsClientReference((Amazon.KeyManagementService.IAmazonKeyManagementService)value); } public static System.Collections.Generic.List FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S28_CreateAwsKmsEcdhKeyringInput__M11_grantTokens(Wrappers_Compile._IOption>> value) { @@ -1565,15 +1565,15 @@ public static AWS.Cryptography.KeyStore.KeyStore FromDafny_N3_aws__N12_cryptogra } public static software.amazon.cryptography.keystore.internaldafny.types.IKeyStoreClient ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S36_CreateAwsKmsHierarchicalKeyringInput__M8_keyStore(AWS.Cryptography.KeyStore.KeyStore value) { - return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S17_KeyStoreReference(value); + return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S17_KeyStoreReference((AWS.Cryptography.KeyStore.KeyStore)value); } - public static long FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S36_CreateAwsKmsHierarchicalKeyringInput__M10_ttlSeconds(long value) + public static long? FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S36_CreateAwsKmsHierarchicalKeyringInput__M10_ttlSeconds(long value) { return FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S12_PositiveLong(value); } - public static long ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S36_CreateAwsKmsHierarchicalKeyringInput__M10_ttlSeconds(long value) + public static long ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S36_CreateAwsKmsHierarchicalKeyringInput__M10_ttlSeconds(long? value) { - return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S12_PositiveLong(value); + return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S12_PositiveLong((long)value); } public static AWS.Cryptography.MaterialProviders.CacheType FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S36_CreateAwsKmsHierarchicalKeyringInput__M5_cache(Wrappers_Compile._IOption value) { @@ -1597,7 +1597,7 @@ public static string FromDafny_N3_aws__N12_cryptography__N17_materialProviders__ } public static Dafny.ISequence ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S24_CreateAwsKmsKeyringInput__M8_kmsKeyId(string value) { - return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S8_KmsKeyId(value); + return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S8_KmsKeyId((string)value); } public static Amazon.KeyManagementService.IAmazonKeyManagementService FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S24_CreateAwsKmsKeyringInput__M9_kmsClient(software.amazon.cryptography.services.kms.internaldafny.types.IKMSClient value) { @@ -1605,7 +1605,7 @@ public static Amazon.KeyManagementService.IAmazonKeyManagementService FromDafny_ } public static software.amazon.cryptography.services.kms.internaldafny.types.IKMSClient ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S24_CreateAwsKmsKeyringInput__M9_kmsClient(Amazon.KeyManagementService.IAmazonKeyManagementService value) { - return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S18_KmsClientReference(value); + return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S18_KmsClientReference((Amazon.KeyManagementService.IAmazonKeyManagementService)value); } public static System.Collections.Generic.List FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S24_CreateAwsKmsKeyringInput__M11_grantTokens(Wrappers_Compile._IOption>> value) { @@ -1621,7 +1621,7 @@ public static Amazon.KeyManagementService.IAmazonKeyManagementService FromDafny_ } public static software.amazon.cryptography.services.kms.internaldafny.types.IKMSClient ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S36_CreateAwsKmsMrkDiscoveryKeyringInput__M9_kmsClient(Amazon.KeyManagementService.IAmazonKeyManagementService value) { - return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S18_KmsClientReference(value); + return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S18_KmsClientReference((Amazon.KeyManagementService.IAmazonKeyManagementService)value); } public static AWS.Cryptography.MaterialProviders.DiscoveryFilter FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S36_CreateAwsKmsMrkDiscoveryKeyringInput__M15_discoveryFilter(Wrappers_Compile._IOption value) { @@ -1645,7 +1645,7 @@ public static string FromDafny_N3_aws__N12_cryptography__N17_materialProviders__ } public static Dafny.ISequence ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S36_CreateAwsKmsMrkDiscoveryKeyringInput__M6_region(string value) { - return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S6_Region(value); + return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S6_Region((string)value); } public static System.Collections.Generic.List FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S41_CreateAwsKmsMrkDiscoveryMultiKeyringInput__M7_regions(Dafny.ISequence> value) { @@ -1653,7 +1653,7 @@ public static System.Collections.Generic.List FromDafny_N3_aws__N12_cryp } public static Dafny.ISequence> ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S41_CreateAwsKmsMrkDiscoveryMultiKeyringInput__M7_regions(System.Collections.Generic.List value) { - return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S10_RegionList(value); + return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S10_RegionList((System.Collections.Generic.List)value); } public static AWS.Cryptography.MaterialProviders.DiscoveryFilter FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S41_CreateAwsKmsMrkDiscoveryMultiKeyringInput__M15_discoveryFilter(Wrappers_Compile._IOption value) { @@ -1685,7 +1685,7 @@ public static string FromDafny_N3_aws__N12_cryptography__N17_materialProviders__ } public static Dafny.ISequence ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S27_CreateAwsKmsMrkKeyringInput__M8_kmsKeyId(string value) { - return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S8_KmsKeyId(value); + return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S8_KmsKeyId((string)value); } public static Amazon.KeyManagementService.IAmazonKeyManagementService FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S27_CreateAwsKmsMrkKeyringInput__M9_kmsClient(software.amazon.cryptography.services.kms.internaldafny.types.IKMSClient value) { @@ -1693,7 +1693,7 @@ public static Amazon.KeyManagementService.IAmazonKeyManagementService FromDafny_ } public static software.amazon.cryptography.services.kms.internaldafny.types.IKMSClient ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S27_CreateAwsKmsMrkKeyringInput__M9_kmsClient(Amazon.KeyManagementService.IAmazonKeyManagementService value) { - return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S18_KmsClientReference(value); + return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S18_KmsClientReference((Amazon.KeyManagementService.IAmazonKeyManagementService)value); } public static System.Collections.Generic.List FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S27_CreateAwsKmsMrkKeyringInput__M11_grantTokens(Wrappers_Compile._IOption>> value) { @@ -1781,7 +1781,7 @@ public static string FromDafny_N3_aws__N12_cryptography__N17_materialProviders__ } public static Dafny.ISequence ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S27_CreateAwsKmsRsaKeyringInput__M8_kmsKeyId(string value) { - return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S8_KmsKeyId(value); + return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S8_KmsKeyId((string)value); } public static Amazon.KeyManagementService.EncryptionAlgorithmSpec FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S27_CreateAwsKmsRsaKeyringInput__M19_encryptionAlgorithm(software.amazon.cryptography.services.kms.internaldafny.types._IEncryptionAlgorithmSpec value) { @@ -1789,7 +1789,7 @@ public static Amazon.KeyManagementService.EncryptionAlgorithmSpec FromDafny_N3_a } public static software.amazon.cryptography.services.kms.internaldafny.types._IEncryptionAlgorithmSpec ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S27_CreateAwsKmsRsaKeyringInput__M19_encryptionAlgorithm(Amazon.KeyManagementService.EncryptionAlgorithmSpec value) { - return ToDafny_N3_com__N9_amazonaws__N3_kms__S23_EncryptionAlgorithmSpec(value); + return ToDafny_N3_com__N9_amazonaws__N3_kms__S23_EncryptionAlgorithmSpec((Amazon.KeyManagementService.EncryptionAlgorithmSpec)value); } public static Amazon.KeyManagementService.IAmazonKeyManagementService FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S27_CreateAwsKmsRsaKeyringInput__M9_kmsClient(Wrappers_Compile._IOption value) { @@ -1813,7 +1813,7 @@ public static AWS.Cryptography.MaterialProviders.CacheType FromDafny_N3_aws__N12 } public static software.amazon.cryptography.materialproviders.internaldafny.types._ICacheType ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S38_CreateCryptographicMaterialsCacheInput__M5_cache(AWS.Cryptography.MaterialProviders.CacheType value) { - return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S9_CacheType(value); + return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S9_CacheType((AWS.Cryptography.MaterialProviders.CacheType)value); } public static AWS.Cryptography.MaterialProviders.ICryptographicMaterialsCache FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S39_CreateCryptographicMaterialsCacheOutput__M14_materialsCache(software.amazon.cryptography.materialproviders.internaldafny.types.ICryptographicMaterialsCache value) { @@ -1821,7 +1821,7 @@ public static AWS.Cryptography.MaterialProviders.ICryptographicMaterialsCache Fr } public static software.amazon.cryptography.materialproviders.internaldafny.types.ICryptographicMaterialsCache ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S39_CreateCryptographicMaterialsCacheOutput__M14_materialsCache(AWS.Cryptography.MaterialProviders.ICryptographicMaterialsCache value) { - return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S36_CryptographicMaterialsCacheReference(value); + return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S36_CryptographicMaterialsCacheReference((AWS.Cryptography.MaterialProviders.ICryptographicMaterialsCache)value); } public static AWS.Cryptography.MaterialProviders.ICryptographicMaterialsManager FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S41_CreateCryptographicMaterialsManagerOutput__M16_materialsManager(software.amazon.cryptography.materialproviders.internaldafny.types.ICryptographicMaterialsManager value) { @@ -1829,7 +1829,7 @@ public static AWS.Cryptography.MaterialProviders.ICryptographicMaterialsManager } public static software.amazon.cryptography.materialproviders.internaldafny.types.ICryptographicMaterialsManager ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S41_CreateCryptographicMaterialsManagerOutput__M16_materialsManager(AWS.Cryptography.MaterialProviders.ICryptographicMaterialsManager value) { - return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S38_CryptographicMaterialsManagerReference(value); + return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S38_CryptographicMaterialsManagerReference((AWS.Cryptography.MaterialProviders.ICryptographicMaterialsManager)value); } public static AWS.Cryptography.MaterialProviders.IClientSupplier FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S33_CreateDefaultClientSupplierOutput__M6_client(software.amazon.cryptography.materialproviders.internaldafny.types.IClientSupplier value) { @@ -1837,7 +1837,7 @@ public static AWS.Cryptography.MaterialProviders.IClientSupplier FromDafny_N3_aw } public static software.amazon.cryptography.materialproviders.internaldafny.types.IClientSupplier ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S33_CreateDefaultClientSupplierOutput__M6_client(AWS.Cryptography.MaterialProviders.IClientSupplier value) { - return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S23_ClientSupplierReference(value); + return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S23_ClientSupplierReference((AWS.Cryptography.MaterialProviders.IClientSupplier)value); } public static AWS.Cryptography.MaterialProviders.IKeyring FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S47_CreateDefaultCryptographicMaterialsManagerInput__M7_keyring(software.amazon.cryptography.materialproviders.internaldafny.types.IKeyring value) { @@ -1845,7 +1845,7 @@ public static AWS.Cryptography.MaterialProviders.IKeyring FromDafny_N3_aws__N12_ } public static software.amazon.cryptography.materialproviders.internaldafny.types.IKeyring ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S47_CreateDefaultCryptographicMaterialsManagerInput__M7_keyring(AWS.Cryptography.MaterialProviders.IKeyring value) { - return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S16_KeyringReference(value); + return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S16_KeyringReference((AWS.Cryptography.MaterialProviders.IKeyring)value); } public static AWS.Cryptography.MaterialProviders.IKeyring FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S19_CreateKeyringOutput__M7_keyring(software.amazon.cryptography.materialproviders.internaldafny.types.IKeyring value) { @@ -1853,7 +1853,7 @@ public static AWS.Cryptography.MaterialProviders.IKeyring FromDafny_N3_aws__N12_ } public static software.amazon.cryptography.materialproviders.internaldafny.types.IKeyring ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S19_CreateKeyringOutput__M7_keyring(AWS.Cryptography.MaterialProviders.IKeyring value) { - return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S16_KeyringReference(value); + return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S16_KeyringReference((AWS.Cryptography.MaterialProviders.IKeyring)value); } public static AWS.Cryptography.MaterialProviders.IKeyring FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S23_CreateMultiKeyringInput__M9_generator(Wrappers_Compile._IOption value) { @@ -1869,7 +1869,7 @@ public static AWS.Cryptography.MaterialProviders.IKeyring FromDafny_N3_aws__N12_ } public static Dafny.ISequence ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S23_CreateMultiKeyringInput__M13_childKeyrings(System.Collections.Generic.List value) { - return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S11_KeyringList(value); + return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S11_KeyringList((System.Collections.Generic.List)value); } public static string FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S24_CreateRawAesKeyringInput__M12_keyNamespace(Dafny.ISequence value) { @@ -1877,7 +1877,7 @@ public static string FromDafny_N3_aws__N12_cryptography__N17_materialProviders__ } public static Dafny.ISequence ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S24_CreateRawAesKeyringInput__M12_keyNamespace(string value) { - return ToDafny_N6_smithy__N3_api__S6_String(value); + return ToDafny_N6_smithy__N3_api__S6_String((string)value); } public static string FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S24_CreateRawAesKeyringInput__M7_keyName(Dafny.ISequence value) { @@ -1885,7 +1885,7 @@ public static string FromDafny_N3_aws__N12_cryptography__N17_materialProviders__ } public static Dafny.ISequence ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S24_CreateRawAesKeyringInput__M7_keyName(string value) { - return ToDafny_N6_smithy__N3_api__S6_String(value); + return ToDafny_N6_smithy__N3_api__S6_String((string)value); } public static System.IO.MemoryStream FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S24_CreateRawAesKeyringInput__M11_wrappingKey(Dafny.ISequence value) { @@ -1893,7 +1893,7 @@ public static System.IO.MemoryStream FromDafny_N3_aws__N12_cryptography__N17_mat } public static Dafny.ISequence ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S24_CreateRawAesKeyringInput__M11_wrappingKey(System.IO.MemoryStream value) { - return ToDafny_N6_smithy__N3_api__S4_Blob(value); + return ToDafny_N6_smithy__N3_api__S4_Blob((System.IO.MemoryStream)value); } public static AWS.Cryptography.MaterialProviders.AesWrappingAlg FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S24_CreateRawAesKeyringInput__M11_wrappingAlg(software.amazon.cryptography.materialproviders.internaldafny.types._IAesWrappingAlg value) { @@ -1901,7 +1901,7 @@ public static AWS.Cryptography.MaterialProviders.AesWrappingAlg FromDafny_N3_aws } public static software.amazon.cryptography.materialproviders.internaldafny.types._IAesWrappingAlg ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S24_CreateRawAesKeyringInput__M11_wrappingAlg(AWS.Cryptography.MaterialProviders.AesWrappingAlg value) { - return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S14_AesWrappingAlg(value); + return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S14_AesWrappingAlg((AWS.Cryptography.MaterialProviders.AesWrappingAlg)value); } public static AWS.Cryptography.MaterialProviders.RawEcdhStaticConfigurations FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S25_CreateRawEcdhKeyringInput__M18_KeyAgreementScheme(software.amazon.cryptography.materialproviders.internaldafny.types._IRawEcdhStaticConfigurations value) { @@ -1909,7 +1909,7 @@ public static AWS.Cryptography.MaterialProviders.RawEcdhStaticConfigurations Fro } public static software.amazon.cryptography.materialproviders.internaldafny.types._IRawEcdhStaticConfigurations ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S25_CreateRawEcdhKeyringInput__M18_KeyAgreementScheme(AWS.Cryptography.MaterialProviders.RawEcdhStaticConfigurations value) { - return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S27_RawEcdhStaticConfigurations(value); + return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S27_RawEcdhStaticConfigurations((AWS.Cryptography.MaterialProviders.RawEcdhStaticConfigurations)value); } public static AWS.Cryptography.Primitives.ECDHCurveSpec FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S25_CreateRawEcdhKeyringInput__M9_curveSpec(software.amazon.cryptography.primitives.internaldafny.types._IECDHCurveSpec value) { @@ -1917,7 +1917,7 @@ public static AWS.Cryptography.Primitives.ECDHCurveSpec FromDafny_N3_aws__N12_cr } public static software.amazon.cryptography.primitives.internaldafny.types._IECDHCurveSpec ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S25_CreateRawEcdhKeyringInput__M9_curveSpec(AWS.Cryptography.Primitives.ECDHCurveSpec value) { - return ToDafny_N3_aws__N12_cryptography__N10_primitives__S13_ECDHCurveSpec(value); + return ToDafny_N3_aws__N12_cryptography__N10_primitives__S13_ECDHCurveSpec((AWS.Cryptography.Primitives.ECDHCurveSpec)value); } public static string FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S24_CreateRawRsaKeyringInput__M12_keyNamespace(Dafny.ISequence value) { @@ -1925,7 +1925,7 @@ public static string FromDafny_N3_aws__N12_cryptography__N17_materialProviders__ } public static Dafny.ISequence ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S24_CreateRawRsaKeyringInput__M12_keyNamespace(string value) { - return ToDafny_N6_smithy__N3_api__S6_String(value); + return ToDafny_N6_smithy__N3_api__S6_String((string)value); } public static string FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S24_CreateRawRsaKeyringInput__M7_keyName(Dafny.ISequence value) { @@ -1933,7 +1933,7 @@ public static string FromDafny_N3_aws__N12_cryptography__N17_materialProviders__ } public static Dafny.ISequence ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S24_CreateRawRsaKeyringInput__M7_keyName(string value) { - return ToDafny_N6_smithy__N3_api__S6_String(value); + return ToDafny_N6_smithy__N3_api__S6_String((string)value); } public static AWS.Cryptography.MaterialProviders.PaddingScheme FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S24_CreateRawRsaKeyringInput__M13_paddingScheme(software.amazon.cryptography.materialproviders.internaldafny.types._IPaddingScheme value) { @@ -1941,7 +1941,7 @@ public static AWS.Cryptography.MaterialProviders.PaddingScheme FromDafny_N3_aws_ } public static software.amazon.cryptography.materialproviders.internaldafny.types._IPaddingScheme ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S24_CreateRawRsaKeyringInput__M13_paddingScheme(AWS.Cryptography.MaterialProviders.PaddingScheme value) { - return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S13_PaddingScheme(value); + return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S13_PaddingScheme((AWS.Cryptography.MaterialProviders.PaddingScheme)value); } public static System.IO.MemoryStream FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S24_CreateRawRsaKeyringInput__M9_publicKey(Wrappers_Compile._IOption> value) { @@ -1981,7 +1981,7 @@ public static System.Collections.Generic.List FromDafny_N3_aws__N12_cryp } public static Dafny.ISequence> ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S39_CreateRequiredEncryptionContextCMMInput__M29_requiredEncryptionContextKeys(System.Collections.Generic.List value) { - return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S21_EncryptionContextKeys(value); + return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S21_EncryptionContextKeys((System.Collections.Generic.List)value); } public static AWS.Cryptography.MaterialProviders.ICryptographicMaterialsManager FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S40_CreateRequiredEncryptionContextCMMOutput__M16_materialsManager(software.amazon.cryptography.materialproviders.internaldafny.types.ICryptographicMaterialsManager value) { @@ -1989,7 +1989,7 @@ public static AWS.Cryptography.MaterialProviders.ICryptographicMaterialsManager } public static software.amazon.cryptography.materialproviders.internaldafny.types.ICryptographicMaterialsManager ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S40_CreateRequiredEncryptionContextCMMOutput__M16_materialsManager(AWS.Cryptography.MaterialProviders.ICryptographicMaterialsManager value) { - return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S38_CryptographicMaterialsManagerReference(value); + return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S38_CryptographicMaterialsManagerReference((AWS.Cryptography.MaterialProviders.ICryptographicMaterialsManager)value); } public static AWS.Cryptography.MaterialProviders.AlgorithmSuiteInfo FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S19_DecryptionMaterials__M14_algorithmSuite(software.amazon.cryptography.materialproviders.internaldafny.types._IAlgorithmSuiteInfo value) { @@ -1997,7 +1997,7 @@ public static AWS.Cryptography.MaterialProviders.AlgorithmSuiteInfo FromDafny_N3 } public static software.amazon.cryptography.materialproviders.internaldafny.types._IAlgorithmSuiteInfo ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S19_DecryptionMaterials__M14_algorithmSuite(AWS.Cryptography.MaterialProviders.AlgorithmSuiteInfo value) { - return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S18_AlgorithmSuiteInfo(value); + return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S18_AlgorithmSuiteInfo((AWS.Cryptography.MaterialProviders.AlgorithmSuiteInfo)value); } public static System.Collections.Generic.Dictionary FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S19_DecryptionMaterials__M17_encryptionContext(Dafny.IMap, Dafny.ISequence> value) { @@ -2005,7 +2005,7 @@ public static System.Collections.Generic.Dictionary FromDafny_N3 } public static Dafny.IMap, Dafny.ISequence> ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S19_DecryptionMaterials__M17_encryptionContext(System.Collections.Generic.Dictionary value) { - return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S17_EncryptionContext(value); + return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S17_EncryptionContext((System.Collections.Generic.Dictionary)value); } public static System.Collections.Generic.List FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S19_DecryptionMaterials__M29_requiredEncryptionContextKeys(Dafny.ISequence> value) { @@ -2013,7 +2013,7 @@ public static System.Collections.Generic.List FromDafny_N3_aws__N12_cryp } public static Dafny.ISequence> ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S19_DecryptionMaterials__M29_requiredEncryptionContextKeys(System.Collections.Generic.List value) { - return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S21_EncryptionContextKeys(value); + return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S21_EncryptionContextKeys((System.Collections.Generic.List)value); } public static System.IO.MemoryStream FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S19_DecryptionMaterials__M16_plaintextDataKey(Wrappers_Compile._IOption> value) { @@ -2045,7 +2045,7 @@ public static AWS.Cryptography.MaterialProviders.AlgorithmSuiteId FromDafny_N3_a } public static software.amazon.cryptography.materialproviders.internaldafny.types._IAlgorithmSuiteId ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S21_DecryptMaterialsInput__M16_algorithmSuiteId(AWS.Cryptography.MaterialProviders.AlgorithmSuiteId value) { - return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S16_AlgorithmSuiteId(value); + return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S16_AlgorithmSuiteId((AWS.Cryptography.MaterialProviders.AlgorithmSuiteId)value); } public static AWS.Cryptography.MaterialProviders.CommitmentPolicy FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S21_DecryptMaterialsInput__M16_commitmentPolicy(software.amazon.cryptography.materialproviders.internaldafny.types._ICommitmentPolicy value) { @@ -2053,7 +2053,7 @@ public static AWS.Cryptography.MaterialProviders.CommitmentPolicy FromDafny_N3_a } public static software.amazon.cryptography.materialproviders.internaldafny.types._ICommitmentPolicy ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S21_DecryptMaterialsInput__M16_commitmentPolicy(AWS.Cryptography.MaterialProviders.CommitmentPolicy value) { - return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S16_CommitmentPolicy(value); + return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S16_CommitmentPolicy((AWS.Cryptography.MaterialProviders.CommitmentPolicy)value); } public static System.Collections.Generic.List FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S21_DecryptMaterialsInput__M17_encryptedDataKeys(Dafny.ISequence value) { @@ -2061,7 +2061,7 @@ public static software.amazon.cryptography.materialproviders.internaldafny.types } public static Dafny.ISequence ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S21_DecryptMaterialsInput__M17_encryptedDataKeys(System.Collections.Generic.List value) { - return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S20_EncryptedDataKeyList(value); + return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S20_EncryptedDataKeyList((System.Collections.Generic.List)value); } public static System.Collections.Generic.Dictionary FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S21_DecryptMaterialsInput__M17_encryptionContext(Dafny.IMap, Dafny.ISequence> value) { @@ -2069,7 +2069,7 @@ public static System.Collections.Generic.Dictionary FromDafny_N3 } public static Dafny.IMap, Dafny.ISequence> ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S21_DecryptMaterialsInput__M17_encryptionContext(System.Collections.Generic.Dictionary value) { - return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S17_EncryptionContext(value); + return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S17_EncryptionContext((System.Collections.Generic.Dictionary)value); } public static System.Collections.Generic.Dictionary FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S21_DecryptMaterialsInput__M27_reproducedEncryptionContext(Wrappers_Compile._IOption, Dafny.ISequence>> value) { @@ -2085,7 +2085,7 @@ public static AWS.Cryptography.MaterialProviders.DecryptionMaterials FromDafny_N } public static software.amazon.cryptography.materialproviders.internaldafny.types._IDecryptionMaterials ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S22_DecryptMaterialsOutput__M19_decryptionMaterials(AWS.Cryptography.MaterialProviders.DecryptionMaterials value) { - return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S19_DecryptionMaterials(value); + return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S19_DecryptionMaterials((AWS.Cryptography.MaterialProviders.DecryptionMaterials)value); } public static System.IO.MemoryStream FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S21_DeleteCacheEntryInput__M10_identifier(Dafny.ISequence value) { @@ -2093,7 +2093,7 @@ public static System.IO.MemoryStream FromDafny_N3_aws__N12_cryptography__N17_mat } public static Dafny.ISequence ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S21_DeleteCacheEntryInput__M10_identifier(System.IO.MemoryStream value) { - return ToDafny_N6_smithy__N3_api__S4_Blob(value); + return ToDafny_N6_smithy__N3_api__S4_Blob((System.IO.MemoryStream)value); } public static AWS.Cryptography.MaterialProviders.HKDF FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S19_DerivationAlgorithm__M4_HKDF(software.amazon.cryptography.materialproviders.internaldafny.types._IHKDF value) { @@ -2101,7 +2101,7 @@ public static AWS.Cryptography.MaterialProviders.HKDF FromDafny_N3_aws__N12_cryp } public static software.amazon.cryptography.materialproviders.internaldafny.types._IHKDF ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S19_DerivationAlgorithm__M4_HKDF(AWS.Cryptography.MaterialProviders.HKDF value) { - return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S4_HKDF(value); + return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S4_HKDF((AWS.Cryptography.MaterialProviders.HKDF)value); } public static AWS.Cryptography.MaterialProviders.IDENTITY FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S19_DerivationAlgorithm__M8_IDENTITY(software.amazon.cryptography.materialproviders.internaldafny.types._IIDENTITY value) { @@ -2109,7 +2109,7 @@ public static AWS.Cryptography.MaterialProviders.IDENTITY FromDafny_N3_aws__N12_ } public static software.amazon.cryptography.materialproviders.internaldafny.types._IIDENTITY ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S19_DerivationAlgorithm__M8_IDENTITY(AWS.Cryptography.MaterialProviders.IDENTITY value) { - return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S8_IDENTITY(value); + return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S8_IDENTITY((AWS.Cryptography.MaterialProviders.IDENTITY)value); } public static AWS.Cryptography.MaterialProviders.None FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S19_DerivationAlgorithm__M4_None(software.amazon.cryptography.materialproviders.internaldafny.types._INone value) { @@ -2117,7 +2117,7 @@ public static AWS.Cryptography.MaterialProviders.None FromDafny_N3_aws__N12_cryp } public static software.amazon.cryptography.materialproviders.internaldafny.types._INone ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S19_DerivationAlgorithm__M4_None(AWS.Cryptography.MaterialProviders.None value) { - return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S4_None(value); + return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S4_None((AWS.Cryptography.MaterialProviders.None)value); } public static AWS.Cryptography.MaterialProviders.DIRECT_KEY_WRAPPING FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S20_EdkWrappingAlgorithm__M19_DIRECT_KEY_WRAPPING(software.amazon.cryptography.materialproviders.internaldafny.types._IDIRECT__KEY__WRAPPING value) { @@ -2125,7 +2125,7 @@ public static AWS.Cryptography.MaterialProviders.DIRECT_KEY_WRAPPING FromDafny_N } public static software.amazon.cryptography.materialproviders.internaldafny.types._IDIRECT__KEY__WRAPPING ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S20_EdkWrappingAlgorithm__M19_DIRECT_KEY_WRAPPING(AWS.Cryptography.MaterialProviders.DIRECT_KEY_WRAPPING value) { - return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S19_DIRECT_KEY_WRAPPING(value); + return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S19_DIRECT_KEY_WRAPPING((AWS.Cryptography.MaterialProviders.DIRECT_KEY_WRAPPING)value); } public static AWS.Cryptography.MaterialProviders.IntermediateKeyWrapping FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S20_EdkWrappingAlgorithm__M23_IntermediateKeyWrapping(software.amazon.cryptography.materialproviders.internaldafny.types._IIntermediateKeyWrapping value) { @@ -2133,7 +2133,7 @@ public static AWS.Cryptography.MaterialProviders.IntermediateKeyWrapping FromDaf } public static software.amazon.cryptography.materialproviders.internaldafny.types._IIntermediateKeyWrapping ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S20_EdkWrappingAlgorithm__M23_IntermediateKeyWrapping(AWS.Cryptography.MaterialProviders.IntermediateKeyWrapping value) { - return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S23_IntermediateKeyWrapping(value); + return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S23_IntermediateKeyWrapping((AWS.Cryptography.MaterialProviders.IntermediateKeyWrapping)value); } public static AWS.Cryptography.Primitives.AES_GCM FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S7_Encrypt__M7_AES_GCM(software.amazon.cryptography.primitives.internaldafny.types._IAES__GCM value) { @@ -2141,7 +2141,7 @@ public static AWS.Cryptography.Primitives.AES_GCM FromDafny_N3_aws__N12_cryptogr } public static software.amazon.cryptography.primitives.internaldafny.types._IAES__GCM ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S7_Encrypt__M7_AES_GCM(AWS.Cryptography.Primitives.AES_GCM value) { - return ToDafny_N3_aws__N12_cryptography__N10_primitives__S7_AES_GCM(value); + return ToDafny_N3_aws__N12_cryptography__N10_primitives__S7_AES_GCM((AWS.Cryptography.Primitives.AES_GCM)value); } public static AWS.Cryptography.MaterialProviders.AlgorithmSuiteInfo FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S19_EncryptionMaterials__M14_algorithmSuite(software.amazon.cryptography.materialproviders.internaldafny.types._IAlgorithmSuiteInfo value) { @@ -2149,7 +2149,7 @@ public static AWS.Cryptography.MaterialProviders.AlgorithmSuiteInfo FromDafny_N3 } public static software.amazon.cryptography.materialproviders.internaldafny.types._IAlgorithmSuiteInfo ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S19_EncryptionMaterials__M14_algorithmSuite(AWS.Cryptography.MaterialProviders.AlgorithmSuiteInfo value) { - return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S18_AlgorithmSuiteInfo(value); + return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S18_AlgorithmSuiteInfo((AWS.Cryptography.MaterialProviders.AlgorithmSuiteInfo)value); } public static System.Collections.Generic.Dictionary FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S19_EncryptionMaterials__M17_encryptionContext(Dafny.IMap, Dafny.ISequence> value) { @@ -2157,7 +2157,7 @@ public static System.Collections.Generic.Dictionary FromDafny_N3 } public static Dafny.IMap, Dafny.ISequence> ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S19_EncryptionMaterials__M17_encryptionContext(System.Collections.Generic.Dictionary value) { - return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S17_EncryptionContext(value); + return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S17_EncryptionContext((System.Collections.Generic.Dictionary)value); } public static System.Collections.Generic.List FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S19_EncryptionMaterials__M17_encryptedDataKeys(Dafny.ISequence value) { @@ -2165,7 +2165,7 @@ public static System.Collections.Generic.Dictionary FromDafny_N3 } public static Dafny.ISequence ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S19_EncryptionMaterials__M17_encryptedDataKeys(System.Collections.Generic.List value) { - return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S20_EncryptedDataKeyList(value); + return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S20_EncryptedDataKeyList((System.Collections.Generic.List)value); } public static System.Collections.Generic.List FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S19_EncryptionMaterials__M29_requiredEncryptionContextKeys(Dafny.ISequence> value) { @@ -2173,7 +2173,7 @@ public static System.Collections.Generic.List FromDafny_N3_aws__N12_cryp } public static Dafny.ISequence> ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S19_EncryptionMaterials__M29_requiredEncryptionContextKeys(System.Collections.Generic.List value) { - return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S21_EncryptionContextKeys(value); + return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S21_EncryptionContextKeys((System.Collections.Generic.List)value); } public static System.IO.MemoryStream FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S19_EncryptionMaterials__M16_plaintextDataKey(Wrappers_Compile._IOption> value) { @@ -2205,7 +2205,7 @@ public static string FromDafny_N3_aws__N12_cryptography__N17_materialProviders__ } public static Dafny.ISequence ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S18_EntryAlreadyExists__M7_message(string value) { - return ToDafny_N6_smithy__N3_api__S6_String(value); + return ToDafny_N6_smithy__N3_api__S6_String((string)value); } public static string FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S17_EntryDoesNotExist__M7_message(Dafny.ISequence value) { @@ -2213,7 +2213,7 @@ public static string FromDafny_N3_aws__N12_cryptography__N17_materialProviders__ } public static Dafny.ISequence ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S17_EntryDoesNotExist__M7_message(string value) { - return ToDafny_N6_smithy__N3_api__S6_String(value); + return ToDafny_N6_smithy__N3_api__S6_String((string)value); } public static System.IO.MemoryStream FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S26_GetAlgorithmSuiteInfoInput__M8_binaryId(Dafny.ISequence value) { @@ -2221,7 +2221,7 @@ public static System.IO.MemoryStream FromDafny_N3_aws__N12_cryptography__N17_mat } public static Dafny.ISequence ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S26_GetAlgorithmSuiteInfoInput__M8_binaryId(System.IO.MemoryStream value) { - return ToDafny_N6_smithy__N3_api__S4_Blob(value); + return ToDafny_N6_smithy__N3_api__S4_Blob((System.IO.MemoryStream)value); } public static System.Collections.Generic.Dictionary FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S19_GetBranchKeyIdInput__M17_encryptionContext(Dafny.IMap, Dafny.ISequence> value) { @@ -2229,7 +2229,7 @@ public static System.Collections.Generic.Dictionary FromDafny_N3 } public static Dafny.IMap, Dafny.ISequence> ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S19_GetBranchKeyIdInput__M17_encryptionContext(System.Collections.Generic.Dictionary value) { - return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S17_EncryptionContext(value); + return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S17_EncryptionContext((System.Collections.Generic.Dictionary)value); } public static string FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S20_GetBranchKeyIdOutput__M11_branchKeyId(Dafny.ISequence value) { @@ -2237,7 +2237,7 @@ public static string FromDafny_N3_aws__N12_cryptography__N17_materialProviders__ } public static Dafny.ISequence ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S20_GetBranchKeyIdOutput__M11_branchKeyId(string value) { - return ToDafny_N6_smithy__N3_api__S6_String(value); + return ToDafny_N6_smithy__N3_api__S6_String((string)value); } public static System.IO.MemoryStream FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S18_GetCacheEntryInput__M10_identifier(Dafny.ISequence value) { @@ -2245,7 +2245,7 @@ public static System.IO.MemoryStream FromDafny_N3_aws__N12_cryptography__N17_mat } public static Dafny.ISequence ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S18_GetCacheEntryInput__M10_identifier(System.IO.MemoryStream value) { - return ToDafny_N6_smithy__N3_api__S4_Blob(value); + return ToDafny_N6_smithy__N3_api__S4_Blob((System.IO.MemoryStream)value); } public static long? FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S18_GetCacheEntryInput__M9_bytesUsed(Wrappers_Compile._IOption value) { @@ -2261,39 +2261,39 @@ public static AWS.Cryptography.MaterialProviders.Materials FromDafny_N3_aws__N12 } public static software.amazon.cryptography.materialproviders.internaldafny.types._IMaterials ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S19_GetCacheEntryOutput__M9_materials(AWS.Cryptography.MaterialProviders.Materials value) { - return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S9_Materials(value); + return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S9_Materials((AWS.Cryptography.MaterialProviders.Materials)value); } - public static long FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S19_GetCacheEntryOutput__M12_creationTime(long value) + public static long? FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S19_GetCacheEntryOutput__M12_creationTime(long value) { return FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S12_PositiveLong(value); } - public static long ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S19_GetCacheEntryOutput__M12_creationTime(long value) + public static long ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S19_GetCacheEntryOutput__M12_creationTime(long? value) { - return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S12_PositiveLong(value); + return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S12_PositiveLong((long)value); } - public static long FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S19_GetCacheEntryOutput__M10_expiryTime(long value) + public static long? FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S19_GetCacheEntryOutput__M10_expiryTime(long value) { return FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S12_PositiveLong(value); } - public static long ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S19_GetCacheEntryOutput__M10_expiryTime(long value) + public static long ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S19_GetCacheEntryOutput__M10_expiryTime(long? value) { - return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S12_PositiveLong(value); + return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S12_PositiveLong((long)value); } - public static int FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S19_GetCacheEntryOutput__M12_messagesUsed(int value) + public static int? FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S19_GetCacheEntryOutput__M12_messagesUsed(int value) { return FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S15_PositiveInteger(value); } - public static int ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S19_GetCacheEntryOutput__M12_messagesUsed(int value) + public static int ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S19_GetCacheEntryOutput__M12_messagesUsed(int? value) { - return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S15_PositiveInteger(value); + return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S15_PositiveInteger((int)value); } - public static int FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S19_GetCacheEntryOutput__M9_bytesUsed(int value) + public static int? FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S19_GetCacheEntryOutput__M9_bytesUsed(int value) { return FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S15_PositiveInteger(value); } - public static int ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S19_GetCacheEntryOutput__M9_bytesUsed(int value) + public static int ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S19_GetCacheEntryOutput__M9_bytesUsed(int? value) { - return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S15_PositiveInteger(value); + return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S15_PositiveInteger((int)value); } public static string FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S14_GetClientInput__M6_region(Dafny.ISequence value) { @@ -2301,7 +2301,7 @@ public static string FromDafny_N3_aws__N12_cryptography__N17_materialProviders__ } public static Dafny.ISequence ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S14_GetClientInput__M6_region(string value) { - return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S6_Region(value); + return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S6_Region((string)value); } public static Amazon.KeyManagementService.IAmazonKeyManagementService FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S15_GetClientOutput__M6_client(software.amazon.cryptography.services.kms.internaldafny.types.IKMSClient value) { @@ -2309,7 +2309,7 @@ public static Amazon.KeyManagementService.IAmazonKeyManagementService FromDafny_ } public static software.amazon.cryptography.services.kms.internaldafny.types.IKMSClient ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S15_GetClientOutput__M6_client(Amazon.KeyManagementService.IAmazonKeyManagementService value) { - return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S18_KmsClientReference(value); + return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S18_KmsClientReference((Amazon.KeyManagementService.IAmazonKeyManagementService)value); } public static System.Collections.Generic.Dictionary FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S27_GetEncryptionMaterialsInput__M17_encryptionContext(Dafny.IMap, Dafny.ISequence> value) { @@ -2317,7 +2317,7 @@ public static System.Collections.Generic.Dictionary FromDafny_N3 } public static Dafny.IMap, Dafny.ISequence> ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S27_GetEncryptionMaterialsInput__M17_encryptionContext(System.Collections.Generic.Dictionary value) { - return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S17_EncryptionContext(value); + return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S17_EncryptionContext((System.Collections.Generic.Dictionary)value); } public static AWS.Cryptography.MaterialProviders.CommitmentPolicy FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S27_GetEncryptionMaterialsInput__M16_commitmentPolicy(software.amazon.cryptography.materialproviders.internaldafny.types._ICommitmentPolicy value) { @@ -2325,7 +2325,7 @@ public static AWS.Cryptography.MaterialProviders.CommitmentPolicy FromDafny_N3_a } public static software.amazon.cryptography.materialproviders.internaldafny.types._ICommitmentPolicy ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S27_GetEncryptionMaterialsInput__M16_commitmentPolicy(AWS.Cryptography.MaterialProviders.CommitmentPolicy value) { - return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S16_CommitmentPolicy(value); + return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S16_CommitmentPolicy((AWS.Cryptography.MaterialProviders.CommitmentPolicy)value); } public static AWS.Cryptography.MaterialProviders.AlgorithmSuiteId FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S27_GetEncryptionMaterialsInput__M16_algorithmSuiteId(Wrappers_Compile._IOption value) { @@ -2357,7 +2357,7 @@ public static AWS.Cryptography.MaterialProviders.EncryptionMaterials FromDafny_N } public static software.amazon.cryptography.materialproviders.internaldafny.types._IEncryptionMaterials ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S28_GetEncryptionMaterialsOutput__M19_encryptionMaterials(AWS.Cryptography.MaterialProviders.EncryptionMaterials value) { - return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S19_EncryptionMaterials(value); + return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S19_EncryptionMaterials((AWS.Cryptography.MaterialProviders.EncryptionMaterials)value); } public static string FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S19_InFlightTTLExceeded__M7_message(Dafny.ISequence value) { @@ -2365,7 +2365,7 @@ public static string FromDafny_N3_aws__N12_cryptography__N17_materialProviders__ } public static Dafny.ISequence ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S19_InFlightTTLExceeded__M7_message(string value) { - return ToDafny_N6_smithy__N3_api__S6_String(value); + return ToDafny_N6_smithy__N3_api__S6_String((string)value); } public static AWS.Cryptography.MaterialProviders.AlgorithmSuiteId FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S34_InitializeDecryptionMaterialsInput__M16_algorithmSuiteId(software.amazon.cryptography.materialproviders.internaldafny.types._IAlgorithmSuiteId value) { @@ -2373,7 +2373,7 @@ public static AWS.Cryptography.MaterialProviders.AlgorithmSuiteId FromDafny_N3_a } public static software.amazon.cryptography.materialproviders.internaldafny.types._IAlgorithmSuiteId ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S34_InitializeDecryptionMaterialsInput__M16_algorithmSuiteId(AWS.Cryptography.MaterialProviders.AlgorithmSuiteId value) { - return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S16_AlgorithmSuiteId(value); + return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S16_AlgorithmSuiteId((AWS.Cryptography.MaterialProviders.AlgorithmSuiteId)value); } public static System.Collections.Generic.Dictionary FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S34_InitializeDecryptionMaterialsInput__M17_encryptionContext(Dafny.IMap, Dafny.ISequence> value) { @@ -2381,7 +2381,7 @@ public static System.Collections.Generic.Dictionary FromDafny_N3 } public static Dafny.IMap, Dafny.ISequence> ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S34_InitializeDecryptionMaterialsInput__M17_encryptionContext(System.Collections.Generic.Dictionary value) { - return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S17_EncryptionContext(value); + return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S17_EncryptionContext((System.Collections.Generic.Dictionary)value); } public static System.Collections.Generic.List FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S34_InitializeDecryptionMaterialsInput__M29_requiredEncryptionContextKeys(Dafny.ISequence> value) { @@ -2389,7 +2389,7 @@ public static System.Collections.Generic.List FromDafny_N3_aws__N12_cryp } public static Dafny.ISequence> ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S34_InitializeDecryptionMaterialsInput__M29_requiredEncryptionContextKeys(System.Collections.Generic.List value) { - return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S21_EncryptionContextKeys(value); + return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S21_EncryptionContextKeys((System.Collections.Generic.List)value); } public static AWS.Cryptography.MaterialProviders.AlgorithmSuiteId FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S34_InitializeEncryptionMaterialsInput__M16_algorithmSuiteId(software.amazon.cryptography.materialproviders.internaldafny.types._IAlgorithmSuiteId value) { @@ -2397,7 +2397,7 @@ public static AWS.Cryptography.MaterialProviders.AlgorithmSuiteId FromDafny_N3_a } public static software.amazon.cryptography.materialproviders.internaldafny.types._IAlgorithmSuiteId ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S34_InitializeEncryptionMaterialsInput__M16_algorithmSuiteId(AWS.Cryptography.MaterialProviders.AlgorithmSuiteId value) { - return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S16_AlgorithmSuiteId(value); + return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S16_AlgorithmSuiteId((AWS.Cryptography.MaterialProviders.AlgorithmSuiteId)value); } public static System.Collections.Generic.Dictionary FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S34_InitializeEncryptionMaterialsInput__M17_encryptionContext(Dafny.IMap, Dafny.ISequence> value) { @@ -2405,7 +2405,7 @@ public static System.Collections.Generic.Dictionary FromDafny_N3 } public static Dafny.IMap, Dafny.ISequence> ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S34_InitializeEncryptionMaterialsInput__M17_encryptionContext(System.Collections.Generic.Dictionary value) { - return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S17_EncryptionContext(value); + return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S17_EncryptionContext((System.Collections.Generic.Dictionary)value); } public static System.Collections.Generic.List FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S34_InitializeEncryptionMaterialsInput__M29_requiredEncryptionContextKeys(Dafny.ISequence> value) { @@ -2413,7 +2413,7 @@ public static System.Collections.Generic.List FromDafny_N3_aws__N12_cryp } public static Dafny.ISequence> ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S34_InitializeEncryptionMaterialsInput__M29_requiredEncryptionContextKeys(System.Collections.Generic.List value) { - return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S21_EncryptionContextKeys(value); + return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S21_EncryptionContextKeys((System.Collections.Generic.List)value); } public static System.IO.MemoryStream FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S34_InitializeEncryptionMaterialsInput__M10_signingKey(Wrappers_Compile._IOption> value) { @@ -2437,7 +2437,7 @@ public static string FromDafny_N3_aws__N12_cryptography__N17_materialProviders__ } public static Dafny.ISequence ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S25_InvalidAlgorithmSuiteInfo__M7_message(string value) { - return ToDafny_N6_smithy__N3_api__S6_String(value); + return ToDafny_N6_smithy__N3_api__S6_String((string)value); } public static string FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S34_InvalidAlgorithmSuiteInfoOnDecrypt__M7_message(Dafny.ISequence value) { @@ -2445,7 +2445,7 @@ public static string FromDafny_N3_aws__N12_cryptography__N17_materialProviders__ } public static Dafny.ISequence ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S34_InvalidAlgorithmSuiteInfoOnDecrypt__M7_message(string value) { - return ToDafny_N6_smithy__N3_api__S6_String(value); + return ToDafny_N6_smithy__N3_api__S6_String((string)value); } public static string FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S34_InvalidAlgorithmSuiteInfoOnEncrypt__M7_message(Dafny.ISequence value) { @@ -2453,7 +2453,7 @@ public static string FromDafny_N3_aws__N12_cryptography__N17_materialProviders__ } public static Dafny.ISequence ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S34_InvalidAlgorithmSuiteInfoOnEncrypt__M7_message(string value) { - return ToDafny_N6_smithy__N3_api__S6_String(value); + return ToDafny_N6_smithy__N3_api__S6_String((string)value); } public static string FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S26_InvalidDecryptionMaterials__M7_message(Dafny.ISequence value) { @@ -2461,7 +2461,7 @@ public static string FromDafny_N3_aws__N12_cryptography__N17_materialProviders__ } public static Dafny.ISequence ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S26_InvalidDecryptionMaterials__M7_message(string value) { - return ToDafny_N6_smithy__N3_api__S6_String(value); + return ToDafny_N6_smithy__N3_api__S6_String((string)value); } public static string FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S36_InvalidDecryptionMaterialsTransition__M7_message(Dafny.ISequence value) { @@ -2469,7 +2469,7 @@ public static string FromDafny_N3_aws__N12_cryptography__N17_materialProviders__ } public static Dafny.ISequence ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S36_InvalidDecryptionMaterialsTransition__M7_message(string value) { - return ToDafny_N6_smithy__N3_api__S6_String(value); + return ToDafny_N6_smithy__N3_api__S6_String((string)value); } public static string FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S26_InvalidEncryptionMaterials__M7_message(Dafny.ISequence value) { @@ -2477,7 +2477,7 @@ public static string FromDafny_N3_aws__N12_cryptography__N17_materialProviders__ } public static Dafny.ISequence ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S26_InvalidEncryptionMaterials__M7_message(string value) { - return ToDafny_N6_smithy__N3_api__S6_String(value); + return ToDafny_N6_smithy__N3_api__S6_String((string)value); } public static string FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S36_InvalidEncryptionMaterialsTransition__M7_message(Dafny.ISequence value) { @@ -2485,7 +2485,7 @@ public static string FromDafny_N3_aws__N12_cryptography__N17_materialProviders__ } public static Dafny.ISequence ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S36_InvalidEncryptionMaterialsTransition__M7_message(string value) { - return ToDafny_N6_smithy__N3_api__S6_String(value); + return ToDafny_N6_smithy__N3_api__S6_String((string)value); } public static AWS.Cryptography.MaterialProviders.StaticConfigurations FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S18_KeyAgreementScheme__M19_StaticConfiguration(software.amazon.cryptography.materialproviders.internaldafny.types._IStaticConfigurations value) { @@ -2493,7 +2493,7 @@ public static AWS.Cryptography.MaterialProviders.StaticConfigurations FromDafny_ } public static software.amazon.cryptography.materialproviders.internaldafny.types._IStaticConfigurations ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S18_KeyAgreementScheme__M19_StaticConfiguration(AWS.Cryptography.MaterialProviders.StaticConfigurations value) { - return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S20_StaticConfigurations(value); + return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S20_StaticConfigurations((AWS.Cryptography.MaterialProviders.StaticConfigurations)value); } public static AWS.Cryptography.MaterialProviders.KmsPublicKeyDiscoveryInput FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S27_KmsEcdhStaticConfigurations__M21_KmsPublicKeyDiscovery(software.amazon.cryptography.materialproviders.internaldafny.types._IKmsPublicKeyDiscoveryInput value) { @@ -2501,7 +2501,7 @@ public static AWS.Cryptography.MaterialProviders.KmsPublicKeyDiscoveryInput From } public static software.amazon.cryptography.materialproviders.internaldafny.types._IKmsPublicKeyDiscoveryInput ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S27_KmsEcdhStaticConfigurations__M21_KmsPublicKeyDiscovery(AWS.Cryptography.MaterialProviders.KmsPublicKeyDiscoveryInput value) { - return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S26_KmsPublicKeyDiscoveryInput(value); + return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S26_KmsPublicKeyDiscoveryInput((AWS.Cryptography.MaterialProviders.KmsPublicKeyDiscoveryInput)value); } public static AWS.Cryptography.MaterialProviders.KmsPrivateKeyToStaticPublicKeyInput FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S27_KmsEcdhStaticConfigurations__M30_KmsPrivateKeyToStaticPublicKey(software.amazon.cryptography.materialproviders.internaldafny.types._IKmsPrivateKeyToStaticPublicKeyInput value) { @@ -2509,7 +2509,7 @@ public static AWS.Cryptography.MaterialProviders.KmsPrivateKeyToStaticPublicKeyI } public static software.amazon.cryptography.materialproviders.internaldafny.types._IKmsPrivateKeyToStaticPublicKeyInput ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S27_KmsEcdhStaticConfigurations__M30_KmsPrivateKeyToStaticPublicKey(AWS.Cryptography.MaterialProviders.KmsPrivateKeyToStaticPublicKeyInput value) { - return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S35_KmsPrivateKeyToStaticPublicKeyInput(value); + return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S35_KmsPrivateKeyToStaticPublicKeyInput((AWS.Cryptography.MaterialProviders.KmsPrivateKeyToStaticPublicKeyInput)value); } public static AWS.Cryptography.MaterialProviders.EncryptionMaterials FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S9_Materials__M10_Encryption(software.amazon.cryptography.materialproviders.internaldafny.types._IEncryptionMaterials value) { @@ -2517,7 +2517,7 @@ public static AWS.Cryptography.MaterialProviders.EncryptionMaterials FromDafny_N } public static software.amazon.cryptography.materialproviders.internaldafny.types._IEncryptionMaterials ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S9_Materials__M10_Encryption(AWS.Cryptography.MaterialProviders.EncryptionMaterials value) { - return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S19_EncryptionMaterials(value); + return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S19_EncryptionMaterials((AWS.Cryptography.MaterialProviders.EncryptionMaterials)value); } public static AWS.Cryptography.MaterialProviders.DecryptionMaterials FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S9_Materials__M10_Decryption(software.amazon.cryptography.materialproviders.internaldafny.types._IDecryptionMaterials value) { @@ -2525,7 +2525,7 @@ public static AWS.Cryptography.MaterialProviders.DecryptionMaterials FromDafny_N } public static software.amazon.cryptography.materialproviders.internaldafny.types._IDecryptionMaterials ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S9_Materials__M10_Decryption(AWS.Cryptography.MaterialProviders.DecryptionMaterials value) { - return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S19_DecryptionMaterials(value); + return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S19_DecryptionMaterials((AWS.Cryptography.MaterialProviders.DecryptionMaterials)value); } public static AWS.Cryptography.KeyStore.BranchKeyMaterials FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S9_Materials__M9_BranchKey(software.amazon.cryptography.keystore.internaldafny.types._IBranchKeyMaterials value) { @@ -2533,7 +2533,7 @@ public static AWS.Cryptography.KeyStore.BranchKeyMaterials FromDafny_N3_aws__N12 } public static software.amazon.cryptography.keystore.internaldafny.types._IBranchKeyMaterials ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S9_Materials__M9_BranchKey(AWS.Cryptography.KeyStore.BranchKeyMaterials value) { - return ToDafny_N3_aws__N12_cryptography__N8_keyStore__S18_BranchKeyMaterials(value); + return ToDafny_N3_aws__N12_cryptography__N8_keyStore__S18_BranchKeyMaterials((AWS.Cryptography.KeyStore.BranchKeyMaterials)value); } public static AWS.Cryptography.KeyStore.BeaconKeyMaterials FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S9_Materials__M9_BeaconKey(software.amazon.cryptography.keystore.internaldafny.types._IBeaconKeyMaterials value) { @@ -2541,7 +2541,7 @@ public static AWS.Cryptography.KeyStore.BeaconKeyMaterials FromDafny_N3_aws__N12 } public static software.amazon.cryptography.keystore.internaldafny.types._IBeaconKeyMaterials ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S9_Materials__M9_BeaconKey(AWS.Cryptography.KeyStore.BeaconKeyMaterials value) { - return ToDafny_N3_aws__N12_cryptography__N8_keyStore__S18_BeaconKeyMaterials(value); + return ToDafny_N3_aws__N12_cryptography__N8_keyStore__S18_BeaconKeyMaterials((AWS.Cryptography.KeyStore.BeaconKeyMaterials)value); } public static AWS.Cryptography.MaterialProviders.DecryptionMaterials FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S14_OnDecryptInput__M9_materials(software.amazon.cryptography.materialproviders.internaldafny.types._IDecryptionMaterials value) { @@ -2549,7 +2549,7 @@ public static AWS.Cryptography.MaterialProviders.DecryptionMaterials FromDafny_N } public static software.amazon.cryptography.materialproviders.internaldafny.types._IDecryptionMaterials ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S14_OnDecryptInput__M9_materials(AWS.Cryptography.MaterialProviders.DecryptionMaterials value) { - return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S19_DecryptionMaterials(value); + return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S19_DecryptionMaterials((AWS.Cryptography.MaterialProviders.DecryptionMaterials)value); } public static System.Collections.Generic.List FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S14_OnDecryptInput__M17_encryptedDataKeys(Dafny.ISequence value) { @@ -2557,7 +2557,7 @@ public static software.amazon.cryptography.materialproviders.internaldafny.types } public static Dafny.ISequence ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S14_OnDecryptInput__M17_encryptedDataKeys(System.Collections.Generic.List value) { - return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S20_EncryptedDataKeyList(value); + return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S20_EncryptedDataKeyList((System.Collections.Generic.List)value); } public static AWS.Cryptography.MaterialProviders.DecryptionMaterials FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S15_OnDecryptOutput__M9_materials(software.amazon.cryptography.materialproviders.internaldafny.types._IDecryptionMaterials value) { @@ -2565,7 +2565,7 @@ public static AWS.Cryptography.MaterialProviders.DecryptionMaterials FromDafny_N } public static software.amazon.cryptography.materialproviders.internaldafny.types._IDecryptionMaterials ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S15_OnDecryptOutput__M9_materials(AWS.Cryptography.MaterialProviders.DecryptionMaterials value) { - return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S19_DecryptionMaterials(value); + return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S19_DecryptionMaterials((AWS.Cryptography.MaterialProviders.DecryptionMaterials)value); } public static AWS.Cryptography.MaterialProviders.EncryptionMaterials FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S14_OnEncryptInput__M9_materials(software.amazon.cryptography.materialproviders.internaldafny.types._IEncryptionMaterials value) { @@ -2573,7 +2573,7 @@ public static AWS.Cryptography.MaterialProviders.EncryptionMaterials FromDafny_N } public static software.amazon.cryptography.materialproviders.internaldafny.types._IEncryptionMaterials ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S14_OnEncryptInput__M9_materials(AWS.Cryptography.MaterialProviders.EncryptionMaterials value) { - return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S19_EncryptionMaterials(value); + return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S19_EncryptionMaterials((AWS.Cryptography.MaterialProviders.EncryptionMaterials)value); } public static AWS.Cryptography.MaterialProviders.EncryptionMaterials FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S15_OnEncryptOutput__M9_materials(software.amazon.cryptography.materialproviders.internaldafny.types._IEncryptionMaterials value) { @@ -2581,7 +2581,7 @@ public static AWS.Cryptography.MaterialProviders.EncryptionMaterials FromDafny_N } public static software.amazon.cryptography.materialproviders.internaldafny.types._IEncryptionMaterials ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S15_OnEncryptOutput__M9_materials(AWS.Cryptography.MaterialProviders.EncryptionMaterials value) { - return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S19_EncryptionMaterials(value); + return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S19_EncryptionMaterials((AWS.Cryptography.MaterialProviders.EncryptionMaterials)value); } public static System.IO.MemoryStream FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S18_PutCacheEntryInput__M10_identifier(Dafny.ISequence value) { @@ -2589,7 +2589,7 @@ public static System.IO.MemoryStream FromDafny_N3_aws__N12_cryptography__N17_mat } public static Dafny.ISequence ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S18_PutCacheEntryInput__M10_identifier(System.IO.MemoryStream value) { - return ToDafny_N6_smithy__N3_api__S4_Blob(value); + return ToDafny_N6_smithy__N3_api__S4_Blob((System.IO.MemoryStream)value); } public static AWS.Cryptography.MaterialProviders.Materials FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S18_PutCacheEntryInput__M9_materials(software.amazon.cryptography.materialproviders.internaldafny.types._IMaterials value) { @@ -2597,23 +2597,23 @@ public static AWS.Cryptography.MaterialProviders.Materials FromDafny_N3_aws__N12 } public static software.amazon.cryptography.materialproviders.internaldafny.types._IMaterials ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S18_PutCacheEntryInput__M9_materials(AWS.Cryptography.MaterialProviders.Materials value) { - return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S9_Materials(value); + return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S9_Materials((AWS.Cryptography.MaterialProviders.Materials)value); } - public static long FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S18_PutCacheEntryInput__M12_creationTime(long value) + public static long? FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S18_PutCacheEntryInput__M12_creationTime(long value) { return FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S12_PositiveLong(value); } - public static long ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S18_PutCacheEntryInput__M12_creationTime(long value) + public static long ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S18_PutCacheEntryInput__M12_creationTime(long? value) { - return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S12_PositiveLong(value); + return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S12_PositiveLong((long)value); } - public static long FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S18_PutCacheEntryInput__M10_expiryTime(long value) + public static long? FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S18_PutCacheEntryInput__M10_expiryTime(long value) { return FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S12_PositiveLong(value); } - public static long ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S18_PutCacheEntryInput__M10_expiryTime(long value) + public static long ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S18_PutCacheEntryInput__M10_expiryTime(long? value) { - return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S12_PositiveLong(value); + return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S12_PositiveLong((long)value); } public static int? FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S18_PutCacheEntryInput__M12_messagesUsed(Wrappers_Compile._IOption value) { @@ -2637,7 +2637,7 @@ public static AWS.Cryptography.MaterialProviders.PublicKeyDiscoveryInput FromDaf } public static software.amazon.cryptography.materialproviders.internaldafny.types._IPublicKeyDiscoveryInput ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S27_RawEcdhStaticConfigurations__M18_PublicKeyDiscovery(AWS.Cryptography.MaterialProviders.PublicKeyDiscoveryInput value) { - return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S23_PublicKeyDiscoveryInput(value); + return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S23_PublicKeyDiscoveryInput((AWS.Cryptography.MaterialProviders.PublicKeyDiscoveryInput)value); } public static AWS.Cryptography.MaterialProviders.RawPrivateKeyToStaticPublicKeyInput FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S27_RawEcdhStaticConfigurations__M30_RawPrivateKeyToStaticPublicKey(software.amazon.cryptography.materialproviders.internaldafny.types._IRawPrivateKeyToStaticPublicKeyInput value) { @@ -2645,7 +2645,7 @@ public static AWS.Cryptography.MaterialProviders.RawPrivateKeyToStaticPublicKeyI } public static software.amazon.cryptography.materialproviders.internaldafny.types._IRawPrivateKeyToStaticPublicKeyInput ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S27_RawEcdhStaticConfigurations__M30_RawPrivateKeyToStaticPublicKey(AWS.Cryptography.MaterialProviders.RawPrivateKeyToStaticPublicKeyInput value) { - return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S35_RawPrivateKeyToStaticPublicKeyInput(value); + return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S35_RawPrivateKeyToStaticPublicKeyInput((AWS.Cryptography.MaterialProviders.RawPrivateKeyToStaticPublicKeyInput)value); } public static AWS.Cryptography.MaterialProviders.EphemeralPrivateKeyToStaticPublicKeyInput FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S27_RawEcdhStaticConfigurations__M36_EphemeralPrivateKeyToStaticPublicKey(software.amazon.cryptography.materialproviders.internaldafny.types._IEphemeralPrivateKeyToStaticPublicKeyInput value) { @@ -2653,7 +2653,7 @@ public static AWS.Cryptography.MaterialProviders.EphemeralPrivateKeyToStaticPubl } public static software.amazon.cryptography.materialproviders.internaldafny.types._IEphemeralPrivateKeyToStaticPublicKeyInput ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S27_RawEcdhStaticConfigurations__M36_EphemeralPrivateKeyToStaticPublicKey(AWS.Cryptography.MaterialProviders.EphemeralPrivateKeyToStaticPublicKeyInput value) { - return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S41_EphemeralPrivateKeyToStaticPublicKeyInput(value); + return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S41_EphemeralPrivateKeyToStaticPublicKeyInput((AWS.Cryptography.MaterialProviders.EphemeralPrivateKeyToStaticPublicKeyInput)value); } public static AWS.Cryptography.MaterialProviders.ECDSA FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S18_SignatureAlgorithm__M5_ECDSA(software.amazon.cryptography.materialproviders.internaldafny.types._IECDSA value) { @@ -2661,7 +2661,7 @@ public static AWS.Cryptography.MaterialProviders.ECDSA FromDafny_N3_aws__N12_cry } public static software.amazon.cryptography.materialproviders.internaldafny.types._IECDSA ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S18_SignatureAlgorithm__M5_ECDSA(AWS.Cryptography.MaterialProviders.ECDSA value) { - return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S5_ECDSA(value); + return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S5_ECDSA((AWS.Cryptography.MaterialProviders.ECDSA)value); } public static AWS.Cryptography.MaterialProviders.None FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S18_SignatureAlgorithm__M4_None(software.amazon.cryptography.materialproviders.internaldafny.types._INone value) { @@ -2669,7 +2669,7 @@ public static AWS.Cryptography.MaterialProviders.None FromDafny_N3_aws__N12_cryp } public static software.amazon.cryptography.materialproviders.internaldafny.types._INone ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S18_SignatureAlgorithm__M4_None(AWS.Cryptography.MaterialProviders.None value) { - return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S4_None(value); + return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S4_None((AWS.Cryptography.MaterialProviders.None)value); } public static AWS.Cryptography.MaterialProviders.KmsEcdhStaticConfigurations FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S20_StaticConfigurations__M12_AWS_KMS_ECDH(software.amazon.cryptography.materialproviders.internaldafny.types._IKmsEcdhStaticConfigurations value) { @@ -2677,7 +2677,7 @@ public static AWS.Cryptography.MaterialProviders.KmsEcdhStaticConfigurations Fro } public static software.amazon.cryptography.materialproviders.internaldafny.types._IKmsEcdhStaticConfigurations ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S20_StaticConfigurations__M12_AWS_KMS_ECDH(AWS.Cryptography.MaterialProviders.KmsEcdhStaticConfigurations value) { - return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S27_KmsEcdhStaticConfigurations(value); + return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S27_KmsEcdhStaticConfigurations((AWS.Cryptography.MaterialProviders.KmsEcdhStaticConfigurations)value); } public static AWS.Cryptography.MaterialProviders.RawEcdhStaticConfigurations FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S20_StaticConfigurations__M8_RAW_ECDH(software.amazon.cryptography.materialproviders.internaldafny.types._IRawEcdhStaticConfigurations value) { @@ -2685,7 +2685,7 @@ public static AWS.Cryptography.MaterialProviders.RawEcdhStaticConfigurations Fro } public static software.amazon.cryptography.materialproviders.internaldafny.types._IRawEcdhStaticConfigurations ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S20_StaticConfigurations__M8_RAW_ECDH(AWS.Cryptography.MaterialProviders.RawEcdhStaticConfigurations value) { - return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S27_RawEcdhStaticConfigurations(value); + return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S27_RawEcdhStaticConfigurations((AWS.Cryptography.MaterialProviders.RawEcdhStaticConfigurations)value); } public static AWS.Cryptography.Primitives.DigestAlgorithm FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S27_SymmetricSignatureAlgorithm__M4_HMAC(software.amazon.cryptography.primitives.internaldafny.types._IDigestAlgorithm value) { @@ -2693,7 +2693,7 @@ public static AWS.Cryptography.Primitives.DigestAlgorithm FromDafny_N3_aws__N12_ } public static software.amazon.cryptography.primitives.internaldafny.types._IDigestAlgorithm ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S27_SymmetricSignatureAlgorithm__M4_HMAC(AWS.Cryptography.Primitives.DigestAlgorithm value) { - return ToDafny_N3_aws__N12_cryptography__N10_primitives__S15_DigestAlgorithm(value); + return ToDafny_N3_aws__N12_cryptography__N10_primitives__S15_DigestAlgorithm((AWS.Cryptography.Primitives.DigestAlgorithm)value); } public static AWS.Cryptography.MaterialProviders.None FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S27_SymmetricSignatureAlgorithm__M4_None(software.amazon.cryptography.materialproviders.internaldafny.types._INone value) { @@ -2701,7 +2701,7 @@ public static AWS.Cryptography.MaterialProviders.None FromDafny_N3_aws__N12_cryp } public static software.amazon.cryptography.materialproviders.internaldafny.types._INone ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S27_SymmetricSignatureAlgorithm__M4_None(AWS.Cryptography.MaterialProviders.None value) { - return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S4_None(value); + return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S4_None((AWS.Cryptography.MaterialProviders.None)value); } public static System.IO.MemoryStream FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S24_UpdateUsageMetadataInput__M10_identifier(Dafny.ISequence value) { @@ -2709,15 +2709,15 @@ public static System.IO.MemoryStream FromDafny_N3_aws__N12_cryptography__N17_mat } public static Dafny.ISequence ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S24_UpdateUsageMetadataInput__M10_identifier(System.IO.MemoryStream value) { - return ToDafny_N6_smithy__N3_api__S4_Blob(value); + return ToDafny_N6_smithy__N3_api__S4_Blob((System.IO.MemoryStream)value); } - public static int FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S24_UpdateUsageMetadataInput__M9_bytesUsed(int value) + public static int? FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S24_UpdateUsageMetadataInput__M9_bytesUsed(int value) { return FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S15_PositiveInteger(value); } - public static int ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S24_UpdateUsageMetadataInput__M9_bytesUsed(int value) + public static int ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S24_UpdateUsageMetadataInput__M9_bytesUsed(int? value) { - return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S15_PositiveInteger(value); + return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S15_PositiveInteger((int)value); } public static AWS.Cryptography.MaterialProviders.AlgorithmSuiteId FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S38_ValidateCommitmentPolicyOnDecryptInput__M9_algorithm(software.amazon.cryptography.materialproviders.internaldafny.types._IAlgorithmSuiteId value) { @@ -2725,7 +2725,7 @@ public static AWS.Cryptography.MaterialProviders.AlgorithmSuiteId FromDafny_N3_a } public static software.amazon.cryptography.materialproviders.internaldafny.types._IAlgorithmSuiteId ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S38_ValidateCommitmentPolicyOnDecryptInput__M9_algorithm(AWS.Cryptography.MaterialProviders.AlgorithmSuiteId value) { - return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S16_AlgorithmSuiteId(value); + return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S16_AlgorithmSuiteId((AWS.Cryptography.MaterialProviders.AlgorithmSuiteId)value); } public static AWS.Cryptography.MaterialProviders.CommitmentPolicy FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S38_ValidateCommitmentPolicyOnDecryptInput__M16_commitmentPolicy(software.amazon.cryptography.materialproviders.internaldafny.types._ICommitmentPolicy value) { @@ -2733,7 +2733,7 @@ public static AWS.Cryptography.MaterialProviders.CommitmentPolicy FromDafny_N3_a } public static software.amazon.cryptography.materialproviders.internaldafny.types._ICommitmentPolicy ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S38_ValidateCommitmentPolicyOnDecryptInput__M16_commitmentPolicy(AWS.Cryptography.MaterialProviders.CommitmentPolicy value) { - return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S16_CommitmentPolicy(value); + return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S16_CommitmentPolicy((AWS.Cryptography.MaterialProviders.CommitmentPolicy)value); } public static AWS.Cryptography.MaterialProviders.AlgorithmSuiteId FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S38_ValidateCommitmentPolicyOnEncryptInput__M9_algorithm(software.amazon.cryptography.materialproviders.internaldafny.types._IAlgorithmSuiteId value) { @@ -2741,7 +2741,7 @@ public static AWS.Cryptography.MaterialProviders.AlgorithmSuiteId FromDafny_N3_a } public static software.amazon.cryptography.materialproviders.internaldafny.types._IAlgorithmSuiteId ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S38_ValidateCommitmentPolicyOnEncryptInput__M9_algorithm(AWS.Cryptography.MaterialProviders.AlgorithmSuiteId value) { - return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S16_AlgorithmSuiteId(value); + return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S16_AlgorithmSuiteId((AWS.Cryptography.MaterialProviders.AlgorithmSuiteId)value); } public static AWS.Cryptography.MaterialProviders.CommitmentPolicy FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S38_ValidateCommitmentPolicyOnEncryptInput__M16_commitmentPolicy(software.amazon.cryptography.materialproviders.internaldafny.types._ICommitmentPolicy value) { @@ -2749,7 +2749,7 @@ public static AWS.Cryptography.MaterialProviders.CommitmentPolicy FromDafny_N3_a } public static software.amazon.cryptography.materialproviders.internaldafny.types._ICommitmentPolicy ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S38_ValidateCommitmentPolicyOnEncryptInput__M16_commitmentPolicy(AWS.Cryptography.MaterialProviders.CommitmentPolicy value) { - return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S16_CommitmentPolicy(value); + return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S16_CommitmentPolicy((AWS.Cryptography.MaterialProviders.CommitmentPolicy)value); } public static AWS.Cryptography.MaterialProviders.DecryptionMaterials FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S39_ValidDecryptionMaterialsTransitionInput__M5_start(software.amazon.cryptography.materialproviders.internaldafny.types._IDecryptionMaterials value) { @@ -2757,7 +2757,7 @@ public static AWS.Cryptography.MaterialProviders.DecryptionMaterials FromDafny_N } public static software.amazon.cryptography.materialproviders.internaldafny.types._IDecryptionMaterials ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S39_ValidDecryptionMaterialsTransitionInput__M5_start(AWS.Cryptography.MaterialProviders.DecryptionMaterials value) { - return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S19_DecryptionMaterials(value); + return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S19_DecryptionMaterials((AWS.Cryptography.MaterialProviders.DecryptionMaterials)value); } public static AWS.Cryptography.MaterialProviders.DecryptionMaterials FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S39_ValidDecryptionMaterialsTransitionInput__M4_stop(software.amazon.cryptography.materialproviders.internaldafny.types._IDecryptionMaterials value) { @@ -2765,7 +2765,7 @@ public static AWS.Cryptography.MaterialProviders.DecryptionMaterials FromDafny_N } public static software.amazon.cryptography.materialproviders.internaldafny.types._IDecryptionMaterials ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S39_ValidDecryptionMaterialsTransitionInput__M4_stop(AWS.Cryptography.MaterialProviders.DecryptionMaterials value) { - return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S19_DecryptionMaterials(value); + return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S19_DecryptionMaterials((AWS.Cryptography.MaterialProviders.DecryptionMaterials)value); } public static AWS.Cryptography.MaterialProviders.EncryptionMaterials FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S39_ValidEncryptionMaterialsTransitionInput__M5_start(software.amazon.cryptography.materialproviders.internaldafny.types._IEncryptionMaterials value) { @@ -2773,7 +2773,7 @@ public static AWS.Cryptography.MaterialProviders.EncryptionMaterials FromDafny_N } public static software.amazon.cryptography.materialproviders.internaldafny.types._IEncryptionMaterials ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S39_ValidEncryptionMaterialsTransitionInput__M5_start(AWS.Cryptography.MaterialProviders.EncryptionMaterials value) { - return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S19_EncryptionMaterials(value); + return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S19_EncryptionMaterials((AWS.Cryptography.MaterialProviders.EncryptionMaterials)value); } public static AWS.Cryptography.MaterialProviders.EncryptionMaterials FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S39_ValidEncryptionMaterialsTransitionInput__M4_stop(software.amazon.cryptography.materialproviders.internaldafny.types._IEncryptionMaterials value) { @@ -2781,7 +2781,7 @@ public static AWS.Cryptography.MaterialProviders.EncryptionMaterials FromDafny_N } public static software.amazon.cryptography.materialproviders.internaldafny.types._IEncryptionMaterials ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S39_ValidEncryptionMaterialsTransitionInput__M4_stop(AWS.Cryptography.MaterialProviders.EncryptionMaterials value) { - return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S19_EncryptionMaterials(value); + return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S19_EncryptionMaterials((AWS.Cryptography.MaterialProviders.EncryptionMaterials)value); } public static System.IO.MemoryStream FromDafny_N6_smithy__N3_api__S4_Blob(Dafny.ISequence value) { @@ -3324,21 +3324,21 @@ public static software.amazon.cryptography.primitives.internaldafny.types._IDige if (AWS.Cryptography.Primitives.DigestAlgorithm.SHA_256.Equals(value)) return software.amazon.cryptography.primitives.internaldafny.types.DigestAlgorithm.create_SHA__256(); throw new System.ArgumentException("Invalid AWS.Cryptography.Primitives.DigestAlgorithm value"); } - public static int FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S12_DefaultCache__M13_entryCapacity(int value) + public static int? FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S12_DefaultCache__M13_entryCapacity(int value) { return FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S14_CountingNumber(value); } - public static int ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S12_DefaultCache__M13_entryCapacity(int value) + public static int ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S12_DefaultCache__M13_entryCapacity(int? value) { - return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S14_CountingNumber(value); + return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S14_CountingNumber((int)value); } - public static int FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S19_SingleThreadedCache__M13_entryCapacity(int value) + public static int? FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S19_SingleThreadedCache__M13_entryCapacity(int value) { return FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S14_CountingNumber(value); } - public static int ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S19_SingleThreadedCache__M13_entryCapacity(int value) + public static int ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S19_SingleThreadedCache__M13_entryCapacity(int? value) { - return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S14_CountingNumber(value); + return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S14_CountingNumber((int)value); } public static int? FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S19_SingleThreadedCache__M20_entryPruningTailSize(Wrappers_Compile._IOption value) { @@ -3348,13 +3348,13 @@ public static Wrappers_Compile._IOption ToDafny_N3_aws__N12_cryptography__N { return value == null ? Wrappers_Compile.Option.create_None() : Wrappers_Compile.Option.create_Some(ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S14_CountingNumber((int)value)); } - public static int FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S18_MultiThreadedCache__M13_entryCapacity(int value) + public static int? FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S18_MultiThreadedCache__M13_entryCapacity(int value) { return FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S14_CountingNumber(value); } - public static int ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S18_MultiThreadedCache__M13_entryCapacity(int value) + public static int ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S18_MultiThreadedCache__M13_entryCapacity(int? value) { - return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S14_CountingNumber(value); + return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S14_CountingNumber((int)value); } public static int? FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S18_MultiThreadedCache__M20_entryPruningTailSize(Wrappers_Compile._IOption value) { @@ -3364,13 +3364,13 @@ public static Wrappers_Compile._IOption ToDafny_N3_aws__N12_cryptography__N { return value == null ? Wrappers_Compile.Option.create_None() : Wrappers_Compile.Option.create_Some(ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S14_CountingNumber((int)value)); } - public static int FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S18_StormTrackingCache__M13_entryCapacity(int value) + public static int? FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S18_StormTrackingCache__M13_entryCapacity(int value) { return FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S14_CountingNumber(value); } - public static int ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S18_StormTrackingCache__M13_entryCapacity(int value) + public static int ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S18_StormTrackingCache__M13_entryCapacity(int? value) { - return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S14_CountingNumber(value); + return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S14_CountingNumber((int)value); } public static int? FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S18_StormTrackingCache__M20_entryPruningTailSize(Wrappers_Compile._IOption value) { @@ -3380,45 +3380,45 @@ public static Wrappers_Compile._IOption ToDafny_N3_aws__N12_cryptography__N { return value == null ? Wrappers_Compile.Option.create_None() : Wrappers_Compile.Option.create_Some(ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S14_CountingNumber((int)value)); } - public static int FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S18_StormTrackingCache__M11_gracePeriod(int value) + public static int? FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S18_StormTrackingCache__M11_gracePeriod(int value) { return FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S14_CountingNumber(value); } - public static int ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S18_StormTrackingCache__M11_gracePeriod(int value) + public static int ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S18_StormTrackingCache__M11_gracePeriod(int? value) { - return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S14_CountingNumber(value); + return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S14_CountingNumber((int)value); } - public static int FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S18_StormTrackingCache__M13_graceInterval(int value) + public static int? FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S18_StormTrackingCache__M13_graceInterval(int value) { return FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S14_CountingNumber(value); } - public static int ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S18_StormTrackingCache__M13_graceInterval(int value) + public static int ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S18_StormTrackingCache__M13_graceInterval(int? value) { - return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S14_CountingNumber(value); + return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S14_CountingNumber((int)value); } - public static int FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S18_StormTrackingCache__M6_fanOut(int value) + public static int? FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S18_StormTrackingCache__M6_fanOut(int value) { return FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S14_CountingNumber(value); } - public static int ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S18_StormTrackingCache__M6_fanOut(int value) + public static int ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S18_StormTrackingCache__M6_fanOut(int? value) { - return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S14_CountingNumber(value); + return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S14_CountingNumber((int)value); } - public static int FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S18_StormTrackingCache__M11_inFlightTTL(int value) + public static int? FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S18_StormTrackingCache__M11_inFlightTTL(int value) { return FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S14_CountingNumber(value); } - public static int ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S18_StormTrackingCache__M11_inFlightTTL(int value) + public static int ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S18_StormTrackingCache__M11_inFlightTTL(int? value) { - return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S14_CountingNumber(value); + return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S14_CountingNumber((int)value); } - public static int FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S18_StormTrackingCache__M10_sleepMilli(int value) + public static int? FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S18_StormTrackingCache__M10_sleepMilli(int value) { return FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S14_CountingNumber(value); } - public static int ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S18_StormTrackingCache__M10_sleepMilli(int value) + public static int ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S18_StormTrackingCache__M10_sleepMilli(int? value) { - return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S14_CountingNumber(value); + return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S14_CountingNumber((int)value); } public static AWS.Cryptography.MaterialProviders.TimeUnits FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S18_StormTrackingCache__M9_timeUnits(Wrappers_Compile._IOption value) { @@ -3434,7 +3434,7 @@ public static System.Collections.Generic.List FromDafny_N3_aws__N12_cryp } public static Dafny.ISequence> ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S15_DiscoveryFilter__M10_accountIds(System.Collections.Generic.List value) { - return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S13_AccountIdList(value); + return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S13_AccountIdList((System.Collections.Generic.List)value); } public static string FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S15_DiscoveryFilter__M9_partition(Dafny.ISequence value) { @@ -3442,7 +3442,7 @@ public static string FromDafny_N3_aws__N12_cryptography__N17_materialProviders__ } public static Dafny.ISequence ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S15_DiscoveryFilter__M9_partition(string value) { - return ToDafny_N6_smithy__N3_api__S6_String(value); + return ToDafny_N6_smithy__N3_api__S6_String((string)value); } public static string FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S14_GrantTokenList__M6_member(Dafny.ISequence value) { @@ -3450,7 +3450,7 @@ public static string FromDafny_N3_aws__N12_cryptography__N17_materialProviders__ } public static Dafny.ISequence ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S14_GrantTokenList__M6_member(string value) { - return ToDafny_N6_smithy__N3_api__S6_String(value); + return ToDafny_N6_smithy__N3_api__S6_String((string)value); } public static string FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S10_RegionList__M6_member(Dafny.ISequence value) { @@ -3458,7 +3458,7 @@ public static string FromDafny_N3_aws__N12_cryptography__N17_materialProviders__ } public static Dafny.ISequence ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S10_RegionList__M6_member(string value) { - return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S6_Region(value); + return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S6_Region((string)value); } public static string FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S12_KmsKeyIdList__M6_member(Dafny.ISequence value) { @@ -3466,7 +3466,7 @@ public static string FromDafny_N3_aws__N12_cryptography__N17_materialProviders__ } public static Dafny.ISequence ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S12_KmsKeyIdList__M6_member(string value) { - return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S8_KmsKeyId(value); + return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S8_KmsKeyId((string)value); } public static AWS.Cryptography.MaterialProviders.IKeyring FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S11_KeyringList__M6_member(software.amazon.cryptography.materialproviders.internaldafny.types.IKeyring value) { @@ -3474,7 +3474,7 @@ public static AWS.Cryptography.MaterialProviders.IKeyring FromDafny_N3_aws__N12_ } public static software.amazon.cryptography.materialproviders.internaldafny.types.IKeyring ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S11_KeyringList__M6_member(AWS.Cryptography.MaterialProviders.IKeyring value) { - return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S16_KeyringReference(value); + return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S16_KeyringReference((AWS.Cryptography.MaterialProviders.IKeyring)value); } public static string FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S21_EncryptionContextKeys__M6_member(Dafny.ISequence value) { @@ -3482,7 +3482,7 @@ public static string FromDafny_N3_aws__N12_cryptography__N17_materialProviders__ } public static Dafny.ISequence ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S21_EncryptionContextKeys__M6_member(string value) { - return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S9_Utf8Bytes(value); + return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S9_Utf8Bytes((string)value); } public static string FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S17_EncryptionContext__M3_key(Dafny.ISequence value) { @@ -3490,7 +3490,7 @@ public static string FromDafny_N3_aws__N12_cryptography__N17_materialProviders__ } public static Dafny.ISequence ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S17_EncryptionContext__M3_key(string value) { - return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S9_Utf8Bytes(value); + return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S9_Utf8Bytes((string)value); } public static string FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S17_EncryptionContext__M5_value(Dafny.ISequence value) { @@ -3498,7 +3498,7 @@ public static string FromDafny_N3_aws__N12_cryptography__N17_materialProviders__ } public static Dafny.ISequence ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S17_EncryptionContext__M5_value(string value) { - return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S9_Utf8Bytes(value); + return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S9_Utf8Bytes((string)value); } public static AWS.Cryptography.MaterialProviders.EncryptedDataKey FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S20_EncryptedDataKeyList__M6_member(software.amazon.cryptography.materialproviders.internaldafny.types._IEncryptedDataKey value) { @@ -3506,7 +3506,7 @@ public static AWS.Cryptography.MaterialProviders.EncryptedDataKey FromDafny_N3_a } public static software.amazon.cryptography.materialproviders.internaldafny.types._IEncryptedDataKey ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S20_EncryptedDataKeyList__M6_member(AWS.Cryptography.MaterialProviders.EncryptedDataKey value) { - return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S16_EncryptedDataKey(value); + return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S16_EncryptedDataKey((AWS.Cryptography.MaterialProviders.EncryptedDataKey)value); } public static AWS.Cryptography.Primitives.DigestAlgorithm FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S4_HKDF__M4_hmac(software.amazon.cryptography.primitives.internaldafny.types._IDigestAlgorithm value) { @@ -3514,31 +3514,31 @@ public static AWS.Cryptography.Primitives.DigestAlgorithm FromDafny_N3_aws__N12_ } public static software.amazon.cryptography.primitives.internaldafny.types._IDigestAlgorithm ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S4_HKDF__M4_hmac(AWS.Cryptography.Primitives.DigestAlgorithm value) { - return ToDafny_N3_aws__N12_cryptography__N10_primitives__S15_DigestAlgorithm(value); + return ToDafny_N3_aws__N12_cryptography__N10_primitives__S15_DigestAlgorithm((AWS.Cryptography.Primitives.DigestAlgorithm)value); } - public static int FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S4_HKDF__M10_saltLength(int value) + public static int? FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S4_HKDF__M10_saltLength(int value) { return FromDafny_N3_aws__N12_cryptography__N10_primitives__S15_PositiveInteger(value); } - public static int ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S4_HKDF__M10_saltLength(int value) + public static int ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S4_HKDF__M10_saltLength(int? value) { - return ToDafny_N3_aws__N12_cryptography__N10_primitives__S15_PositiveInteger(value); + return ToDafny_N3_aws__N12_cryptography__N10_primitives__S15_PositiveInteger((int)value); } - public static int FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S4_HKDF__M14_inputKeyLength(int value) + public static int? FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S4_HKDF__M14_inputKeyLength(int value) { return FromDafny_N3_aws__N12_cryptography__N10_primitives__S18_SymmetricKeyLength(value); } - public static int ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S4_HKDF__M14_inputKeyLength(int value) + public static int ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S4_HKDF__M14_inputKeyLength(int? value) { - return ToDafny_N3_aws__N12_cryptography__N10_primitives__S18_SymmetricKeyLength(value); + return ToDafny_N3_aws__N12_cryptography__N10_primitives__S18_SymmetricKeyLength((int)value); } - public static int FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S4_HKDF__M15_outputKeyLength(int value) + public static int? FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S4_HKDF__M15_outputKeyLength(int value) { return FromDafny_N3_aws__N12_cryptography__N10_primitives__S18_SymmetricKeyLength(value); } - public static int ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S4_HKDF__M15_outputKeyLength(int value) + public static int ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S4_HKDF__M15_outputKeyLength(int? value) { - return ToDafny_N3_aws__N12_cryptography__N10_primitives__S18_SymmetricKeyLength(value); + return ToDafny_N3_aws__N12_cryptography__N10_primitives__S18_SymmetricKeyLength((int)value); } public static AWS.Cryptography.MaterialProviders.DerivationAlgorithm FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S23_IntermediateKeyWrapping__M19_keyEncryptionKeyKdf(software.amazon.cryptography.materialproviders.internaldafny.types._IDerivationAlgorithm value) { @@ -3546,7 +3546,7 @@ public static AWS.Cryptography.MaterialProviders.DerivationAlgorithm FromDafny_N } public static software.amazon.cryptography.materialproviders.internaldafny.types._IDerivationAlgorithm ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S23_IntermediateKeyWrapping__M19_keyEncryptionKeyKdf(AWS.Cryptography.MaterialProviders.DerivationAlgorithm value) { - return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S19_DerivationAlgorithm(value); + return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S19_DerivationAlgorithm((AWS.Cryptography.MaterialProviders.DerivationAlgorithm)value); } public static AWS.Cryptography.MaterialProviders.DerivationAlgorithm FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S23_IntermediateKeyWrapping__M9_macKeyKdf(software.amazon.cryptography.materialproviders.internaldafny.types._IDerivationAlgorithm value) { @@ -3554,7 +3554,7 @@ public static AWS.Cryptography.MaterialProviders.DerivationAlgorithm FromDafny_N } public static software.amazon.cryptography.materialproviders.internaldafny.types._IDerivationAlgorithm ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S23_IntermediateKeyWrapping__M9_macKeyKdf(AWS.Cryptography.MaterialProviders.DerivationAlgorithm value) { - return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S19_DerivationAlgorithm(value); + return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S19_DerivationAlgorithm((AWS.Cryptography.MaterialProviders.DerivationAlgorithm)value); } public static AWS.Cryptography.MaterialProviders.Encrypt FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S23_IntermediateKeyWrapping__M19_pdkEncryptAlgorithm(software.amazon.cryptography.materialproviders.internaldafny.types._IEncrypt value) { @@ -3562,31 +3562,31 @@ public static AWS.Cryptography.MaterialProviders.Encrypt FromDafny_N3_aws__N12_c } public static software.amazon.cryptography.materialproviders.internaldafny.types._IEncrypt ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S23_IntermediateKeyWrapping__M19_pdkEncryptAlgorithm(AWS.Cryptography.MaterialProviders.Encrypt value) { - return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S7_Encrypt(value); + return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S7_Encrypt((AWS.Cryptography.MaterialProviders.Encrypt)value); } - public static int FromDafny_N3_aws__N12_cryptography__N10_primitives__S7_AES_GCM__M9_keyLength(int value) + public static int? FromDafny_N3_aws__N12_cryptography__N10_primitives__S7_AES_GCM__M9_keyLength(int value) { return FromDafny_N3_aws__N12_cryptography__N10_primitives__S18_SymmetricKeyLength(value); } - public static int ToDafny_N3_aws__N12_cryptography__N10_primitives__S7_AES_GCM__M9_keyLength(int value) + public static int ToDafny_N3_aws__N12_cryptography__N10_primitives__S7_AES_GCM__M9_keyLength(int? value) { - return ToDafny_N3_aws__N12_cryptography__N10_primitives__S18_SymmetricKeyLength(value); + return ToDafny_N3_aws__N12_cryptography__N10_primitives__S18_SymmetricKeyLength((int)value); } - public static int FromDafny_N3_aws__N12_cryptography__N10_primitives__S7_AES_GCM__M9_tagLength(int value) + public static int? FromDafny_N3_aws__N12_cryptography__N10_primitives__S7_AES_GCM__M9_tagLength(int value) { return FromDafny_N3_aws__N12_cryptography__N10_primitives__S10_Uint8Bytes(value); } - public static int ToDafny_N3_aws__N12_cryptography__N10_primitives__S7_AES_GCM__M9_tagLength(int value) + public static int ToDafny_N3_aws__N12_cryptography__N10_primitives__S7_AES_GCM__M9_tagLength(int? value) { - return ToDafny_N3_aws__N12_cryptography__N10_primitives__S10_Uint8Bytes(value); + return ToDafny_N3_aws__N12_cryptography__N10_primitives__S10_Uint8Bytes((int)value); } - public static int FromDafny_N3_aws__N12_cryptography__N10_primitives__S7_AES_GCM__M8_ivLength(int value) + public static int? FromDafny_N3_aws__N12_cryptography__N10_primitives__S7_AES_GCM__M8_ivLength(int value) { return FromDafny_N3_aws__N12_cryptography__N10_primitives__S9_Uint8Bits(value); } - public static int ToDafny_N3_aws__N12_cryptography__N10_primitives__S7_AES_GCM__M8_ivLength(int value) + public static int ToDafny_N3_aws__N12_cryptography__N10_primitives__S7_AES_GCM__M8_ivLength(int? value) { - return ToDafny_N3_aws__N12_cryptography__N10_primitives__S9_Uint8Bits(value); + return ToDafny_N3_aws__N12_cryptography__N10_primitives__S9_Uint8Bits((int)value); } public static System.IO.MemoryStream FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S23_SymmetricSigningKeyList__M6_member(Dafny.ISequence value) { @@ -3594,7 +3594,7 @@ public static System.IO.MemoryStream FromDafny_N3_aws__N12_cryptography__N17_mat } public static Dafny.ISequence ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S23_SymmetricSigningKeyList__M6_member(System.IO.MemoryStream value) { - return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S6_Secret(value); + return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S6_Secret((System.IO.MemoryStream)value); } public static string FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S26_KmsPublicKeyDiscoveryInput__M22_recipientKmsIdentifier(Dafny.ISequence value) { @@ -3602,7 +3602,7 @@ public static string FromDafny_N3_aws__N12_cryptography__N17_materialProviders__ } public static Dafny.ISequence ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S26_KmsPublicKeyDiscoveryInput__M22_recipientKmsIdentifier(string value) { - return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S8_KmsKeyId(value); + return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S8_KmsKeyId((string)value); } public static string FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S35_KmsPrivateKeyToStaticPublicKeyInput__M19_senderKmsIdentifier(Dafny.ISequence value) { @@ -3610,7 +3610,7 @@ public static string FromDafny_N3_aws__N12_cryptography__N17_materialProviders__ } public static Dafny.ISequence ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S35_KmsPrivateKeyToStaticPublicKeyInput__M19_senderKmsIdentifier(string value) { - return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S8_KmsKeyId(value); + return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S8_KmsKeyId((string)value); } public static System.IO.MemoryStream FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S35_KmsPrivateKeyToStaticPublicKeyInput__M15_senderPublicKey(Wrappers_Compile._IOption> value) { @@ -3626,7 +3626,7 @@ public static System.IO.MemoryStream FromDafny_N3_aws__N12_cryptography__N17_mat } public static Dafny.ISequence ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S35_KmsPrivateKeyToStaticPublicKeyInput__M18_recipientPublicKey(System.IO.MemoryStream value) { - return ToDafny_N6_smithy__N3_api__S4_Blob(value); + return ToDafny_N6_smithy__N3_api__S4_Blob((System.IO.MemoryStream)value); } public static string FromDafny_N3_aws__N12_cryptography__N8_keyStore__S18_BranchKeyMaterials__M19_branchKeyIdentifier(Dafny.ISequence value) { @@ -3634,7 +3634,7 @@ public static string FromDafny_N3_aws__N12_cryptography__N8_keyStore__S18_Branch } public static Dafny.ISequence ToDafny_N3_aws__N12_cryptography__N8_keyStore__S18_BranchKeyMaterials__M19_branchKeyIdentifier(string value) { - return ToDafny_N6_smithy__N3_api__S6_String(value); + return ToDafny_N6_smithy__N3_api__S6_String((string)value); } public static string FromDafny_N3_aws__N12_cryptography__N8_keyStore__S18_BranchKeyMaterials__M16_branchKeyVersion(Dafny.ISequence value) { @@ -3642,7 +3642,7 @@ public static string FromDafny_N3_aws__N12_cryptography__N8_keyStore__S18_Branch } public static Dafny.ISequence ToDafny_N3_aws__N12_cryptography__N8_keyStore__S18_BranchKeyMaterials__M16_branchKeyVersion(string value) { - return ToDafny_N3_aws__N12_cryptography__N8_keyStore__S9_Utf8Bytes(value); + return ToDafny_N3_aws__N12_cryptography__N8_keyStore__S9_Utf8Bytes((string)value); } public static System.Collections.Generic.Dictionary FromDafny_N3_aws__N12_cryptography__N8_keyStore__S18_BranchKeyMaterials__M17_encryptionContext(Dafny.IMap, Dafny.ISequence> value) { @@ -3650,7 +3650,7 @@ public static System.Collections.Generic.Dictionary FromDafny_N3 } public static Dafny.IMap, Dafny.ISequence> ToDafny_N3_aws__N12_cryptography__N8_keyStore__S18_BranchKeyMaterials__M17_encryptionContext(System.Collections.Generic.Dictionary value) { - return ToDafny_N3_aws__N12_cryptography__N8_keyStore__S17_EncryptionContext(value); + return ToDafny_N3_aws__N12_cryptography__N8_keyStore__S17_EncryptionContext((System.Collections.Generic.Dictionary)value); } public static System.IO.MemoryStream FromDafny_N3_aws__N12_cryptography__N8_keyStore__S18_BranchKeyMaterials__M9_branchKey(Dafny.ISequence value) { @@ -3658,7 +3658,7 @@ public static System.IO.MemoryStream FromDafny_N3_aws__N12_cryptography__N8_keyS } public static Dafny.ISequence ToDafny_N3_aws__N12_cryptography__N8_keyStore__S18_BranchKeyMaterials__M9_branchKey(System.IO.MemoryStream value) { - return ToDafny_N3_aws__N12_cryptography__N8_keyStore__S6_Secret(value); + return ToDafny_N3_aws__N12_cryptography__N8_keyStore__S6_Secret((System.IO.MemoryStream)value); } public static string FromDafny_N3_aws__N12_cryptography__N8_keyStore__S18_BeaconKeyMaterials__M19_beaconKeyIdentifier(Dafny.ISequence value) { @@ -3666,7 +3666,7 @@ public static string FromDafny_N3_aws__N12_cryptography__N8_keyStore__S18_Beacon } public static Dafny.ISequence ToDafny_N3_aws__N12_cryptography__N8_keyStore__S18_BeaconKeyMaterials__M19_beaconKeyIdentifier(string value) { - return ToDafny_N6_smithy__N3_api__S6_String(value); + return ToDafny_N6_smithy__N3_api__S6_String((string)value); } public static System.Collections.Generic.Dictionary FromDafny_N3_aws__N12_cryptography__N8_keyStore__S18_BeaconKeyMaterials__M17_encryptionContext(Dafny.IMap, Dafny.ISequence> value) { @@ -3674,7 +3674,7 @@ public static System.Collections.Generic.Dictionary FromDafny_N3 } public static Dafny.IMap, Dafny.ISequence> ToDafny_N3_aws__N12_cryptography__N8_keyStore__S18_BeaconKeyMaterials__M17_encryptionContext(System.Collections.Generic.Dictionary value) { - return ToDafny_N3_aws__N12_cryptography__N8_keyStore__S17_EncryptionContext(value); + return ToDafny_N3_aws__N12_cryptography__N8_keyStore__S17_EncryptionContext((System.Collections.Generic.Dictionary)value); } public static System.IO.MemoryStream FromDafny_N3_aws__N12_cryptography__N8_keyStore__S18_BeaconKeyMaterials__M9_beaconKey(Wrappers_Compile._IOption> value) { @@ -3698,7 +3698,7 @@ public static System.IO.MemoryStream FromDafny_N3_aws__N12_cryptography__N17_mat } public static Dafny.ISequence ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S23_PublicKeyDiscoveryInput__M25_recipientStaticPrivateKey(System.IO.MemoryStream value) { - return ToDafny_N6_smithy__N3_api__S4_Blob(value); + return ToDafny_N6_smithy__N3_api__S4_Blob((System.IO.MemoryStream)value); } public static System.IO.MemoryStream FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S35_RawPrivateKeyToStaticPublicKeyInput__M22_senderStaticPrivateKey(Dafny.ISequence value) { @@ -3706,7 +3706,7 @@ public static System.IO.MemoryStream FromDafny_N3_aws__N12_cryptography__N17_mat } public static Dafny.ISequence ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S35_RawPrivateKeyToStaticPublicKeyInput__M22_senderStaticPrivateKey(System.IO.MemoryStream value) { - return ToDafny_N6_smithy__N3_api__S4_Blob(value); + return ToDafny_N6_smithy__N3_api__S4_Blob((System.IO.MemoryStream)value); } public static System.IO.MemoryStream FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S35_RawPrivateKeyToStaticPublicKeyInput__M18_recipientPublicKey(Dafny.ISequence value) { @@ -3714,7 +3714,7 @@ public static System.IO.MemoryStream FromDafny_N3_aws__N12_cryptography__N17_mat } public static Dafny.ISequence ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S35_RawPrivateKeyToStaticPublicKeyInput__M18_recipientPublicKey(System.IO.MemoryStream value) { - return ToDafny_N6_smithy__N3_api__S4_Blob(value); + return ToDafny_N6_smithy__N3_api__S4_Blob((System.IO.MemoryStream)value); } public static System.IO.MemoryStream FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S41_EphemeralPrivateKeyToStaticPublicKeyInput__M18_recipientPublicKey(Dafny.ISequence value) { @@ -3722,7 +3722,7 @@ public static System.IO.MemoryStream FromDafny_N3_aws__N12_cryptography__N17_mat } public static Dafny.ISequence ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S41_EphemeralPrivateKeyToStaticPublicKeyInput__M18_recipientPublicKey(System.IO.MemoryStream value) { - return ToDafny_N6_smithy__N3_api__S4_Blob(value); + return ToDafny_N6_smithy__N3_api__S4_Blob((System.IO.MemoryStream)value); } public static AWS.Cryptography.Primitives.ECDSASignatureAlgorithm FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S5_ECDSA__M5_curve(software.amazon.cryptography.primitives.internaldafny.types._IECDSASignatureAlgorithm value) { @@ -3730,7 +3730,7 @@ public static AWS.Cryptography.Primitives.ECDSASignatureAlgorithm FromDafny_N3_a } public static software.amazon.cryptography.primitives.internaldafny.types._IECDSASignatureAlgorithm ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S5_ECDSA__M5_curve(AWS.Cryptography.Primitives.ECDSASignatureAlgorithm value) { - return ToDafny_N3_aws__N12_cryptography__N10_primitives__S23_ECDSASignatureAlgorithm(value); + return ToDafny_N3_aws__N12_cryptography__N10_primitives__S23_ECDSASignatureAlgorithm((AWS.Cryptography.Primitives.ECDSASignatureAlgorithm)value); } public static int FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S14_CountingNumber(int value) { @@ -3863,7 +3863,7 @@ public static string FromDafny_N3_aws__N12_cryptography__N17_materialProviders__ } public static Dafny.ISequence ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S13_AccountIdList__M6_member(string value) { - return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S9_AccountId(value); + return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S9_AccountId((string)value); } public static string FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S16_EncryptedDataKey__M13_keyProviderId(Dafny.ISequence value) { @@ -3871,7 +3871,7 @@ public static string FromDafny_N3_aws__N12_cryptography__N17_materialProviders__ } public static Dafny.ISequence ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S16_EncryptedDataKey__M13_keyProviderId(string value) { - return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S9_Utf8Bytes(value); + return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S9_Utf8Bytes((string)value); } public static System.IO.MemoryStream FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S16_EncryptedDataKey__M15_keyProviderInfo(Dafny.ISequence value) { @@ -3879,7 +3879,7 @@ public static System.IO.MemoryStream FromDafny_N3_aws__N12_cryptography__N17_mat } public static Dafny.ISequence ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S16_EncryptedDataKey__M15_keyProviderInfo(System.IO.MemoryStream value) { - return ToDafny_N6_smithy__N3_api__S4_Blob(value); + return ToDafny_N6_smithy__N3_api__S4_Blob((System.IO.MemoryStream)value); } public static System.IO.MemoryStream FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S16_EncryptedDataKey__M10_ciphertext(Dafny.ISequence value) { @@ -3887,7 +3887,7 @@ public static System.IO.MemoryStream FromDafny_N3_aws__N12_cryptography__N17_mat } public static Dafny.ISequence ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S16_EncryptedDataKey__M10_ciphertext(System.IO.MemoryStream value) { - return ToDafny_N6_smithy__N3_api__S4_Blob(value); + return ToDafny_N6_smithy__N3_api__S4_Blob((System.IO.MemoryStream)value); } public static string FromDafny_N3_aws__N12_cryptography__N8_keyStore__S17_EncryptionContext__M3_key(Dafny.ISequence value) { @@ -3895,7 +3895,7 @@ public static string FromDafny_N3_aws__N12_cryptography__N8_keyStore__S17_Encryp } public static Dafny.ISequence ToDafny_N3_aws__N12_cryptography__N8_keyStore__S17_EncryptionContext__M3_key(string value) { - return ToDafny_N3_aws__N12_cryptography__N8_keyStore__S9_Utf8Bytes(value); + return ToDafny_N3_aws__N12_cryptography__N8_keyStore__S9_Utf8Bytes((string)value); } public static string FromDafny_N3_aws__N12_cryptography__N8_keyStore__S17_EncryptionContext__M5_value(Dafny.ISequence value) { @@ -3903,7 +3903,7 @@ public static string FromDafny_N3_aws__N12_cryptography__N8_keyStore__S17_Encryp } public static Dafny.ISequence ToDafny_N3_aws__N12_cryptography__N8_keyStore__S17_EncryptionContext__M5_value(string value) { - return ToDafny_N3_aws__N12_cryptography__N8_keyStore__S9_Utf8Bytes(value); + return ToDafny_N3_aws__N12_cryptography__N8_keyStore__S9_Utf8Bytes((string)value); } public static string FromDafny_N3_aws__N12_cryptography__N8_keyStore__S10_HmacKeyMap__M3_key(Dafny.ISequence value) { @@ -3911,7 +3911,7 @@ public static string FromDafny_N3_aws__N12_cryptography__N8_keyStore__S10_HmacKe } public static Dafny.ISequence ToDafny_N3_aws__N12_cryptography__N8_keyStore__S10_HmacKeyMap__M3_key(string value) { - return ToDafny_N6_smithy__N3_api__S6_String(value); + return ToDafny_N6_smithy__N3_api__S6_String((string)value); } public static System.IO.MemoryStream FromDafny_N3_aws__N12_cryptography__N8_keyStore__S10_HmacKeyMap__M5_value(Dafny.ISequence value) { @@ -3919,7 +3919,7 @@ public static System.IO.MemoryStream FromDafny_N3_aws__N12_cryptography__N8_keyS } public static Dafny.ISequence ToDafny_N3_aws__N12_cryptography__N8_keyStore__S10_HmacKeyMap__M5_value(System.IO.MemoryStream value) { - return ToDafny_N3_aws__N12_cryptography__N8_keyStore__S6_Secret(value); + return ToDafny_N3_aws__N12_cryptography__N8_keyStore__S6_Secret((System.IO.MemoryStream)value); } public static string FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S9_AccountId(Dafny.ISequence value) { diff --git a/AwsCryptographicMaterialProviders/runtimes/net/Generated/AwsCryptographyKeyStore/TypeConversion.cs b/AwsCryptographicMaterialProviders/runtimes/net/Generated/AwsCryptographyKeyStore/TypeConversion.cs index 9c9b351d5..1412d993b 100644 --- a/AwsCryptographicMaterialProviders/runtimes/net/Generated/AwsCryptographyKeyStore/TypeConversion.cs +++ b/AwsCryptographicMaterialProviders/runtimes/net/Generated/AwsCryptographyKeyStore/TypeConversion.cs @@ -165,22 +165,22 @@ public static AWS.Cryptography.KeyStore.KMSConfiguration FromDafny_N3_aws__N12_c software.amazon.cryptography.keystore.internaldafny.types.KMSConfiguration concrete = (software.amazon.cryptography.keystore.internaldafny.types.KMSConfiguration)value; var converted = new AWS.Cryptography.KeyStore.KMSConfiguration(); if (value.is_kmsKeyArn) { - converted.KmsKeyArn = FromDafny_N3_aws__N12_cryptography__N8_keyStore__S16_KMSConfiguration__M9_kmsKeyArn(concrete.dtor_kmsKeyArn); + converted.KmsKeyArn = (string)(FromDafny_N3_aws__N12_cryptography__N8_keyStore__S16_KMSConfiguration__M9_kmsKeyArn(concrete.dtor_kmsKeyArn)); return converted; } if (value.is_kmsMRKeyArn) { - converted.KmsMRKeyArn = FromDafny_N3_aws__N12_cryptography__N8_keyStore__S16_KMSConfiguration__M11_kmsMRKeyArn(concrete.dtor_kmsMRKeyArn); + converted.KmsMRKeyArn = (string)(FromDafny_N3_aws__N12_cryptography__N8_keyStore__S16_KMSConfiguration__M11_kmsMRKeyArn(concrete.dtor_kmsMRKeyArn)); return converted; } if (value.is_discovery) { - converted.Discovery = FromDafny_N3_aws__N12_cryptography__N8_keyStore__S16_KMSConfiguration__M9_discovery(concrete.dtor_discovery); + converted.Discovery = (AWS.Cryptography.KeyStore.Discovery)(FromDafny_N3_aws__N12_cryptography__N8_keyStore__S16_KMSConfiguration__M9_discovery(concrete.dtor_discovery)); return converted; } if (value.is_mrDiscovery) { - converted.MrDiscovery = FromDafny_N3_aws__N12_cryptography__N8_keyStore__S16_KMSConfiguration__M11_mrDiscovery(concrete.dtor_mrDiscovery); + converted.MrDiscovery = (AWS.Cryptography.KeyStore.MRDiscovery)(FromDafny_N3_aws__N12_cryptography__N8_keyStore__S16_KMSConfiguration__M11_mrDiscovery(concrete.dtor_mrDiscovery)); return converted; } throw new System.ArgumentException("Invalid AWS.Cryptography.KeyStore.KMSConfiguration state"); @@ -247,7 +247,7 @@ public static string FromDafny_N3_aws__N12_cryptography__N8_keyStore__S15_Create } public static Dafny.ISequence ToDafny_N3_aws__N12_cryptography__N8_keyStore__S15_CreateKeyOutput__M19_branchKeyIdentifier(string value) { - return ToDafny_N6_smithy__N3_api__S6_String(value); + return ToDafny_N6_smithy__N3_api__S6_String((string)value); } public static string FromDafny_N3_aws__N12_cryptography__N8_keyStore__S20_CreateKeyStoreOutput__M8_tableArn(Dafny.ISequence value) { @@ -255,7 +255,7 @@ public static string FromDafny_N3_aws__N12_cryptography__N8_keyStore__S20_Create } public static Dafny.ISequence ToDafny_N3_aws__N12_cryptography__N8_keyStore__S20_CreateKeyStoreOutput__M8_tableArn(string value) { - return ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S8_TableArn(value); + return ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S8_TableArn((string)value); } public static string FromDafny_N3_aws__N12_cryptography__N8_keyStore__S23_GetActiveBranchKeyInput__M19_branchKeyIdentifier(Dafny.ISequence value) { @@ -263,7 +263,7 @@ public static string FromDafny_N3_aws__N12_cryptography__N8_keyStore__S23_GetAct } public static Dafny.ISequence ToDafny_N3_aws__N12_cryptography__N8_keyStore__S23_GetActiveBranchKeyInput__M19_branchKeyIdentifier(string value) { - return ToDafny_N6_smithy__N3_api__S6_String(value); + return ToDafny_N6_smithy__N3_api__S6_String((string)value); } public static AWS.Cryptography.KeyStore.BranchKeyMaterials FromDafny_N3_aws__N12_cryptography__N8_keyStore__S24_GetActiveBranchKeyOutput__M18_branchKeyMaterials(software.amazon.cryptography.keystore.internaldafny.types._IBranchKeyMaterials value) { @@ -271,7 +271,7 @@ public static AWS.Cryptography.KeyStore.BranchKeyMaterials FromDafny_N3_aws__N12 } public static software.amazon.cryptography.keystore.internaldafny.types._IBranchKeyMaterials ToDafny_N3_aws__N12_cryptography__N8_keyStore__S24_GetActiveBranchKeyOutput__M18_branchKeyMaterials(AWS.Cryptography.KeyStore.BranchKeyMaterials value) { - return ToDafny_N3_aws__N12_cryptography__N8_keyStore__S18_BranchKeyMaterials(value); + return ToDafny_N3_aws__N12_cryptography__N8_keyStore__S18_BranchKeyMaterials((AWS.Cryptography.KeyStore.BranchKeyMaterials)value); } public static string FromDafny_N3_aws__N12_cryptography__N8_keyStore__S17_GetBeaconKeyInput__M19_branchKeyIdentifier(Dafny.ISequence value) { @@ -279,7 +279,7 @@ public static string FromDafny_N3_aws__N12_cryptography__N8_keyStore__S17_GetBea } public static Dafny.ISequence ToDafny_N3_aws__N12_cryptography__N8_keyStore__S17_GetBeaconKeyInput__M19_branchKeyIdentifier(string value) { - return ToDafny_N6_smithy__N3_api__S6_String(value); + return ToDafny_N6_smithy__N3_api__S6_String((string)value); } public static AWS.Cryptography.KeyStore.BeaconKeyMaterials FromDafny_N3_aws__N12_cryptography__N8_keyStore__S18_GetBeaconKeyOutput__M18_beaconKeyMaterials(software.amazon.cryptography.keystore.internaldafny.types._IBeaconKeyMaterials value) { @@ -287,7 +287,7 @@ public static AWS.Cryptography.KeyStore.BeaconKeyMaterials FromDafny_N3_aws__N12 } public static software.amazon.cryptography.keystore.internaldafny.types._IBeaconKeyMaterials ToDafny_N3_aws__N12_cryptography__N8_keyStore__S18_GetBeaconKeyOutput__M18_beaconKeyMaterials(AWS.Cryptography.KeyStore.BeaconKeyMaterials value) { - return ToDafny_N3_aws__N12_cryptography__N8_keyStore__S18_BeaconKeyMaterials(value); + return ToDafny_N3_aws__N12_cryptography__N8_keyStore__S18_BeaconKeyMaterials((AWS.Cryptography.KeyStore.BeaconKeyMaterials)value); } public static string FromDafny_N3_aws__N12_cryptography__N8_keyStore__S24_GetBranchKeyVersionInput__M19_branchKeyIdentifier(Dafny.ISequence value) { @@ -295,7 +295,7 @@ public static string FromDafny_N3_aws__N12_cryptography__N8_keyStore__S24_GetBra } public static Dafny.ISequence ToDafny_N3_aws__N12_cryptography__N8_keyStore__S24_GetBranchKeyVersionInput__M19_branchKeyIdentifier(string value) { - return ToDafny_N6_smithy__N3_api__S6_String(value); + return ToDafny_N6_smithy__N3_api__S6_String((string)value); } public static string FromDafny_N3_aws__N12_cryptography__N8_keyStore__S24_GetBranchKeyVersionInput__M16_branchKeyVersion(Dafny.ISequence value) { @@ -303,7 +303,7 @@ public static string FromDafny_N3_aws__N12_cryptography__N8_keyStore__S24_GetBra } public static Dafny.ISequence ToDafny_N3_aws__N12_cryptography__N8_keyStore__S24_GetBranchKeyVersionInput__M16_branchKeyVersion(string value) { - return ToDafny_N6_smithy__N3_api__S6_String(value); + return ToDafny_N6_smithy__N3_api__S6_String((string)value); } public static AWS.Cryptography.KeyStore.BranchKeyMaterials FromDafny_N3_aws__N12_cryptography__N8_keyStore__S25_GetBranchKeyVersionOutput__M18_branchKeyMaterials(software.amazon.cryptography.keystore.internaldafny.types._IBranchKeyMaterials value) { @@ -311,7 +311,7 @@ public static AWS.Cryptography.KeyStore.BranchKeyMaterials FromDafny_N3_aws__N12 } public static software.amazon.cryptography.keystore.internaldafny.types._IBranchKeyMaterials ToDafny_N3_aws__N12_cryptography__N8_keyStore__S25_GetBranchKeyVersionOutput__M18_branchKeyMaterials(AWS.Cryptography.KeyStore.BranchKeyMaterials value) { - return ToDafny_N3_aws__N12_cryptography__N8_keyStore__S18_BranchKeyMaterials(value); + return ToDafny_N3_aws__N12_cryptography__N8_keyStore__S18_BranchKeyMaterials((AWS.Cryptography.KeyStore.BranchKeyMaterials)value); } public static string FromDafny_N3_aws__N12_cryptography__N8_keyStore__S21_GetKeyStoreInfoOutput__M10_keyStoreId(Dafny.ISequence value) { @@ -319,7 +319,7 @@ public static string FromDafny_N3_aws__N12_cryptography__N8_keyStore__S21_GetKey } public static Dafny.ISequence ToDafny_N3_aws__N12_cryptography__N8_keyStore__S21_GetKeyStoreInfoOutput__M10_keyStoreId(string value) { - return ToDafny_N6_smithy__N3_api__S6_String(value); + return ToDafny_N6_smithy__N3_api__S6_String((string)value); } public static string FromDafny_N3_aws__N12_cryptography__N8_keyStore__S21_GetKeyStoreInfoOutput__M12_keyStoreName(Dafny.ISequence value) { @@ -327,7 +327,7 @@ public static string FromDafny_N3_aws__N12_cryptography__N8_keyStore__S21_GetKey } public static Dafny.ISequence ToDafny_N3_aws__N12_cryptography__N8_keyStore__S21_GetKeyStoreInfoOutput__M12_keyStoreName(string value) { - return ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S9_TableName(value); + return ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S9_TableName((string)value); } public static string FromDafny_N3_aws__N12_cryptography__N8_keyStore__S21_GetKeyStoreInfoOutput__M19_logicalKeyStoreName(Dafny.ISequence value) { @@ -335,7 +335,7 @@ public static string FromDafny_N3_aws__N12_cryptography__N8_keyStore__S21_GetKey } public static Dafny.ISequence ToDafny_N3_aws__N12_cryptography__N8_keyStore__S21_GetKeyStoreInfoOutput__M19_logicalKeyStoreName(string value) { - return ToDafny_N6_smithy__N3_api__S6_String(value); + return ToDafny_N6_smithy__N3_api__S6_String((string)value); } public static System.Collections.Generic.List FromDafny_N3_aws__N12_cryptography__N8_keyStore__S21_GetKeyStoreInfoOutput__M11_grantTokens(Dafny.ISequence> value) { @@ -343,7 +343,7 @@ public static System.Collections.Generic.List FromDafny_N3_aws__N12_cryp } public static Dafny.ISequence> ToDafny_N3_aws__N12_cryptography__N8_keyStore__S21_GetKeyStoreInfoOutput__M11_grantTokens(System.Collections.Generic.List value) { - return ToDafny_N3_aws__N12_cryptography__N8_keyStore__S14_GrantTokenList(value); + return ToDafny_N3_aws__N12_cryptography__N8_keyStore__S14_GrantTokenList((System.Collections.Generic.List)value); } public static AWS.Cryptography.KeyStore.KMSConfiguration FromDafny_N3_aws__N12_cryptography__N8_keyStore__S21_GetKeyStoreInfoOutput__M16_kmsConfiguration(software.amazon.cryptography.keystore.internaldafny.types._IKMSConfiguration value) { @@ -351,7 +351,7 @@ public static AWS.Cryptography.KeyStore.KMSConfiguration FromDafny_N3_aws__N12_c } public static software.amazon.cryptography.keystore.internaldafny.types._IKMSConfiguration ToDafny_N3_aws__N12_cryptography__N8_keyStore__S21_GetKeyStoreInfoOutput__M16_kmsConfiguration(AWS.Cryptography.KeyStore.KMSConfiguration value) { - return ToDafny_N3_aws__N12_cryptography__N8_keyStore__S16_KMSConfiguration(value); + return ToDafny_N3_aws__N12_cryptography__N8_keyStore__S16_KMSConfiguration((AWS.Cryptography.KeyStore.KMSConfiguration)value); } public static string FromDafny_N3_aws__N12_cryptography__N8_keyStore__S14_KeyStoreConfig__M12_ddbTableName(Dafny.ISequence value) { @@ -359,7 +359,7 @@ public static string FromDafny_N3_aws__N12_cryptography__N8_keyStore__S14_KeySto } public static Dafny.ISequence ToDafny_N3_aws__N12_cryptography__N8_keyStore__S14_KeyStoreConfig__M12_ddbTableName(string value) { - return ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S9_TableName(value); + return ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S9_TableName((string)value); } public static AWS.Cryptography.KeyStore.KMSConfiguration FromDafny_N3_aws__N12_cryptography__N8_keyStore__S14_KeyStoreConfig__M16_kmsConfiguration(software.amazon.cryptography.keystore.internaldafny.types._IKMSConfiguration value) { @@ -367,7 +367,7 @@ public static AWS.Cryptography.KeyStore.KMSConfiguration FromDafny_N3_aws__N12_c } public static software.amazon.cryptography.keystore.internaldafny.types._IKMSConfiguration ToDafny_N3_aws__N12_cryptography__N8_keyStore__S14_KeyStoreConfig__M16_kmsConfiguration(AWS.Cryptography.KeyStore.KMSConfiguration value) { - return ToDafny_N3_aws__N12_cryptography__N8_keyStore__S16_KMSConfiguration(value); + return ToDafny_N3_aws__N12_cryptography__N8_keyStore__S16_KMSConfiguration((AWS.Cryptography.KeyStore.KMSConfiguration)value); } public static string FromDafny_N3_aws__N12_cryptography__N8_keyStore__S14_KeyStoreConfig__M19_logicalKeyStoreName(Dafny.ISequence value) { @@ -375,7 +375,7 @@ public static string FromDafny_N3_aws__N12_cryptography__N8_keyStore__S14_KeySto } public static Dafny.ISequence ToDafny_N3_aws__N12_cryptography__N8_keyStore__S14_KeyStoreConfig__M19_logicalKeyStoreName(string value) { - return ToDafny_N6_smithy__N3_api__S6_String(value); + return ToDafny_N6_smithy__N3_api__S6_String((string)value); } public static string FromDafny_N3_aws__N12_cryptography__N8_keyStore__S14_KeyStoreConfig__M2_id(Wrappers_Compile._IOption> value) { @@ -415,7 +415,7 @@ public static string FromDafny_N3_aws__N12_cryptography__N8_keyStore__S17_KeySto } public static Dafny.ISequence ToDafny_N3_aws__N12_cryptography__N8_keyStore__S17_KeyStoreException__M7_message(string value) { - return ToDafny_N6_smithy__N3_api__S6_String(value); + return ToDafny_N6_smithy__N3_api__S6_String((string)value); } public static string FromDafny_N3_aws__N12_cryptography__N8_keyStore__S16_KMSConfiguration__M9_kmsKeyArn(Dafny.ISequence value) { @@ -423,7 +423,7 @@ public static string FromDafny_N3_aws__N12_cryptography__N8_keyStore__S16_KMSCon } public static Dafny.ISequence ToDafny_N3_aws__N12_cryptography__N8_keyStore__S16_KMSConfiguration__M9_kmsKeyArn(string value) { - return ToDafny_N3_com__N9_amazonaws__N3_kms__S9_KeyIdType(value); + return ToDafny_N3_com__N9_amazonaws__N3_kms__S9_KeyIdType((string)value); } public static string FromDafny_N3_aws__N12_cryptography__N8_keyStore__S16_KMSConfiguration__M11_kmsMRKeyArn(Dafny.ISequence value) { @@ -431,7 +431,7 @@ public static string FromDafny_N3_aws__N12_cryptography__N8_keyStore__S16_KMSCon } public static Dafny.ISequence ToDafny_N3_aws__N12_cryptography__N8_keyStore__S16_KMSConfiguration__M11_kmsMRKeyArn(string value) { - return ToDafny_N3_com__N9_amazonaws__N3_kms__S9_KeyIdType(value); + return ToDafny_N3_com__N9_amazonaws__N3_kms__S9_KeyIdType((string)value); } public static AWS.Cryptography.KeyStore.Discovery FromDafny_N3_aws__N12_cryptography__N8_keyStore__S16_KMSConfiguration__M9_discovery(software.amazon.cryptography.keystore.internaldafny.types._IDiscovery value) { @@ -439,7 +439,7 @@ public static AWS.Cryptography.KeyStore.Discovery FromDafny_N3_aws__N12_cryptogr } public static software.amazon.cryptography.keystore.internaldafny.types._IDiscovery ToDafny_N3_aws__N12_cryptography__N8_keyStore__S16_KMSConfiguration__M9_discovery(AWS.Cryptography.KeyStore.Discovery value) { - return ToDafny_N3_aws__N12_cryptography__N8_keyStore__S9_Discovery(value); + return ToDafny_N3_aws__N12_cryptography__N8_keyStore__S9_Discovery((AWS.Cryptography.KeyStore.Discovery)value); } public static AWS.Cryptography.KeyStore.MRDiscovery FromDafny_N3_aws__N12_cryptography__N8_keyStore__S16_KMSConfiguration__M11_mrDiscovery(software.amazon.cryptography.keystore.internaldafny.types._IMRDiscovery value) { @@ -447,7 +447,7 @@ public static AWS.Cryptography.KeyStore.MRDiscovery FromDafny_N3_aws__N12_crypto } public static software.amazon.cryptography.keystore.internaldafny.types._IMRDiscovery ToDafny_N3_aws__N12_cryptography__N8_keyStore__S16_KMSConfiguration__M11_mrDiscovery(AWS.Cryptography.KeyStore.MRDiscovery value) { - return ToDafny_N3_aws__N12_cryptography__N8_keyStore__S11_MRDiscovery(value); + return ToDafny_N3_aws__N12_cryptography__N8_keyStore__S11_MRDiscovery((AWS.Cryptography.KeyStore.MRDiscovery)value); } public static string FromDafny_N3_aws__N12_cryptography__N8_keyStore__S15_VersionKeyInput__M19_branchKeyIdentifier(Dafny.ISequence value) { @@ -455,7 +455,7 @@ public static string FromDafny_N3_aws__N12_cryptography__N8_keyStore__S15_Versio } public static Dafny.ISequence ToDafny_N3_aws__N12_cryptography__N8_keyStore__S15_VersionKeyInput__M19_branchKeyIdentifier(string value) { - return ToDafny_N6_smithy__N3_api__S6_String(value); + return ToDafny_N6_smithy__N3_api__S6_String((string)value); } public static string FromDafny_N6_smithy__N3_api__S6_String(Dafny.ISequence value) { @@ -580,7 +580,7 @@ public static string FromDafny_N3_aws__N12_cryptography__N8_keyStore__S17_Encryp } public static Dafny.ISequence ToDafny_N3_aws__N12_cryptography__N8_keyStore__S17_EncryptionContext__M3_key(string value) { - return ToDafny_N3_aws__N12_cryptography__N8_keyStore__S9_Utf8Bytes(value); + return ToDafny_N3_aws__N12_cryptography__N8_keyStore__S9_Utf8Bytes((string)value); } public static string FromDafny_N3_aws__N12_cryptography__N8_keyStore__S17_EncryptionContext__M5_value(Dafny.ISequence value) { @@ -588,7 +588,7 @@ public static string FromDafny_N3_aws__N12_cryptography__N8_keyStore__S17_Encryp } public static Dafny.ISequence ToDafny_N3_aws__N12_cryptography__N8_keyStore__S17_EncryptionContext__M5_value(string value) { - return ToDafny_N3_aws__N12_cryptography__N8_keyStore__S9_Utf8Bytes(value); + return ToDafny_N3_aws__N12_cryptography__N8_keyStore__S9_Utf8Bytes((string)value); } public static string FromDafny_N3_aws__N12_cryptography__N8_keyStore__S18_BranchKeyMaterials__M19_branchKeyIdentifier(Dafny.ISequence value) { @@ -596,7 +596,7 @@ public static string FromDafny_N3_aws__N12_cryptography__N8_keyStore__S18_Branch } public static Dafny.ISequence ToDafny_N3_aws__N12_cryptography__N8_keyStore__S18_BranchKeyMaterials__M19_branchKeyIdentifier(string value) { - return ToDafny_N6_smithy__N3_api__S6_String(value); + return ToDafny_N6_smithy__N3_api__S6_String((string)value); } public static string FromDafny_N3_aws__N12_cryptography__N8_keyStore__S18_BranchKeyMaterials__M16_branchKeyVersion(Dafny.ISequence value) { @@ -604,7 +604,7 @@ public static string FromDafny_N3_aws__N12_cryptography__N8_keyStore__S18_Branch } public static Dafny.ISequence ToDafny_N3_aws__N12_cryptography__N8_keyStore__S18_BranchKeyMaterials__M16_branchKeyVersion(string value) { - return ToDafny_N3_aws__N12_cryptography__N8_keyStore__S9_Utf8Bytes(value); + return ToDafny_N3_aws__N12_cryptography__N8_keyStore__S9_Utf8Bytes((string)value); } public static System.Collections.Generic.Dictionary FromDafny_N3_aws__N12_cryptography__N8_keyStore__S18_BranchKeyMaterials__M17_encryptionContext(Dafny.IMap, Dafny.ISequence> value) { @@ -612,7 +612,7 @@ public static System.Collections.Generic.Dictionary FromDafny_N3 } public static Dafny.IMap, Dafny.ISequence> ToDafny_N3_aws__N12_cryptography__N8_keyStore__S18_BranchKeyMaterials__M17_encryptionContext(System.Collections.Generic.Dictionary value) { - return ToDafny_N3_aws__N12_cryptography__N8_keyStore__S17_EncryptionContext(value); + return ToDafny_N3_aws__N12_cryptography__N8_keyStore__S17_EncryptionContext((System.Collections.Generic.Dictionary)value); } public static System.IO.MemoryStream FromDafny_N3_aws__N12_cryptography__N8_keyStore__S18_BranchKeyMaterials__M9_branchKey(Dafny.ISequence value) { @@ -620,7 +620,7 @@ public static System.IO.MemoryStream FromDafny_N3_aws__N12_cryptography__N8_keyS } public static Dafny.ISequence ToDafny_N3_aws__N12_cryptography__N8_keyStore__S18_BranchKeyMaterials__M9_branchKey(System.IO.MemoryStream value) { - return ToDafny_N3_aws__N12_cryptography__N8_keyStore__S6_Secret(value); + return ToDafny_N3_aws__N12_cryptography__N8_keyStore__S6_Secret((System.IO.MemoryStream)value); } public static string FromDafny_N3_aws__N12_cryptography__N8_keyStore__S18_BeaconKeyMaterials__M19_beaconKeyIdentifier(Dafny.ISequence value) { @@ -628,7 +628,7 @@ public static string FromDafny_N3_aws__N12_cryptography__N8_keyStore__S18_Beacon } public static Dafny.ISequence ToDafny_N3_aws__N12_cryptography__N8_keyStore__S18_BeaconKeyMaterials__M19_beaconKeyIdentifier(string value) { - return ToDafny_N6_smithy__N3_api__S6_String(value); + return ToDafny_N6_smithy__N3_api__S6_String((string)value); } public static System.Collections.Generic.Dictionary FromDafny_N3_aws__N12_cryptography__N8_keyStore__S18_BeaconKeyMaterials__M17_encryptionContext(Dafny.IMap, Dafny.ISequence> value) { @@ -636,7 +636,7 @@ public static System.Collections.Generic.Dictionary FromDafny_N3 } public static Dafny.IMap, Dafny.ISequence> ToDafny_N3_aws__N12_cryptography__N8_keyStore__S18_BeaconKeyMaterials__M17_encryptionContext(System.Collections.Generic.Dictionary value) { - return ToDafny_N3_aws__N12_cryptography__N8_keyStore__S17_EncryptionContext(value); + return ToDafny_N3_aws__N12_cryptography__N8_keyStore__S17_EncryptionContext((System.Collections.Generic.Dictionary)value); } public static System.IO.MemoryStream FromDafny_N3_aws__N12_cryptography__N8_keyStore__S18_BeaconKeyMaterials__M9_beaconKey(Wrappers_Compile._IOption> value) { @@ -660,7 +660,7 @@ public static string FromDafny_N3_aws__N12_cryptography__N8_keyStore__S14_GrantT } public static Dafny.ISequence ToDafny_N3_aws__N12_cryptography__N8_keyStore__S14_GrantTokenList__M6_member(string value) { - return ToDafny_N6_smithy__N3_api__S6_String(value); + return ToDafny_N6_smithy__N3_api__S6_String((string)value); } public static string FromDafny_N3_aws__N12_cryptography__N8_keyStore__S11_MRDiscovery__M6_region(Dafny.ISequence value) { @@ -668,7 +668,7 @@ public static string FromDafny_N3_aws__N12_cryptography__N8_keyStore__S11_MRDisc } public static Dafny.ISequence ToDafny_N3_aws__N12_cryptography__N8_keyStore__S11_MRDiscovery__M6_region(string value) { - return ToDafny_N3_com__N9_amazonaws__N3_kms__S10_RegionType(value); + return ToDafny_N3_com__N9_amazonaws__N3_kms__S10_RegionType((string)value); } public static string FromDafny_N3_aws__N12_cryptography__N8_keyStore__S9_Utf8Bytes(Dafny.ISequence value) { @@ -717,7 +717,7 @@ public static string FromDafny_N3_aws__N12_cryptography__N8_keyStore__S10_HmacKe } public static Dafny.ISequence ToDafny_N3_aws__N12_cryptography__N8_keyStore__S10_HmacKeyMap__M3_key(string value) { - return ToDafny_N6_smithy__N3_api__S6_String(value); + return ToDafny_N6_smithy__N3_api__S6_String((string)value); } public static System.IO.MemoryStream FromDafny_N3_aws__N12_cryptography__N8_keyStore__S10_HmacKeyMap__M5_value(Dafny.ISequence value) { @@ -725,7 +725,7 @@ public static System.IO.MemoryStream FromDafny_N3_aws__N12_cryptography__N8_keyS } public static Dafny.ISequence ToDafny_N3_aws__N12_cryptography__N8_keyStore__S10_HmacKeyMap__M5_value(System.IO.MemoryStream value) { - return ToDafny_N3_aws__N12_cryptography__N8_keyStore__S6_Secret(value); + return ToDafny_N3_aws__N12_cryptography__N8_keyStore__S6_Secret((System.IO.MemoryStream)value); } public static System.Exception FromDafny_CommonError(software.amazon.cryptography.keystore.internaldafny.types._IError value) { diff --git a/AwsCryptographyPrimitives/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/primitives/model/AES_CTR.java b/AwsCryptographyPrimitives/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/primitives/model/AES_CTR.java index febc57132..e4aa5f87c 100644 --- a/AwsCryptographyPrimitives/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/primitives/model/AES_CTR.java +++ b/AwsCryptographyPrimitives/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/primitives/model/AES_CTR.java @@ -3,22 +3,24 @@ // Do not modify this file. This file is machine generated, and any changes to it will be overwritten. package software.amazon.cryptography.primitives.model; +import java.util.Objects; + public class AES_CTR { - private final int keyLength; + private final Integer keyLength; - private final int nonceLength; + private final Integer nonceLength; protected AES_CTR(BuilderImpl builder) { this.keyLength = builder.keyLength(); this.nonceLength = builder.nonceLength(); } - public int keyLength() { + public Integer keyLength() { return this.keyLength; } - public int nonceLength() { + public Integer nonceLength() { return this.nonceLength; } @@ -31,83 +33,75 @@ public static Builder builder() { } public interface Builder { - Builder keyLength(int keyLength); + Builder keyLength(Integer keyLength); - int keyLength(); + Integer keyLength(); - Builder nonceLength(int nonceLength); + Builder nonceLength(Integer nonceLength); - int nonceLength(); + Integer nonceLength(); AES_CTR build(); } static class BuilderImpl implements Builder { - protected int keyLength; - - private boolean _keyLengthSet = false; - - protected int nonceLength; + protected Integer keyLength; - private boolean _nonceLengthSet = false; + protected Integer nonceLength; protected BuilderImpl() {} protected BuilderImpl(AES_CTR model) { this.keyLength = model.keyLength(); - this._keyLengthSet = true; this.nonceLength = model.nonceLength(); - this._nonceLengthSet = true; } - public Builder keyLength(int keyLength) { + public Builder keyLength(Integer keyLength) { this.keyLength = keyLength; - this._keyLengthSet = true; return this; } - public int keyLength() { + public Integer keyLength() { return this.keyLength; } - public Builder nonceLength(int nonceLength) { + public Builder nonceLength(Integer nonceLength) { this.nonceLength = nonceLength; - this._nonceLengthSet = true; return this; } - public int nonceLength() { + public Integer nonceLength() { return this.nonceLength; } public AES_CTR build() { - if (!this._keyLengthSet) { + if (Objects.isNull(this.keyLength())) { throw new IllegalArgumentException( "Missing value for required field `keyLength`" ); } - if (this._keyLengthSet && this.keyLength() < 1) { + if (Objects.nonNull(this.keyLength()) && this.keyLength() < 1) { throw new IllegalArgumentException( "`keyLength` must be greater than or equal to 1" ); } - if (this._keyLengthSet && this.keyLength() > 32) { + if (Objects.nonNull(this.keyLength()) && this.keyLength() > 32) { throw new IllegalArgumentException( "`keyLength` must be less than or equal to 32." ); } - if (!this._nonceLengthSet) { + if (Objects.isNull(this.nonceLength())) { throw new IllegalArgumentException( "Missing value for required field `nonceLength`" ); } - if (this._nonceLengthSet && this.nonceLength() < 0) { + if (Objects.nonNull(this.nonceLength()) && this.nonceLength() < 0) { throw new IllegalArgumentException( "`nonceLength` must be greater than or equal to 0" ); } - if (this._nonceLengthSet && this.nonceLength() > 255) { + if (Objects.nonNull(this.nonceLength()) && this.nonceLength() > 255) { throw new IllegalArgumentException( "`nonceLength` must be less than or equal to 255." ); diff --git a/AwsCryptographyPrimitives/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/primitives/model/AES_GCM.java b/AwsCryptographyPrimitives/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/primitives/model/AES_GCM.java index 9c89d9d4f..4bee027ca 100644 --- a/AwsCryptographyPrimitives/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/primitives/model/AES_GCM.java +++ b/AwsCryptographyPrimitives/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/primitives/model/AES_GCM.java @@ -3,13 +3,15 @@ // Do not modify this file. This file is machine generated, and any changes to it will be overwritten. package software.amazon.cryptography.primitives.model; +import java.util.Objects; + public class AES_GCM { - private final int keyLength; + private final Integer keyLength; - private final int tagLength; + private final Integer tagLength; - private final int ivLength; + private final Integer ivLength; protected AES_GCM(BuilderImpl builder) { this.keyLength = builder.keyLength(); @@ -17,15 +19,15 @@ protected AES_GCM(BuilderImpl builder) { this.ivLength = builder.ivLength(); } - public int keyLength() { + public Integer keyLength() { return this.keyLength; } - public int tagLength() { + public Integer tagLength() { return this.tagLength; } - public int ivLength() { + public Integer ivLength() { return this.ivLength; } @@ -38,118 +40,106 @@ public static Builder builder() { } public interface Builder { - Builder keyLength(int keyLength); + Builder keyLength(Integer keyLength); - int keyLength(); + Integer keyLength(); - Builder tagLength(int tagLength); + Builder tagLength(Integer tagLength); - int tagLength(); + Integer tagLength(); - Builder ivLength(int ivLength); + Builder ivLength(Integer ivLength); - int ivLength(); + Integer ivLength(); AES_GCM build(); } static class BuilderImpl implements Builder { - protected int keyLength; - - private boolean _keyLengthSet = false; - - protected int tagLength; - - private boolean _tagLengthSet = false; + protected Integer keyLength; - protected int ivLength; + protected Integer tagLength; - private boolean _ivLengthSet = false; + protected Integer ivLength; protected BuilderImpl() {} protected BuilderImpl(AES_GCM model) { this.keyLength = model.keyLength(); - this._keyLengthSet = true; this.tagLength = model.tagLength(); - this._tagLengthSet = true; this.ivLength = model.ivLength(); - this._ivLengthSet = true; } - public Builder keyLength(int keyLength) { + public Builder keyLength(Integer keyLength) { this.keyLength = keyLength; - this._keyLengthSet = true; return this; } - public int keyLength() { + public Integer keyLength() { return this.keyLength; } - public Builder tagLength(int tagLength) { + public Builder tagLength(Integer tagLength) { this.tagLength = tagLength; - this._tagLengthSet = true; return this; } - public int tagLength() { + public Integer tagLength() { return this.tagLength; } - public Builder ivLength(int ivLength) { + public Builder ivLength(Integer ivLength) { this.ivLength = ivLength; - this._ivLengthSet = true; return this; } - public int ivLength() { + public Integer ivLength() { return this.ivLength; } public AES_GCM build() { - if (!this._keyLengthSet) { + if (Objects.isNull(this.keyLength())) { throw new IllegalArgumentException( "Missing value for required field `keyLength`" ); } - if (this._keyLengthSet && this.keyLength() < 1) { + if (Objects.nonNull(this.keyLength()) && this.keyLength() < 1) { throw new IllegalArgumentException( "`keyLength` must be greater than or equal to 1" ); } - if (this._keyLengthSet && this.keyLength() > 32) { + if (Objects.nonNull(this.keyLength()) && this.keyLength() > 32) { throw new IllegalArgumentException( "`keyLength` must be less than or equal to 32." ); } - if (!this._tagLengthSet) { + if (Objects.isNull(this.tagLength())) { throw new IllegalArgumentException( "Missing value for required field `tagLength`" ); } - if (this._tagLengthSet && this.tagLength() < 0) { + if (Objects.nonNull(this.tagLength()) && this.tagLength() < 0) { throw new IllegalArgumentException( "`tagLength` must be greater than or equal to 0" ); } - if (this._tagLengthSet && this.tagLength() > 32) { + if (Objects.nonNull(this.tagLength()) && this.tagLength() > 32) { throw new IllegalArgumentException( "`tagLength` must be less than or equal to 32." ); } - if (!this._ivLengthSet) { + if (Objects.isNull(this.ivLength())) { throw new IllegalArgumentException( "Missing value for required field `ivLength`" ); } - if (this._ivLengthSet && this.ivLength() < 0) { + if (Objects.nonNull(this.ivLength()) && this.ivLength() < 0) { throw new IllegalArgumentException( "`ivLength` must be greater than or equal to 0" ); } - if (this._ivLengthSet && this.ivLength() > 255) { + if (Objects.nonNull(this.ivLength()) && this.ivLength() > 255) { throw new IllegalArgumentException( "`ivLength` must be less than or equal to 255." ); diff --git a/AwsCryptographyPrimitives/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/primitives/model/AesKdfCtrInput.java b/AwsCryptographyPrimitives/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/primitives/model/AesKdfCtrInput.java index 1bb9d4dfb..11e7780ed 100644 --- a/AwsCryptographyPrimitives/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/primitives/model/AesKdfCtrInput.java +++ b/AwsCryptographyPrimitives/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/primitives/model/AesKdfCtrInput.java @@ -10,7 +10,7 @@ public class AesKdfCtrInput { private final ByteBuffer ikm; - private final int expectedLength; + private final Integer expectedLength; private final ByteBuffer nonce; @@ -24,7 +24,7 @@ public ByteBuffer ikm() { return this.ikm; } - public int expectedLength() { + public Integer expectedLength() { return this.expectedLength; } @@ -45,9 +45,9 @@ public interface Builder { ByteBuffer ikm(); - Builder expectedLength(int expectedLength); + Builder expectedLength(Integer expectedLength); - int expectedLength(); + Integer expectedLength(); Builder nonce(ByteBuffer nonce); @@ -60,9 +60,7 @@ static class BuilderImpl implements Builder { protected ByteBuffer ikm; - protected int expectedLength; - - private boolean _expectedLengthSet = false; + protected Integer expectedLength; protected ByteBuffer nonce; @@ -71,7 +69,6 @@ protected BuilderImpl() {} protected BuilderImpl(AesKdfCtrInput model) { this.ikm = model.ikm(); this.expectedLength = model.expectedLength(); - this._expectedLengthSet = true; this.nonce = model.nonce(); } @@ -84,13 +81,12 @@ public ByteBuffer ikm() { return this.ikm; } - public Builder expectedLength(int expectedLength) { + public Builder expectedLength(Integer expectedLength) { this.expectedLength = expectedLength; - this._expectedLengthSet = true; return this; } - public int expectedLength() { + public Integer expectedLength() { return this.expectedLength; } @@ -109,12 +105,12 @@ public AesKdfCtrInput build() { "Missing value for required field `ikm`" ); } - if (!this._expectedLengthSet) { + if (Objects.isNull(this.expectedLength())) { throw new IllegalArgumentException( "Missing value for required field `expectedLength`" ); } - if (this._expectedLengthSet && this.expectedLength() < 0) { + if (Objects.nonNull(this.expectedLength()) && this.expectedLength() < 0) { throw new IllegalArgumentException( "`expectedLength` must be greater than or equal to 0" ); diff --git a/AwsCryptographyPrimitives/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/primitives/model/GenerateRSAKeyPairInput.java b/AwsCryptographyPrimitives/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/primitives/model/GenerateRSAKeyPairInput.java index fefd30a6e..81fe46551 100644 --- a/AwsCryptographyPrimitives/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/primitives/model/GenerateRSAKeyPairInput.java +++ b/AwsCryptographyPrimitives/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/primitives/model/GenerateRSAKeyPairInput.java @@ -3,15 +3,17 @@ // Do not modify this file. This file is machine generated, and any changes to it will be overwritten. package software.amazon.cryptography.primitives.model; +import java.util.Objects; + public class GenerateRSAKeyPairInput { - private final int lengthBits; + private final Integer lengthBits; protected GenerateRSAKeyPairInput(BuilderImpl builder) { this.lengthBits = builder.lengthBits(); } - public int lengthBits() { + public Integer lengthBits() { return this.lengthBits; } @@ -24,48 +26,44 @@ public static Builder builder() { } public interface Builder { - Builder lengthBits(int lengthBits); + Builder lengthBits(Integer lengthBits); - int lengthBits(); + Integer lengthBits(); GenerateRSAKeyPairInput build(); } static class BuilderImpl implements Builder { - protected int lengthBits; - - private boolean _lengthBitsSet = false; + protected Integer lengthBits; protected BuilderImpl() {} protected BuilderImpl(GenerateRSAKeyPairInput model) { this.lengthBits = model.lengthBits(); - this._lengthBitsSet = true; } - public Builder lengthBits(int lengthBits) { + public Builder lengthBits(Integer lengthBits) { this.lengthBits = lengthBits; - this._lengthBitsSet = true; return this; } - public int lengthBits() { + public Integer lengthBits() { return this.lengthBits; } public GenerateRSAKeyPairInput build() { - if (!this._lengthBitsSet) { + if (Objects.isNull(this.lengthBits())) { throw new IllegalArgumentException( "Missing value for required field `lengthBits`" ); } - if (this._lengthBitsSet && this.lengthBits() < 81) { + if (Objects.nonNull(this.lengthBits()) && this.lengthBits() < 81) { throw new IllegalArgumentException( "`lengthBits` must be greater than or equal to 81" ); } - if (this._lengthBitsSet && this.lengthBits() > 4096) { + if (Objects.nonNull(this.lengthBits()) && this.lengthBits() > 4096) { throw new IllegalArgumentException( "`lengthBits` must be less than or equal to 4096." ); diff --git a/AwsCryptographyPrimitives/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/primitives/model/GenerateRandomBytesInput.java b/AwsCryptographyPrimitives/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/primitives/model/GenerateRandomBytesInput.java index 7e1a286ee..c608275fe 100644 --- a/AwsCryptographyPrimitives/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/primitives/model/GenerateRandomBytesInput.java +++ b/AwsCryptographyPrimitives/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/primitives/model/GenerateRandomBytesInput.java @@ -3,15 +3,17 @@ // Do not modify this file. This file is machine generated, and any changes to it will be overwritten. package software.amazon.cryptography.primitives.model; +import java.util.Objects; + public class GenerateRandomBytesInput { - private final int length; + private final Integer length; protected GenerateRandomBytesInput(BuilderImpl builder) { this.length = builder.length(); } - public int length() { + public Integer length() { return this.length; } @@ -24,43 +26,39 @@ public static Builder builder() { } public interface Builder { - Builder length(int length); + Builder length(Integer length); - int length(); + Integer length(); GenerateRandomBytesInput build(); } static class BuilderImpl implements Builder { - protected int length; - - private boolean _lengthSet = false; + protected Integer length; protected BuilderImpl() {} protected BuilderImpl(GenerateRandomBytesInput model) { this.length = model.length(); - this._lengthSet = true; } - public Builder length(int length) { + public Builder length(Integer length) { this.length = length; - this._lengthSet = true; return this; } - public int length() { + public Integer length() { return this.length; } public GenerateRandomBytesInput build() { - if (!this._lengthSet) { + if (Objects.isNull(this.length())) { throw new IllegalArgumentException( "Missing value for required field `length`" ); } - if (this._lengthSet && this.length() < 0) { + if (Objects.nonNull(this.length()) && this.length() < 0) { throw new IllegalArgumentException( "`length` must be greater than or equal to 0" ); diff --git a/AwsCryptographyPrimitives/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/primitives/model/GetRSAKeyModulusLengthOutput.java b/AwsCryptographyPrimitives/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/primitives/model/GetRSAKeyModulusLengthOutput.java index 7834706ed..e830e8a14 100644 --- a/AwsCryptographyPrimitives/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/primitives/model/GetRSAKeyModulusLengthOutput.java +++ b/AwsCryptographyPrimitives/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/primitives/model/GetRSAKeyModulusLengthOutput.java @@ -3,15 +3,17 @@ // Do not modify this file. This file is machine generated, and any changes to it will be overwritten. package software.amazon.cryptography.primitives.model; +import java.util.Objects; + public class GetRSAKeyModulusLengthOutput { - private final int length; + private final Integer length; protected GetRSAKeyModulusLengthOutput(BuilderImpl builder) { this.length = builder.length(); } - public int length() { + public Integer length() { return this.length; } @@ -24,43 +26,39 @@ public static Builder builder() { } public interface Builder { - Builder length(int length); + Builder length(Integer length); - int length(); + Integer length(); GetRSAKeyModulusLengthOutput build(); } static class BuilderImpl implements Builder { - protected int length; - - private boolean _lengthSet = false; + protected Integer length; protected BuilderImpl() {} protected BuilderImpl(GetRSAKeyModulusLengthOutput model) { this.length = model.length(); - this._lengthSet = true; } - public Builder length(int length) { + public Builder length(Integer length) { this.length = length; - this._lengthSet = true; return this; } - public int length() { + public Integer length() { return this.length; } public GetRSAKeyModulusLengthOutput build() { - if (!this._lengthSet) { + if (Objects.isNull(this.length())) { throw new IllegalArgumentException( "Missing value for required field `length`" ); } - if (this._lengthSet && this.length() < 81) { + if (Objects.nonNull(this.length()) && this.length() < 81) { throw new IllegalArgumentException( "`length` must be greater than or equal to 81" ); diff --git a/AwsCryptographyPrimitives/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/primitives/model/HkdfExpandInput.java b/AwsCryptographyPrimitives/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/primitives/model/HkdfExpandInput.java index b9e521089..3c2a1a120 100644 --- a/AwsCryptographyPrimitives/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/primitives/model/HkdfExpandInput.java +++ b/AwsCryptographyPrimitives/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/primitives/model/HkdfExpandInput.java @@ -14,7 +14,7 @@ public class HkdfExpandInput { private final ByteBuffer info; - private final int expectedLength; + private final Integer expectedLength; protected HkdfExpandInput(BuilderImpl builder) { this.digestAlgorithm = builder.digestAlgorithm(); @@ -35,7 +35,7 @@ public ByteBuffer info() { return this.info; } - public int expectedLength() { + public Integer expectedLength() { return this.expectedLength; } @@ -60,9 +60,9 @@ public interface Builder { ByteBuffer info(); - Builder expectedLength(int expectedLength); + Builder expectedLength(Integer expectedLength); - int expectedLength(); + Integer expectedLength(); HkdfExpandInput build(); } @@ -75,9 +75,7 @@ static class BuilderImpl implements Builder { protected ByteBuffer info; - protected int expectedLength; - - private boolean _expectedLengthSet = false; + protected Integer expectedLength; protected BuilderImpl() {} @@ -86,7 +84,6 @@ protected BuilderImpl(HkdfExpandInput model) { this.prk = model.prk(); this.info = model.info(); this.expectedLength = model.expectedLength(); - this._expectedLengthSet = true; } public Builder digestAlgorithm(DigestAlgorithm digestAlgorithm) { @@ -116,13 +113,12 @@ public ByteBuffer info() { return this.info; } - public Builder expectedLength(int expectedLength) { + public Builder expectedLength(Integer expectedLength) { this.expectedLength = expectedLength; - this._expectedLengthSet = true; return this; } - public int expectedLength() { + public Integer expectedLength() { return this.expectedLength; } @@ -142,12 +138,12 @@ public HkdfExpandInput build() { "Missing value for required field `info`" ); } - if (!this._expectedLengthSet) { + if (Objects.isNull(this.expectedLength())) { throw new IllegalArgumentException( "Missing value for required field `expectedLength`" ); } - if (this._expectedLengthSet && this.expectedLength() < 0) { + if (Objects.nonNull(this.expectedLength()) && this.expectedLength() < 0) { throw new IllegalArgumentException( "`expectedLength` must be greater than or equal to 0" ); diff --git a/AwsCryptographyPrimitives/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/primitives/model/HkdfInput.java b/AwsCryptographyPrimitives/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/primitives/model/HkdfInput.java index 6273a179f..722bd9d00 100644 --- a/AwsCryptographyPrimitives/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/primitives/model/HkdfInput.java +++ b/AwsCryptographyPrimitives/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/primitives/model/HkdfInput.java @@ -16,7 +16,7 @@ public class HkdfInput { private final ByteBuffer info; - private final int expectedLength; + private final Integer expectedLength; protected HkdfInput(BuilderImpl builder) { this.digestAlgorithm = builder.digestAlgorithm(); @@ -42,7 +42,7 @@ public ByteBuffer info() { return this.info; } - public int expectedLength() { + public Integer expectedLength() { return this.expectedLength; } @@ -71,9 +71,9 @@ public interface Builder { ByteBuffer info(); - Builder expectedLength(int expectedLength); + Builder expectedLength(Integer expectedLength); - int expectedLength(); + Integer expectedLength(); HkdfInput build(); } @@ -88,9 +88,7 @@ static class BuilderImpl implements Builder { protected ByteBuffer info; - protected int expectedLength; - - private boolean _expectedLengthSet = false; + protected Integer expectedLength; protected BuilderImpl() {} @@ -100,7 +98,6 @@ protected BuilderImpl(HkdfInput model) { this.ikm = model.ikm(); this.info = model.info(); this.expectedLength = model.expectedLength(); - this._expectedLengthSet = true; } public Builder digestAlgorithm(DigestAlgorithm digestAlgorithm) { @@ -139,13 +136,12 @@ public ByteBuffer info() { return this.info; } - public Builder expectedLength(int expectedLength) { + public Builder expectedLength(Integer expectedLength) { this.expectedLength = expectedLength; - this._expectedLengthSet = true; return this; } - public int expectedLength() { + public Integer expectedLength() { return this.expectedLength; } @@ -165,12 +161,12 @@ public HkdfInput build() { "Missing value for required field `info`" ); } - if (!this._expectedLengthSet) { + if (Objects.isNull(this.expectedLength())) { throw new IllegalArgumentException( "Missing value for required field `expectedLength`" ); } - if (this._expectedLengthSet && this.expectedLength() < 0) { + if (Objects.nonNull(this.expectedLength()) && this.expectedLength() < 0) { throw new IllegalArgumentException( "`expectedLength` must be greater than or equal to 0" ); diff --git a/AwsCryptographyPrimitives/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/primitives/model/KdfCtrInput.java b/AwsCryptographyPrimitives/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/primitives/model/KdfCtrInput.java index a6769b03b..22ab7da5b 100644 --- a/AwsCryptographyPrimitives/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/primitives/model/KdfCtrInput.java +++ b/AwsCryptographyPrimitives/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/primitives/model/KdfCtrInput.java @@ -12,7 +12,7 @@ public class KdfCtrInput { private final ByteBuffer ikm; - private final int expectedLength; + private final Integer expectedLength; private final ByteBuffer purpose; @@ -34,7 +34,7 @@ public ByteBuffer ikm() { return this.ikm; } - public int expectedLength() { + public Integer expectedLength() { return this.expectedLength; } @@ -63,9 +63,9 @@ public interface Builder { ByteBuffer ikm(); - Builder expectedLength(int expectedLength); + Builder expectedLength(Integer expectedLength); - int expectedLength(); + Integer expectedLength(); Builder purpose(ByteBuffer purpose); @@ -84,9 +84,7 @@ static class BuilderImpl implements Builder { protected ByteBuffer ikm; - protected int expectedLength; - - private boolean _expectedLengthSet = false; + protected Integer expectedLength; protected ByteBuffer purpose; @@ -98,7 +96,6 @@ protected BuilderImpl(KdfCtrInput model) { this.digestAlgorithm = model.digestAlgorithm(); this.ikm = model.ikm(); this.expectedLength = model.expectedLength(); - this._expectedLengthSet = true; this.purpose = model.purpose(); this.nonce = model.nonce(); } @@ -121,13 +118,12 @@ public ByteBuffer ikm() { return this.ikm; } - public Builder expectedLength(int expectedLength) { + public Builder expectedLength(Integer expectedLength) { this.expectedLength = expectedLength; - this._expectedLengthSet = true; return this; } - public int expectedLength() { + public Integer expectedLength() { return this.expectedLength; } @@ -160,12 +156,12 @@ public KdfCtrInput build() { "Missing value for required field `ikm`" ); } - if (!this._expectedLengthSet) { + if (Objects.isNull(this.expectedLength())) { throw new IllegalArgumentException( "Missing value for required field `expectedLength`" ); } - if (this._expectedLengthSet && this.expectedLength() < 0) { + if (Objects.nonNull(this.expectedLength()) && this.expectedLength() < 0) { throw new IllegalArgumentException( "`expectedLength` must be greater than or equal to 0" ); diff --git a/AwsCryptographyPrimitives/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/primitives/model/RSAPrivateKey.java b/AwsCryptographyPrimitives/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/primitives/model/RSAPrivateKey.java index de127e1b7..4a4aab25a 100644 --- a/AwsCryptographyPrimitives/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/primitives/model/RSAPrivateKey.java +++ b/AwsCryptographyPrimitives/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/primitives/model/RSAPrivateKey.java @@ -8,7 +8,7 @@ public class RSAPrivateKey { - private final int lengthBits; + private final Integer lengthBits; private final ByteBuffer pem; @@ -17,7 +17,7 @@ protected RSAPrivateKey(BuilderImpl builder) { this.pem = builder.pem(); } - public int lengthBits() { + public Integer lengthBits() { return this.lengthBits; } @@ -34,9 +34,9 @@ public static Builder builder() { } public interface Builder { - Builder lengthBits(int lengthBits); + Builder lengthBits(Integer lengthBits); - int lengthBits(); + Integer lengthBits(); Builder pem(ByteBuffer pem); @@ -47,9 +47,7 @@ public interface Builder { static class BuilderImpl implements Builder { - protected int lengthBits; - - private boolean _lengthBitsSet = false; + protected Integer lengthBits; protected ByteBuffer pem; @@ -57,17 +55,15 @@ protected BuilderImpl() {} protected BuilderImpl(RSAPrivateKey model) { this.lengthBits = model.lengthBits(); - this._lengthBitsSet = true; this.pem = model.pem(); } - public Builder lengthBits(int lengthBits) { + public Builder lengthBits(Integer lengthBits) { this.lengthBits = lengthBits; - this._lengthBitsSet = true; return this; } - public int lengthBits() { + public Integer lengthBits() { return this.lengthBits; } @@ -81,12 +77,12 @@ public ByteBuffer pem() { } public RSAPrivateKey build() { - if (!this._lengthBitsSet) { + if (Objects.isNull(this.lengthBits())) { throw new IllegalArgumentException( "Missing value for required field `lengthBits`" ); } - if (this._lengthBitsSet && this.lengthBits() < 81) { + if (Objects.nonNull(this.lengthBits()) && this.lengthBits() < 81) { throw new IllegalArgumentException( "`lengthBits` must be greater than or equal to 81" ); diff --git a/AwsCryptographyPrimitives/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/primitives/model/RSAPublicKey.java b/AwsCryptographyPrimitives/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/primitives/model/RSAPublicKey.java index 1879f4dc9..2b7656920 100644 --- a/AwsCryptographyPrimitives/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/primitives/model/RSAPublicKey.java +++ b/AwsCryptographyPrimitives/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/primitives/model/RSAPublicKey.java @@ -8,7 +8,7 @@ public class RSAPublicKey { - private final int lengthBits; + private final Integer lengthBits; private final ByteBuffer pem; @@ -17,7 +17,7 @@ protected RSAPublicKey(BuilderImpl builder) { this.pem = builder.pem(); } - public int lengthBits() { + public Integer lengthBits() { return this.lengthBits; } @@ -34,9 +34,9 @@ public static Builder builder() { } public interface Builder { - Builder lengthBits(int lengthBits); + Builder lengthBits(Integer lengthBits); - int lengthBits(); + Integer lengthBits(); Builder pem(ByteBuffer pem); @@ -47,9 +47,7 @@ public interface Builder { static class BuilderImpl implements Builder { - protected int lengthBits; - - private boolean _lengthBitsSet = false; + protected Integer lengthBits; protected ByteBuffer pem; @@ -57,17 +55,15 @@ protected BuilderImpl() {} protected BuilderImpl(RSAPublicKey model) { this.lengthBits = model.lengthBits(); - this._lengthBitsSet = true; this.pem = model.pem(); } - public Builder lengthBits(int lengthBits) { + public Builder lengthBits(Integer lengthBits) { this.lengthBits = lengthBits; - this._lengthBitsSet = true; return this; } - public int lengthBits() { + public Integer lengthBits() { return this.lengthBits; } @@ -81,12 +77,12 @@ public ByteBuffer pem() { } public RSAPublicKey build() { - if (!this._lengthBitsSet) { + if (Objects.isNull(this.lengthBits())) { throw new IllegalArgumentException( "Missing value for required field `lengthBits`" ); } - if (this._lengthBitsSet && this.lengthBits() < 81) { + if (Objects.nonNull(this.lengthBits()) && this.lengthBits() < 81) { throw new IllegalArgumentException( "`lengthBits` must be greater than or equal to 81" ); diff --git a/AwsCryptographyPrimitives/runtimes/net/Generated/AtomicPrimitives.cs b/AwsCryptographyPrimitives/runtimes/net/Generated/AtomicPrimitives.cs index b217f19a5..dd7dd6b75 100644 --- a/AwsCryptographyPrimitives/runtimes/net/Generated/AtomicPrimitives.cs +++ b/AwsCryptographyPrimitives/runtimes/net/Generated/AtomicPrimitives.cs @@ -138,7 +138,7 @@ public System.IO.MemoryStream ECDSASign(AWS.Cryptography.Primitives.ECDSASignInp if (result.is_Failure) throw TypeConversion.FromDafny_CommonError(result.dtor_error); return TypeConversion.FromDafny_N3_aws__N12_cryptography__N10_primitives__S15_ECDSASignOutput(result.dtor_value); } - public bool ECDSAVerify(AWS.Cryptography.Primitives.ECDSAVerifyInput input) + public bool? ECDSAVerify(AWS.Cryptography.Primitives.ECDSAVerifyInput input) { software.amazon.cryptography.primitives.internaldafny.types._IECDSAVerifyInput internalInput = TypeConversion.ToDafny_N3_aws__N12_cryptography__N10_primitives__S16_ECDSAVerifyInput(input); Wrappers_Compile._IResult result = _impl.ECDSAVerify(internalInput); diff --git a/AwsCryptographyPrimitives/runtimes/net/Generated/TypeConversion.cs b/AwsCryptographyPrimitives/runtimes/net/Generated/TypeConversion.cs index 83071c6b6..ab262dc31 100644 --- a/AwsCryptographyPrimitives/runtimes/net/Generated/TypeConversion.cs +++ b/AwsCryptographyPrimitives/runtimes/net/Generated/TypeConversion.cs @@ -260,11 +260,11 @@ public static software.amazon.cryptography.primitives.internaldafny.types._IECDS return new software.amazon.cryptography.primitives.internaldafny.types.ECDSAVerifyInput(ToDafny_N3_aws__N12_cryptography__N10_primitives__S16_ECDSAVerifyInput__M18_signatureAlgorithm(value.SignatureAlgorithm), ToDafny_N3_aws__N12_cryptography__N10_primitives__S16_ECDSAVerifyInput__M15_verificationKey(value.VerificationKey), ToDafny_N3_aws__N12_cryptography__N10_primitives__S16_ECDSAVerifyInput__M7_message(value.Message), ToDafny_N3_aws__N12_cryptography__N10_primitives__S16_ECDSAVerifyInput__M9_signature(value.Signature)); } - public static bool FromDafny_N3_aws__N12_cryptography__N10_primitives__S17_ECDSAVerifyOutput(bool value) + public static bool? FromDafny_N3_aws__N12_cryptography__N10_primitives__S17_ECDSAVerifyOutput(bool value) { return FromDafny_N3_aws__N12_cryptography__N10_primitives__S17_ECDSAVerifyOutput__M7_success(value); } - public static bool ToDafny_N3_aws__N12_cryptography__N10_primitives__S17_ECDSAVerifyOutput(bool value) + public static bool ToDafny_N3_aws__N12_cryptography__N10_primitives__S17_ECDSAVerifyOutput(bool? value) { return ToDafny_N3_aws__N12_cryptography__N10_primitives__S17_ECDSAVerifyOutput__M7_success(value); } @@ -605,7 +605,7 @@ public static AWS.Cryptography.Primitives.AES_GCM FromDafny_N3_aws__N12_cryptogr } public static software.amazon.cryptography.primitives.internaldafny.types._IAES__GCM ToDafny_N3_aws__N12_cryptography__N10_primitives__S15_AESDecryptInput__M6_encAlg(AWS.Cryptography.Primitives.AES_GCM value) { - return ToDafny_N3_aws__N12_cryptography__N10_primitives__S7_AES_GCM(value); + return ToDafny_N3_aws__N12_cryptography__N10_primitives__S7_AES_GCM((AWS.Cryptography.Primitives.AES_GCM)value); } public static System.IO.MemoryStream FromDafny_N3_aws__N12_cryptography__N10_primitives__S15_AESDecryptInput__M3_key(Dafny.ISequence value) { @@ -613,7 +613,7 @@ public static System.IO.MemoryStream FromDafny_N3_aws__N12_cryptography__N10_pri } public static Dafny.ISequence ToDafny_N3_aws__N12_cryptography__N10_primitives__S15_AESDecryptInput__M3_key(System.IO.MemoryStream value) { - return ToDafny_N6_smithy__N3_api__S4_Blob(value); + return ToDafny_N6_smithy__N3_api__S4_Blob((System.IO.MemoryStream)value); } public static System.IO.MemoryStream FromDafny_N3_aws__N12_cryptography__N10_primitives__S15_AESDecryptInput__M9_cipherTxt(Dafny.ISequence value) { @@ -621,7 +621,7 @@ public static System.IO.MemoryStream FromDafny_N3_aws__N12_cryptography__N10_pri } public static Dafny.ISequence ToDafny_N3_aws__N12_cryptography__N10_primitives__S15_AESDecryptInput__M9_cipherTxt(System.IO.MemoryStream value) { - return ToDafny_N6_smithy__N3_api__S4_Blob(value); + return ToDafny_N6_smithy__N3_api__S4_Blob((System.IO.MemoryStream)value); } public static System.IO.MemoryStream FromDafny_N3_aws__N12_cryptography__N10_primitives__S15_AESDecryptInput__M7_authTag(Dafny.ISequence value) { @@ -629,7 +629,7 @@ public static System.IO.MemoryStream FromDafny_N3_aws__N12_cryptography__N10_pri } public static Dafny.ISequence ToDafny_N3_aws__N12_cryptography__N10_primitives__S15_AESDecryptInput__M7_authTag(System.IO.MemoryStream value) { - return ToDafny_N6_smithy__N3_api__S4_Blob(value); + return ToDafny_N6_smithy__N3_api__S4_Blob((System.IO.MemoryStream)value); } public static System.IO.MemoryStream FromDafny_N3_aws__N12_cryptography__N10_primitives__S15_AESDecryptInput__M2_iv(Dafny.ISequence value) { @@ -637,7 +637,7 @@ public static System.IO.MemoryStream FromDafny_N3_aws__N12_cryptography__N10_pri } public static Dafny.ISequence ToDafny_N3_aws__N12_cryptography__N10_primitives__S15_AESDecryptInput__M2_iv(System.IO.MemoryStream value) { - return ToDafny_N6_smithy__N3_api__S4_Blob(value); + return ToDafny_N6_smithy__N3_api__S4_Blob((System.IO.MemoryStream)value); } public static System.IO.MemoryStream FromDafny_N3_aws__N12_cryptography__N10_primitives__S15_AESDecryptInput__M3_aad(Dafny.ISequence value) { @@ -645,7 +645,7 @@ public static System.IO.MemoryStream FromDafny_N3_aws__N12_cryptography__N10_pri } public static Dafny.ISequence ToDafny_N3_aws__N12_cryptography__N10_primitives__S15_AESDecryptInput__M3_aad(System.IO.MemoryStream value) { - return ToDafny_N6_smithy__N3_api__S4_Blob(value); + return ToDafny_N6_smithy__N3_api__S4_Blob((System.IO.MemoryStream)value); } public static System.IO.MemoryStream FromDafny_N3_aws__N12_cryptography__N10_primitives__S16_AESDecryptOutput__M9_plaintext(Dafny.ISequence value) { @@ -653,7 +653,7 @@ public static System.IO.MemoryStream FromDafny_N3_aws__N12_cryptography__N10_pri } public static Dafny.ISequence ToDafny_N3_aws__N12_cryptography__N10_primitives__S16_AESDecryptOutput__M9_plaintext(System.IO.MemoryStream value) { - return ToDafny_N6_smithy__N3_api__S4_Blob(value); + return ToDafny_N6_smithy__N3_api__S4_Blob((System.IO.MemoryStream)value); } public static AWS.Cryptography.Primitives.AES_GCM FromDafny_N3_aws__N12_cryptography__N10_primitives__S15_AESEncryptInput__M6_encAlg(software.amazon.cryptography.primitives.internaldafny.types._IAES__GCM value) { @@ -661,7 +661,7 @@ public static AWS.Cryptography.Primitives.AES_GCM FromDafny_N3_aws__N12_cryptogr } public static software.amazon.cryptography.primitives.internaldafny.types._IAES__GCM ToDafny_N3_aws__N12_cryptography__N10_primitives__S15_AESEncryptInput__M6_encAlg(AWS.Cryptography.Primitives.AES_GCM value) { - return ToDafny_N3_aws__N12_cryptography__N10_primitives__S7_AES_GCM(value); + return ToDafny_N3_aws__N12_cryptography__N10_primitives__S7_AES_GCM((AWS.Cryptography.Primitives.AES_GCM)value); } public static System.IO.MemoryStream FromDafny_N3_aws__N12_cryptography__N10_primitives__S15_AESEncryptInput__M2_iv(Dafny.ISequence value) { @@ -669,7 +669,7 @@ public static System.IO.MemoryStream FromDafny_N3_aws__N12_cryptography__N10_pri } public static Dafny.ISequence ToDafny_N3_aws__N12_cryptography__N10_primitives__S15_AESEncryptInput__M2_iv(System.IO.MemoryStream value) { - return ToDafny_N6_smithy__N3_api__S4_Blob(value); + return ToDafny_N6_smithy__N3_api__S4_Blob((System.IO.MemoryStream)value); } public static System.IO.MemoryStream FromDafny_N3_aws__N12_cryptography__N10_primitives__S15_AESEncryptInput__M3_key(Dafny.ISequence value) { @@ -677,7 +677,7 @@ public static System.IO.MemoryStream FromDafny_N3_aws__N12_cryptography__N10_pri } public static Dafny.ISequence ToDafny_N3_aws__N12_cryptography__N10_primitives__S15_AESEncryptInput__M3_key(System.IO.MemoryStream value) { - return ToDafny_N6_smithy__N3_api__S4_Blob(value); + return ToDafny_N6_smithy__N3_api__S4_Blob((System.IO.MemoryStream)value); } public static System.IO.MemoryStream FromDafny_N3_aws__N12_cryptography__N10_primitives__S15_AESEncryptInput__M3_msg(Dafny.ISequence value) { @@ -685,7 +685,7 @@ public static System.IO.MemoryStream FromDafny_N3_aws__N12_cryptography__N10_pri } public static Dafny.ISequence ToDafny_N3_aws__N12_cryptography__N10_primitives__S15_AESEncryptInput__M3_msg(System.IO.MemoryStream value) { - return ToDafny_N6_smithy__N3_api__S4_Blob(value); + return ToDafny_N6_smithy__N3_api__S4_Blob((System.IO.MemoryStream)value); } public static System.IO.MemoryStream FromDafny_N3_aws__N12_cryptography__N10_primitives__S15_AESEncryptInput__M3_aad(Dafny.ISequence value) { @@ -693,7 +693,7 @@ public static System.IO.MemoryStream FromDafny_N3_aws__N12_cryptography__N10_pri } public static Dafny.ISequence ToDafny_N3_aws__N12_cryptography__N10_primitives__S15_AESEncryptInput__M3_aad(System.IO.MemoryStream value) { - return ToDafny_N6_smithy__N3_api__S4_Blob(value); + return ToDafny_N6_smithy__N3_api__S4_Blob((System.IO.MemoryStream)value); } public static System.IO.MemoryStream FromDafny_N3_aws__N12_cryptography__N10_primitives__S16_AESEncryptOutput__M10_cipherText(Dafny.ISequence value) { @@ -701,7 +701,7 @@ public static System.IO.MemoryStream FromDafny_N3_aws__N12_cryptography__N10_pri } public static Dafny.ISequence ToDafny_N3_aws__N12_cryptography__N10_primitives__S16_AESEncryptOutput__M10_cipherText(System.IO.MemoryStream value) { - return ToDafny_N6_smithy__N3_api__S4_Blob(value); + return ToDafny_N6_smithy__N3_api__S4_Blob((System.IO.MemoryStream)value); } public static System.IO.MemoryStream FromDafny_N3_aws__N12_cryptography__N10_primitives__S16_AESEncryptOutput__M7_authTag(Dafny.ISequence value) { @@ -709,7 +709,7 @@ public static System.IO.MemoryStream FromDafny_N3_aws__N12_cryptography__N10_pri } public static Dafny.ISequence ToDafny_N3_aws__N12_cryptography__N10_primitives__S16_AESEncryptOutput__M7_authTag(System.IO.MemoryStream value) { - return ToDafny_N6_smithy__N3_api__S4_Blob(value); + return ToDafny_N6_smithy__N3_api__S4_Blob((System.IO.MemoryStream)value); } public static System.IO.MemoryStream FromDafny_N3_aws__N12_cryptography__N10_primitives__S14_AesKdfCtrInput__M3_ikm(Dafny.ISequence value) { @@ -717,15 +717,15 @@ public static System.IO.MemoryStream FromDafny_N3_aws__N12_cryptography__N10_pri } public static Dafny.ISequence ToDafny_N3_aws__N12_cryptography__N10_primitives__S14_AesKdfCtrInput__M3_ikm(System.IO.MemoryStream value) { - return ToDafny_N6_smithy__N3_api__S4_Blob(value); + return ToDafny_N6_smithy__N3_api__S4_Blob((System.IO.MemoryStream)value); } - public static int FromDafny_N3_aws__N12_cryptography__N10_primitives__S14_AesKdfCtrInput__M14_expectedLength(int value) + public static int? FromDafny_N3_aws__N12_cryptography__N10_primitives__S14_AesKdfCtrInput__M14_expectedLength(int value) { return FromDafny_N3_aws__N12_cryptography__N10_primitives__S15_PositiveInteger(value); } - public static int ToDafny_N3_aws__N12_cryptography__N10_primitives__S14_AesKdfCtrInput__M14_expectedLength(int value) + public static int ToDafny_N3_aws__N12_cryptography__N10_primitives__S14_AesKdfCtrInput__M14_expectedLength(int? value) { - return ToDafny_N3_aws__N12_cryptography__N10_primitives__S15_PositiveInteger(value); + return ToDafny_N3_aws__N12_cryptography__N10_primitives__S15_PositiveInteger((int)value); } public static System.IO.MemoryStream FromDafny_N3_aws__N12_cryptography__N10_primitives__S14_AesKdfCtrInput__M5_nonce(Wrappers_Compile._IOption> value) { @@ -741,7 +741,7 @@ public static System.IO.MemoryStream FromDafny_N3_aws__N12_cryptography__N10_pri } public static Dafny.ISequence ToDafny_N3_aws__N12_cryptography__N10_primitives__S15_AesKdfCtrOutput__M3_okm(System.IO.MemoryStream value) { - return ToDafny_N6_smithy__N3_api__S4_Blob(value); + return ToDafny_N6_smithy__N3_api__S4_Blob((System.IO.MemoryStream)value); } public static string FromDafny_N3_aws__N12_cryptography__N10_primitives__S31_AwsCryptographicPrimitivesError__M7_message(Dafny.ISequence value) { @@ -749,7 +749,7 @@ public static string FromDafny_N3_aws__N12_cryptography__N10_primitives__S31_Aws } public static Dafny.ISequence ToDafny_N3_aws__N12_cryptography__N10_primitives__S31_AwsCryptographicPrimitivesError__M7_message(string value) { - return ToDafny_N6_smithy__N3_api__S6_String(value); + return ToDafny_N6_smithy__N3_api__S6_String((string)value); } public static AWS.Cryptography.Primitives.ECCPublicKey FromDafny_N3_aws__N12_cryptography__N10_primitives__S22_CompressPublicKeyInput__M9_publicKey(software.amazon.cryptography.primitives.internaldafny.types._IECCPublicKey value) { @@ -757,7 +757,7 @@ public static AWS.Cryptography.Primitives.ECCPublicKey FromDafny_N3_aws__N12_cry } public static software.amazon.cryptography.primitives.internaldafny.types._IECCPublicKey ToDafny_N3_aws__N12_cryptography__N10_primitives__S22_CompressPublicKeyInput__M9_publicKey(AWS.Cryptography.Primitives.ECCPublicKey value) { - return ToDafny_N3_aws__N12_cryptography__N10_primitives__S12_ECCPublicKey(value); + return ToDafny_N3_aws__N12_cryptography__N10_primitives__S12_ECCPublicKey((AWS.Cryptography.Primitives.ECCPublicKey)value); } public static AWS.Cryptography.Primitives.ECDHCurveSpec FromDafny_N3_aws__N12_cryptography__N10_primitives__S22_CompressPublicKeyInput__M8_eccCurve(software.amazon.cryptography.primitives.internaldafny.types._IECDHCurveSpec value) { @@ -765,7 +765,7 @@ public static AWS.Cryptography.Primitives.ECDHCurveSpec FromDafny_N3_aws__N12_cr } public static software.amazon.cryptography.primitives.internaldafny.types._IECDHCurveSpec ToDafny_N3_aws__N12_cryptography__N10_primitives__S22_CompressPublicKeyInput__M8_eccCurve(AWS.Cryptography.Primitives.ECDHCurveSpec value) { - return ToDafny_N3_aws__N12_cryptography__N10_primitives__S13_ECDHCurveSpec(value); + return ToDafny_N3_aws__N12_cryptography__N10_primitives__S13_ECDHCurveSpec((AWS.Cryptography.Primitives.ECDHCurveSpec)value); } public static System.IO.MemoryStream FromDafny_N3_aws__N12_cryptography__N10_primitives__S23_CompressPublicKeyOutput__M19_compressedPublicKey(Dafny.ISequence value) { @@ -773,7 +773,7 @@ public static System.IO.MemoryStream FromDafny_N3_aws__N12_cryptography__N10_pri } public static Dafny.ISequence ToDafny_N3_aws__N12_cryptography__N10_primitives__S23_CompressPublicKeyOutput__M19_compressedPublicKey(System.IO.MemoryStream value) { - return ToDafny_N6_smithy__N3_api__S4_Blob(value); + return ToDafny_N6_smithy__N3_api__S4_Blob((System.IO.MemoryStream)value); } public static System.IO.MemoryStream FromDafny_N3_aws__N12_cryptography__N10_primitives__S24_DecompressPublicKeyInput__M19_compressedPublicKey(Dafny.ISequence value) { @@ -781,7 +781,7 @@ public static System.IO.MemoryStream FromDafny_N3_aws__N12_cryptography__N10_pri } public static Dafny.ISequence ToDafny_N3_aws__N12_cryptography__N10_primitives__S24_DecompressPublicKeyInput__M19_compressedPublicKey(System.IO.MemoryStream value) { - return ToDafny_N6_smithy__N3_api__S4_Blob(value); + return ToDafny_N6_smithy__N3_api__S4_Blob((System.IO.MemoryStream)value); } public static AWS.Cryptography.Primitives.ECDHCurveSpec FromDafny_N3_aws__N12_cryptography__N10_primitives__S24_DecompressPublicKeyInput__M8_eccCurve(software.amazon.cryptography.primitives.internaldafny.types._IECDHCurveSpec value) { @@ -789,7 +789,7 @@ public static AWS.Cryptography.Primitives.ECDHCurveSpec FromDafny_N3_aws__N12_cr } public static software.amazon.cryptography.primitives.internaldafny.types._IECDHCurveSpec ToDafny_N3_aws__N12_cryptography__N10_primitives__S24_DecompressPublicKeyInput__M8_eccCurve(AWS.Cryptography.Primitives.ECDHCurveSpec value) { - return ToDafny_N3_aws__N12_cryptography__N10_primitives__S13_ECDHCurveSpec(value); + return ToDafny_N3_aws__N12_cryptography__N10_primitives__S13_ECDHCurveSpec((AWS.Cryptography.Primitives.ECDHCurveSpec)value); } public static AWS.Cryptography.Primitives.ECCPublicKey FromDafny_N3_aws__N12_cryptography__N10_primitives__S25_DecompressPublicKeyOutput__M9_publicKey(software.amazon.cryptography.primitives.internaldafny.types._IECCPublicKey value) { @@ -797,7 +797,7 @@ public static AWS.Cryptography.Primitives.ECCPublicKey FromDafny_N3_aws__N12_cry } public static software.amazon.cryptography.primitives.internaldafny.types._IECCPublicKey ToDafny_N3_aws__N12_cryptography__N10_primitives__S25_DecompressPublicKeyOutput__M9_publicKey(AWS.Cryptography.Primitives.ECCPublicKey value) { - return ToDafny_N3_aws__N12_cryptography__N10_primitives__S12_ECCPublicKey(value); + return ToDafny_N3_aws__N12_cryptography__N10_primitives__S12_ECCPublicKey((AWS.Cryptography.Primitives.ECCPublicKey)value); } public static AWS.Cryptography.Primitives.ECDHCurveSpec FromDafny_N3_aws__N12_cryptography__N10_primitives__S23_DeriveSharedSecretInput__M8_eccCurve(software.amazon.cryptography.primitives.internaldafny.types._IECDHCurveSpec value) { @@ -805,7 +805,7 @@ public static AWS.Cryptography.Primitives.ECDHCurveSpec FromDafny_N3_aws__N12_cr } public static software.amazon.cryptography.primitives.internaldafny.types._IECDHCurveSpec ToDafny_N3_aws__N12_cryptography__N10_primitives__S23_DeriveSharedSecretInput__M8_eccCurve(AWS.Cryptography.Primitives.ECDHCurveSpec value) { - return ToDafny_N3_aws__N12_cryptography__N10_primitives__S13_ECDHCurveSpec(value); + return ToDafny_N3_aws__N12_cryptography__N10_primitives__S13_ECDHCurveSpec((AWS.Cryptography.Primitives.ECDHCurveSpec)value); } public static AWS.Cryptography.Primitives.ECCPrivateKey FromDafny_N3_aws__N12_cryptography__N10_primitives__S23_DeriveSharedSecretInput__M10_privateKey(software.amazon.cryptography.primitives.internaldafny.types._IECCPrivateKey value) { @@ -813,7 +813,7 @@ public static AWS.Cryptography.Primitives.ECCPrivateKey FromDafny_N3_aws__N12_cr } public static software.amazon.cryptography.primitives.internaldafny.types._IECCPrivateKey ToDafny_N3_aws__N12_cryptography__N10_primitives__S23_DeriveSharedSecretInput__M10_privateKey(AWS.Cryptography.Primitives.ECCPrivateKey value) { - return ToDafny_N3_aws__N12_cryptography__N10_primitives__S13_ECCPrivateKey(value); + return ToDafny_N3_aws__N12_cryptography__N10_primitives__S13_ECCPrivateKey((AWS.Cryptography.Primitives.ECCPrivateKey)value); } public static AWS.Cryptography.Primitives.ECCPublicKey FromDafny_N3_aws__N12_cryptography__N10_primitives__S23_DeriveSharedSecretInput__M9_publicKey(software.amazon.cryptography.primitives.internaldafny.types._IECCPublicKey value) { @@ -821,7 +821,7 @@ public static AWS.Cryptography.Primitives.ECCPublicKey FromDafny_N3_aws__N12_cry } public static software.amazon.cryptography.primitives.internaldafny.types._IECCPublicKey ToDafny_N3_aws__N12_cryptography__N10_primitives__S23_DeriveSharedSecretInput__M9_publicKey(AWS.Cryptography.Primitives.ECCPublicKey value) { - return ToDafny_N3_aws__N12_cryptography__N10_primitives__S12_ECCPublicKey(value); + return ToDafny_N3_aws__N12_cryptography__N10_primitives__S12_ECCPublicKey((AWS.Cryptography.Primitives.ECCPublicKey)value); } public static System.IO.MemoryStream FromDafny_N3_aws__N12_cryptography__N10_primitives__S24_DeriveSharedSecretOutput__M12_sharedSecret(Dafny.ISequence value) { @@ -829,7 +829,7 @@ public static System.IO.MemoryStream FromDafny_N3_aws__N12_cryptography__N10_pri } public static Dafny.ISequence ToDafny_N3_aws__N12_cryptography__N10_primitives__S24_DeriveSharedSecretOutput__M12_sharedSecret(System.IO.MemoryStream value) { - return ToDafny_N6_smithy__N3_api__S4_Blob(value); + return ToDafny_N6_smithy__N3_api__S4_Blob((System.IO.MemoryStream)value); } public static AWS.Cryptography.Primitives.DigestAlgorithm FromDafny_N3_aws__N12_cryptography__N10_primitives__S11_DigestInput__M15_digestAlgorithm(software.amazon.cryptography.primitives.internaldafny.types._IDigestAlgorithm value) { @@ -837,7 +837,7 @@ public static AWS.Cryptography.Primitives.DigestAlgorithm FromDafny_N3_aws__N12_ } public static software.amazon.cryptography.primitives.internaldafny.types._IDigestAlgorithm ToDafny_N3_aws__N12_cryptography__N10_primitives__S11_DigestInput__M15_digestAlgorithm(AWS.Cryptography.Primitives.DigestAlgorithm value) { - return ToDafny_N3_aws__N12_cryptography__N10_primitives__S15_DigestAlgorithm(value); + return ToDafny_N3_aws__N12_cryptography__N10_primitives__S15_DigestAlgorithm((AWS.Cryptography.Primitives.DigestAlgorithm)value); } public static System.IO.MemoryStream FromDafny_N3_aws__N12_cryptography__N10_primitives__S11_DigestInput__M7_message(Dafny.ISequence value) { @@ -845,7 +845,7 @@ public static System.IO.MemoryStream FromDafny_N3_aws__N12_cryptography__N10_pri } public static Dafny.ISequence ToDafny_N3_aws__N12_cryptography__N10_primitives__S11_DigestInput__M7_message(System.IO.MemoryStream value) { - return ToDafny_N6_smithy__N3_api__S4_Blob(value); + return ToDafny_N6_smithy__N3_api__S4_Blob((System.IO.MemoryStream)value); } public static System.IO.MemoryStream FromDafny_N3_aws__N12_cryptography__N10_primitives__S12_DigestOutput__M6_digest(Dafny.ISequence value) { @@ -853,7 +853,7 @@ public static System.IO.MemoryStream FromDafny_N3_aws__N12_cryptography__N10_pri } public static Dafny.ISequence ToDafny_N3_aws__N12_cryptography__N10_primitives__S12_DigestOutput__M6_digest(System.IO.MemoryStream value) { - return ToDafny_N6_smithy__N3_api__S4_Blob(value); + return ToDafny_N6_smithy__N3_api__S4_Blob((System.IO.MemoryStream)value); } public static AWS.Cryptography.Primitives.ECDSASignatureAlgorithm FromDafny_N3_aws__N12_cryptography__N10_primitives__S14_ECDSASignInput__M18_signatureAlgorithm(software.amazon.cryptography.primitives.internaldafny.types._IECDSASignatureAlgorithm value) { @@ -861,7 +861,7 @@ public static AWS.Cryptography.Primitives.ECDSASignatureAlgorithm FromDafny_N3_a } public static software.amazon.cryptography.primitives.internaldafny.types._IECDSASignatureAlgorithm ToDafny_N3_aws__N12_cryptography__N10_primitives__S14_ECDSASignInput__M18_signatureAlgorithm(AWS.Cryptography.Primitives.ECDSASignatureAlgorithm value) { - return ToDafny_N3_aws__N12_cryptography__N10_primitives__S23_ECDSASignatureAlgorithm(value); + return ToDafny_N3_aws__N12_cryptography__N10_primitives__S23_ECDSASignatureAlgorithm((AWS.Cryptography.Primitives.ECDSASignatureAlgorithm)value); } public static System.IO.MemoryStream FromDafny_N3_aws__N12_cryptography__N10_primitives__S14_ECDSASignInput__M10_signingKey(Dafny.ISequence value) { @@ -869,7 +869,7 @@ public static System.IO.MemoryStream FromDafny_N3_aws__N12_cryptography__N10_pri } public static Dafny.ISequence ToDafny_N3_aws__N12_cryptography__N10_primitives__S14_ECDSASignInput__M10_signingKey(System.IO.MemoryStream value) { - return ToDafny_N6_smithy__N3_api__S4_Blob(value); + return ToDafny_N6_smithy__N3_api__S4_Blob((System.IO.MemoryStream)value); } public static System.IO.MemoryStream FromDafny_N3_aws__N12_cryptography__N10_primitives__S14_ECDSASignInput__M7_message(Dafny.ISequence value) { @@ -877,7 +877,7 @@ public static System.IO.MemoryStream FromDafny_N3_aws__N12_cryptography__N10_pri } public static Dafny.ISequence ToDafny_N3_aws__N12_cryptography__N10_primitives__S14_ECDSASignInput__M7_message(System.IO.MemoryStream value) { - return ToDafny_N6_smithy__N3_api__S4_Blob(value); + return ToDafny_N6_smithy__N3_api__S4_Blob((System.IO.MemoryStream)value); } public static System.IO.MemoryStream FromDafny_N3_aws__N12_cryptography__N10_primitives__S15_ECDSASignOutput__M9_signature(Dafny.ISequence value) { @@ -885,7 +885,7 @@ public static System.IO.MemoryStream FromDafny_N3_aws__N12_cryptography__N10_pri } public static Dafny.ISequence ToDafny_N3_aws__N12_cryptography__N10_primitives__S15_ECDSASignOutput__M9_signature(System.IO.MemoryStream value) { - return ToDafny_N6_smithy__N3_api__S4_Blob(value); + return ToDafny_N6_smithy__N3_api__S4_Blob((System.IO.MemoryStream)value); } public static AWS.Cryptography.Primitives.ECDSASignatureAlgorithm FromDafny_N3_aws__N12_cryptography__N10_primitives__S16_ECDSAVerifyInput__M18_signatureAlgorithm(software.amazon.cryptography.primitives.internaldafny.types._IECDSASignatureAlgorithm value) { @@ -893,7 +893,7 @@ public static AWS.Cryptography.Primitives.ECDSASignatureAlgorithm FromDafny_N3_a } public static software.amazon.cryptography.primitives.internaldafny.types._IECDSASignatureAlgorithm ToDafny_N3_aws__N12_cryptography__N10_primitives__S16_ECDSAVerifyInput__M18_signatureAlgorithm(AWS.Cryptography.Primitives.ECDSASignatureAlgorithm value) { - return ToDafny_N3_aws__N12_cryptography__N10_primitives__S23_ECDSASignatureAlgorithm(value); + return ToDafny_N3_aws__N12_cryptography__N10_primitives__S23_ECDSASignatureAlgorithm((AWS.Cryptography.Primitives.ECDSASignatureAlgorithm)value); } public static System.IO.MemoryStream FromDafny_N3_aws__N12_cryptography__N10_primitives__S16_ECDSAVerifyInput__M15_verificationKey(Dafny.ISequence value) { @@ -901,7 +901,7 @@ public static System.IO.MemoryStream FromDafny_N3_aws__N12_cryptography__N10_pri } public static Dafny.ISequence ToDafny_N3_aws__N12_cryptography__N10_primitives__S16_ECDSAVerifyInput__M15_verificationKey(System.IO.MemoryStream value) { - return ToDafny_N6_smithy__N3_api__S4_Blob(value); + return ToDafny_N6_smithy__N3_api__S4_Blob((System.IO.MemoryStream)value); } public static System.IO.MemoryStream FromDafny_N3_aws__N12_cryptography__N10_primitives__S16_ECDSAVerifyInput__M7_message(Dafny.ISequence value) { @@ -909,7 +909,7 @@ public static System.IO.MemoryStream FromDafny_N3_aws__N12_cryptography__N10_pri } public static Dafny.ISequence ToDafny_N3_aws__N12_cryptography__N10_primitives__S16_ECDSAVerifyInput__M7_message(System.IO.MemoryStream value) { - return ToDafny_N6_smithy__N3_api__S4_Blob(value); + return ToDafny_N6_smithy__N3_api__S4_Blob((System.IO.MemoryStream)value); } public static System.IO.MemoryStream FromDafny_N3_aws__N12_cryptography__N10_primitives__S16_ECDSAVerifyInput__M9_signature(Dafny.ISequence value) { @@ -917,15 +917,15 @@ public static System.IO.MemoryStream FromDafny_N3_aws__N12_cryptography__N10_pri } public static Dafny.ISequence ToDafny_N3_aws__N12_cryptography__N10_primitives__S16_ECDSAVerifyInput__M9_signature(System.IO.MemoryStream value) { - return ToDafny_N6_smithy__N3_api__S4_Blob(value); + return ToDafny_N6_smithy__N3_api__S4_Blob((System.IO.MemoryStream)value); } - public static bool FromDafny_N3_aws__N12_cryptography__N10_primitives__S17_ECDSAVerifyOutput__M7_success(bool value) + public static bool? FromDafny_N3_aws__N12_cryptography__N10_primitives__S17_ECDSAVerifyOutput__M7_success(bool value) { return FromDafny_N6_smithy__N3_api__S7_Boolean(value); } - public static bool ToDafny_N3_aws__N12_cryptography__N10_primitives__S17_ECDSAVerifyOutput__M7_success(bool value) + public static bool ToDafny_N3_aws__N12_cryptography__N10_primitives__S17_ECDSAVerifyOutput__M7_success(bool? value) { - return ToDafny_N6_smithy__N3_api__S7_Boolean(value); + return ToDafny_N6_smithy__N3_api__S7_Boolean((bool)value); } public static AWS.Cryptography.Primitives.ECDHCurveSpec FromDafny_N3_aws__N12_cryptography__N10_primitives__S23_GenerateECCKeyPairInput__M8_eccCurve(software.amazon.cryptography.primitives.internaldafny.types._IECDHCurveSpec value) { @@ -933,7 +933,7 @@ public static AWS.Cryptography.Primitives.ECDHCurveSpec FromDafny_N3_aws__N12_cr } public static software.amazon.cryptography.primitives.internaldafny.types._IECDHCurveSpec ToDafny_N3_aws__N12_cryptography__N10_primitives__S23_GenerateECCKeyPairInput__M8_eccCurve(AWS.Cryptography.Primitives.ECDHCurveSpec value) { - return ToDafny_N3_aws__N12_cryptography__N10_primitives__S13_ECDHCurveSpec(value); + return ToDafny_N3_aws__N12_cryptography__N10_primitives__S13_ECDHCurveSpec((AWS.Cryptography.Primitives.ECDHCurveSpec)value); } public static AWS.Cryptography.Primitives.ECDHCurveSpec FromDafny_N3_aws__N12_cryptography__N10_primitives__S24_GenerateECCKeyPairOutput__M8_eccCurve(software.amazon.cryptography.primitives.internaldafny.types._IECDHCurveSpec value) { @@ -941,7 +941,7 @@ public static AWS.Cryptography.Primitives.ECDHCurveSpec FromDafny_N3_aws__N12_cr } public static software.amazon.cryptography.primitives.internaldafny.types._IECDHCurveSpec ToDafny_N3_aws__N12_cryptography__N10_primitives__S24_GenerateECCKeyPairOutput__M8_eccCurve(AWS.Cryptography.Primitives.ECDHCurveSpec value) { - return ToDafny_N3_aws__N12_cryptography__N10_primitives__S13_ECDHCurveSpec(value); + return ToDafny_N3_aws__N12_cryptography__N10_primitives__S13_ECDHCurveSpec((AWS.Cryptography.Primitives.ECDHCurveSpec)value); } public static AWS.Cryptography.Primitives.ECCPrivateKey FromDafny_N3_aws__N12_cryptography__N10_primitives__S24_GenerateECCKeyPairOutput__M10_privateKey(software.amazon.cryptography.primitives.internaldafny.types._IECCPrivateKey value) { @@ -949,7 +949,7 @@ public static AWS.Cryptography.Primitives.ECCPrivateKey FromDafny_N3_aws__N12_cr } public static software.amazon.cryptography.primitives.internaldafny.types._IECCPrivateKey ToDafny_N3_aws__N12_cryptography__N10_primitives__S24_GenerateECCKeyPairOutput__M10_privateKey(AWS.Cryptography.Primitives.ECCPrivateKey value) { - return ToDafny_N3_aws__N12_cryptography__N10_primitives__S13_ECCPrivateKey(value); + return ToDafny_N3_aws__N12_cryptography__N10_primitives__S13_ECCPrivateKey((AWS.Cryptography.Primitives.ECCPrivateKey)value); } public static AWS.Cryptography.Primitives.ECCPublicKey FromDafny_N3_aws__N12_cryptography__N10_primitives__S24_GenerateECCKeyPairOutput__M9_publicKey(software.amazon.cryptography.primitives.internaldafny.types._IECCPublicKey value) { @@ -957,7 +957,7 @@ public static AWS.Cryptography.Primitives.ECCPublicKey FromDafny_N3_aws__N12_cry } public static software.amazon.cryptography.primitives.internaldafny.types._IECCPublicKey ToDafny_N3_aws__N12_cryptography__N10_primitives__S24_GenerateECCKeyPairOutput__M9_publicKey(AWS.Cryptography.Primitives.ECCPublicKey value) { - return ToDafny_N3_aws__N12_cryptography__N10_primitives__S12_ECCPublicKey(value); + return ToDafny_N3_aws__N12_cryptography__N10_primitives__S12_ECCPublicKey((AWS.Cryptography.Primitives.ECCPublicKey)value); } public static AWS.Cryptography.Primitives.ECDSASignatureAlgorithm FromDafny_N3_aws__N12_cryptography__N10_primitives__S30_GenerateECDSASignatureKeyInput__M18_signatureAlgorithm(software.amazon.cryptography.primitives.internaldafny.types._IECDSASignatureAlgorithm value) { @@ -965,7 +965,7 @@ public static AWS.Cryptography.Primitives.ECDSASignatureAlgorithm FromDafny_N3_a } public static software.amazon.cryptography.primitives.internaldafny.types._IECDSASignatureAlgorithm ToDafny_N3_aws__N12_cryptography__N10_primitives__S30_GenerateECDSASignatureKeyInput__M18_signatureAlgorithm(AWS.Cryptography.Primitives.ECDSASignatureAlgorithm value) { - return ToDafny_N3_aws__N12_cryptography__N10_primitives__S23_ECDSASignatureAlgorithm(value); + return ToDafny_N3_aws__N12_cryptography__N10_primitives__S23_ECDSASignatureAlgorithm((AWS.Cryptography.Primitives.ECDSASignatureAlgorithm)value); } public static AWS.Cryptography.Primitives.ECDSASignatureAlgorithm FromDafny_N3_aws__N12_cryptography__N10_primitives__S31_GenerateECDSASignatureKeyOutput__M18_signatureAlgorithm(software.amazon.cryptography.primitives.internaldafny.types._IECDSASignatureAlgorithm value) { @@ -973,7 +973,7 @@ public static AWS.Cryptography.Primitives.ECDSASignatureAlgorithm FromDafny_N3_a } public static software.amazon.cryptography.primitives.internaldafny.types._IECDSASignatureAlgorithm ToDafny_N3_aws__N12_cryptography__N10_primitives__S31_GenerateECDSASignatureKeyOutput__M18_signatureAlgorithm(AWS.Cryptography.Primitives.ECDSASignatureAlgorithm value) { - return ToDafny_N3_aws__N12_cryptography__N10_primitives__S23_ECDSASignatureAlgorithm(value); + return ToDafny_N3_aws__N12_cryptography__N10_primitives__S23_ECDSASignatureAlgorithm((AWS.Cryptography.Primitives.ECDSASignatureAlgorithm)value); } public static System.IO.MemoryStream FromDafny_N3_aws__N12_cryptography__N10_primitives__S31_GenerateECDSASignatureKeyOutput__M15_verificationKey(Dafny.ISequence value) { @@ -981,7 +981,7 @@ public static System.IO.MemoryStream FromDafny_N3_aws__N12_cryptography__N10_pri } public static Dafny.ISequence ToDafny_N3_aws__N12_cryptography__N10_primitives__S31_GenerateECDSASignatureKeyOutput__M15_verificationKey(System.IO.MemoryStream value) { - return ToDafny_N6_smithy__N3_api__S4_Blob(value); + return ToDafny_N6_smithy__N3_api__S4_Blob((System.IO.MemoryStream)value); } public static System.IO.MemoryStream FromDafny_N3_aws__N12_cryptography__N10_primitives__S31_GenerateECDSASignatureKeyOutput__M10_signingKey(Dafny.ISequence value) { @@ -989,15 +989,15 @@ public static System.IO.MemoryStream FromDafny_N3_aws__N12_cryptography__N10_pri } public static Dafny.ISequence ToDafny_N3_aws__N12_cryptography__N10_primitives__S31_GenerateECDSASignatureKeyOutput__M10_signingKey(System.IO.MemoryStream value) { - return ToDafny_N6_smithy__N3_api__S4_Blob(value); + return ToDafny_N6_smithy__N3_api__S4_Blob((System.IO.MemoryStream)value); } - public static int FromDafny_N3_aws__N12_cryptography__N10_primitives__S24_GenerateRandomBytesInput__M6_length(int value) + public static int? FromDafny_N3_aws__N12_cryptography__N10_primitives__S24_GenerateRandomBytesInput__M6_length(int value) { return FromDafny_N3_aws__N12_cryptography__N10_primitives__S15_PositiveInteger(value); } - public static int ToDafny_N3_aws__N12_cryptography__N10_primitives__S24_GenerateRandomBytesInput__M6_length(int value) + public static int ToDafny_N3_aws__N12_cryptography__N10_primitives__S24_GenerateRandomBytesInput__M6_length(int? value) { - return ToDafny_N3_aws__N12_cryptography__N10_primitives__S15_PositiveInteger(value); + return ToDafny_N3_aws__N12_cryptography__N10_primitives__S15_PositiveInteger((int)value); } public static System.IO.MemoryStream FromDafny_N3_aws__N12_cryptography__N10_primitives__S25_GenerateRandomBytesOutput__M4_data(Dafny.ISequence value) { @@ -1005,15 +1005,15 @@ public static System.IO.MemoryStream FromDafny_N3_aws__N12_cryptography__N10_pri } public static Dafny.ISequence ToDafny_N3_aws__N12_cryptography__N10_primitives__S25_GenerateRandomBytesOutput__M4_data(System.IO.MemoryStream value) { - return ToDafny_N6_smithy__N3_api__S4_Blob(value); + return ToDafny_N6_smithy__N3_api__S4_Blob((System.IO.MemoryStream)value); } - public static int FromDafny_N3_aws__N12_cryptography__N10_primitives__S23_GenerateRSAKeyPairInput__M10_lengthBits(int value) + public static int? FromDafny_N3_aws__N12_cryptography__N10_primitives__S23_GenerateRSAKeyPairInput__M10_lengthBits(int value) { return FromDafny_N3_aws__N12_cryptography__N10_primitives__S30_RSAModulusLengthBitsToGenerate(value); } - public static int ToDafny_N3_aws__N12_cryptography__N10_primitives__S23_GenerateRSAKeyPairInput__M10_lengthBits(int value) + public static int ToDafny_N3_aws__N12_cryptography__N10_primitives__S23_GenerateRSAKeyPairInput__M10_lengthBits(int? value) { - return ToDafny_N3_aws__N12_cryptography__N10_primitives__S30_RSAModulusLengthBitsToGenerate(value); + return ToDafny_N3_aws__N12_cryptography__N10_primitives__S30_RSAModulusLengthBitsToGenerate((int)value); } public static AWS.Cryptography.Primitives.RSAPublicKey FromDafny_N3_aws__N12_cryptography__N10_primitives__S24_GenerateRSAKeyPairOutput__M9_publicKey(software.amazon.cryptography.primitives.internaldafny.types._IRSAPublicKey value) { @@ -1021,7 +1021,7 @@ public static AWS.Cryptography.Primitives.RSAPublicKey FromDafny_N3_aws__N12_cry } public static software.amazon.cryptography.primitives.internaldafny.types._IRSAPublicKey ToDafny_N3_aws__N12_cryptography__N10_primitives__S24_GenerateRSAKeyPairOutput__M9_publicKey(AWS.Cryptography.Primitives.RSAPublicKey value) { - return ToDafny_N3_aws__N12_cryptography__N10_primitives__S12_RSAPublicKey(value); + return ToDafny_N3_aws__N12_cryptography__N10_primitives__S12_RSAPublicKey((AWS.Cryptography.Primitives.RSAPublicKey)value); } public static AWS.Cryptography.Primitives.RSAPrivateKey FromDafny_N3_aws__N12_cryptography__N10_primitives__S24_GenerateRSAKeyPairOutput__M10_privateKey(software.amazon.cryptography.primitives.internaldafny.types._IRSAPrivateKey value) { @@ -1029,7 +1029,7 @@ public static AWS.Cryptography.Primitives.RSAPrivateKey FromDafny_N3_aws__N12_cr } public static software.amazon.cryptography.primitives.internaldafny.types._IRSAPrivateKey ToDafny_N3_aws__N12_cryptography__N10_primitives__S24_GenerateRSAKeyPairOutput__M10_privateKey(AWS.Cryptography.Primitives.RSAPrivateKey value) { - return ToDafny_N3_aws__N12_cryptography__N10_primitives__S13_RSAPrivateKey(value); + return ToDafny_N3_aws__N12_cryptography__N10_primitives__S13_RSAPrivateKey((AWS.Cryptography.Primitives.RSAPrivateKey)value); } public static AWS.Cryptography.Primitives.ECDHCurveSpec FromDafny_N3_aws__N12_cryptography__N10_primitives__S31_GetPublicKeyFromPrivateKeyInput__M8_eccCurve(software.amazon.cryptography.primitives.internaldafny.types._IECDHCurveSpec value) { @@ -1037,7 +1037,7 @@ public static AWS.Cryptography.Primitives.ECDHCurveSpec FromDafny_N3_aws__N12_cr } public static software.amazon.cryptography.primitives.internaldafny.types._IECDHCurveSpec ToDafny_N3_aws__N12_cryptography__N10_primitives__S31_GetPublicKeyFromPrivateKeyInput__M8_eccCurve(AWS.Cryptography.Primitives.ECDHCurveSpec value) { - return ToDafny_N3_aws__N12_cryptography__N10_primitives__S13_ECDHCurveSpec(value); + return ToDafny_N3_aws__N12_cryptography__N10_primitives__S13_ECDHCurveSpec((AWS.Cryptography.Primitives.ECDHCurveSpec)value); } public static AWS.Cryptography.Primitives.ECCPrivateKey FromDafny_N3_aws__N12_cryptography__N10_primitives__S31_GetPublicKeyFromPrivateKeyInput__M10_privateKey(software.amazon.cryptography.primitives.internaldafny.types._IECCPrivateKey value) { @@ -1045,7 +1045,7 @@ public static AWS.Cryptography.Primitives.ECCPrivateKey FromDafny_N3_aws__N12_cr } public static software.amazon.cryptography.primitives.internaldafny.types._IECCPrivateKey ToDafny_N3_aws__N12_cryptography__N10_primitives__S31_GetPublicKeyFromPrivateKeyInput__M10_privateKey(AWS.Cryptography.Primitives.ECCPrivateKey value) { - return ToDafny_N3_aws__N12_cryptography__N10_primitives__S13_ECCPrivateKey(value); + return ToDafny_N3_aws__N12_cryptography__N10_primitives__S13_ECCPrivateKey((AWS.Cryptography.Primitives.ECCPrivateKey)value); } public static AWS.Cryptography.Primitives.ECDHCurveSpec FromDafny_N3_aws__N12_cryptography__N10_primitives__S32_GetPublicKeyFromPrivateKeyOutput__M8_eccCurve(software.amazon.cryptography.primitives.internaldafny.types._IECDHCurveSpec value) { @@ -1053,7 +1053,7 @@ public static AWS.Cryptography.Primitives.ECDHCurveSpec FromDafny_N3_aws__N12_cr } public static software.amazon.cryptography.primitives.internaldafny.types._IECDHCurveSpec ToDafny_N3_aws__N12_cryptography__N10_primitives__S32_GetPublicKeyFromPrivateKeyOutput__M8_eccCurve(AWS.Cryptography.Primitives.ECDHCurveSpec value) { - return ToDafny_N3_aws__N12_cryptography__N10_primitives__S13_ECDHCurveSpec(value); + return ToDafny_N3_aws__N12_cryptography__N10_primitives__S13_ECDHCurveSpec((AWS.Cryptography.Primitives.ECDHCurveSpec)value); } public static AWS.Cryptography.Primitives.ECCPrivateKey FromDafny_N3_aws__N12_cryptography__N10_primitives__S32_GetPublicKeyFromPrivateKeyOutput__M10_privateKey(software.amazon.cryptography.primitives.internaldafny.types._IECCPrivateKey value) { @@ -1061,7 +1061,7 @@ public static AWS.Cryptography.Primitives.ECCPrivateKey FromDafny_N3_aws__N12_cr } public static software.amazon.cryptography.primitives.internaldafny.types._IECCPrivateKey ToDafny_N3_aws__N12_cryptography__N10_primitives__S32_GetPublicKeyFromPrivateKeyOutput__M10_privateKey(AWS.Cryptography.Primitives.ECCPrivateKey value) { - return ToDafny_N3_aws__N12_cryptography__N10_primitives__S13_ECCPrivateKey(value); + return ToDafny_N3_aws__N12_cryptography__N10_primitives__S13_ECCPrivateKey((AWS.Cryptography.Primitives.ECCPrivateKey)value); } public static System.IO.MemoryStream FromDafny_N3_aws__N12_cryptography__N10_primitives__S32_GetPublicKeyFromPrivateKeyOutput__M9_publicKey(Dafny.ISequence value) { @@ -1069,7 +1069,7 @@ public static System.IO.MemoryStream FromDafny_N3_aws__N12_cryptography__N10_pri } public static Dafny.ISequence ToDafny_N3_aws__N12_cryptography__N10_primitives__S32_GetPublicKeyFromPrivateKeyOutput__M9_publicKey(System.IO.MemoryStream value) { - return ToDafny_N6_smithy__N3_api__S4_Blob(value); + return ToDafny_N6_smithy__N3_api__S4_Blob((System.IO.MemoryStream)value); } public static System.IO.MemoryStream FromDafny_N3_aws__N12_cryptography__N10_primitives__S27_GetRSAKeyModulusLengthInput__M9_publicKey(Dafny.ISequence value) { @@ -1077,15 +1077,15 @@ public static System.IO.MemoryStream FromDafny_N3_aws__N12_cryptography__N10_pri } public static Dafny.ISequence ToDafny_N3_aws__N12_cryptography__N10_primitives__S27_GetRSAKeyModulusLengthInput__M9_publicKey(System.IO.MemoryStream value) { - return ToDafny_N6_smithy__N3_api__S4_Blob(value); + return ToDafny_N6_smithy__N3_api__S4_Blob((System.IO.MemoryStream)value); } - public static int FromDafny_N3_aws__N12_cryptography__N10_primitives__S28_GetRSAKeyModulusLengthOutput__M6_length(int value) + public static int? FromDafny_N3_aws__N12_cryptography__N10_primitives__S28_GetRSAKeyModulusLengthOutput__M6_length(int value) { return FromDafny_N3_aws__N12_cryptography__N10_primitives__S20_RSAModulusLengthBits(value); } - public static int ToDafny_N3_aws__N12_cryptography__N10_primitives__S28_GetRSAKeyModulusLengthOutput__M6_length(int value) + public static int ToDafny_N3_aws__N12_cryptography__N10_primitives__S28_GetRSAKeyModulusLengthOutput__M6_length(int? value) { - return ToDafny_N3_aws__N12_cryptography__N10_primitives__S20_RSAModulusLengthBits(value); + return ToDafny_N3_aws__N12_cryptography__N10_primitives__S20_RSAModulusLengthBits((int)value); } public static AWS.Cryptography.Primitives.DigestAlgorithm FromDafny_N3_aws__N12_cryptography__N10_primitives__S15_HkdfExpandInput__M15_digestAlgorithm(software.amazon.cryptography.primitives.internaldafny.types._IDigestAlgorithm value) { @@ -1093,7 +1093,7 @@ public static AWS.Cryptography.Primitives.DigestAlgorithm FromDafny_N3_aws__N12_ } public static software.amazon.cryptography.primitives.internaldafny.types._IDigestAlgorithm ToDafny_N3_aws__N12_cryptography__N10_primitives__S15_HkdfExpandInput__M15_digestAlgorithm(AWS.Cryptography.Primitives.DigestAlgorithm value) { - return ToDafny_N3_aws__N12_cryptography__N10_primitives__S15_DigestAlgorithm(value); + return ToDafny_N3_aws__N12_cryptography__N10_primitives__S15_DigestAlgorithm((AWS.Cryptography.Primitives.DigestAlgorithm)value); } public static System.IO.MemoryStream FromDafny_N3_aws__N12_cryptography__N10_primitives__S15_HkdfExpandInput__M3_prk(Dafny.ISequence value) { @@ -1101,7 +1101,7 @@ public static System.IO.MemoryStream FromDafny_N3_aws__N12_cryptography__N10_pri } public static Dafny.ISequence ToDafny_N3_aws__N12_cryptography__N10_primitives__S15_HkdfExpandInput__M3_prk(System.IO.MemoryStream value) { - return ToDafny_N6_smithy__N3_api__S4_Blob(value); + return ToDafny_N6_smithy__N3_api__S4_Blob((System.IO.MemoryStream)value); } public static System.IO.MemoryStream FromDafny_N3_aws__N12_cryptography__N10_primitives__S15_HkdfExpandInput__M4_info(Dafny.ISequence value) { @@ -1109,15 +1109,15 @@ public static System.IO.MemoryStream FromDafny_N3_aws__N12_cryptography__N10_pri } public static Dafny.ISequence ToDafny_N3_aws__N12_cryptography__N10_primitives__S15_HkdfExpandInput__M4_info(System.IO.MemoryStream value) { - return ToDafny_N6_smithy__N3_api__S4_Blob(value); + return ToDafny_N6_smithy__N3_api__S4_Blob((System.IO.MemoryStream)value); } - public static int FromDafny_N3_aws__N12_cryptography__N10_primitives__S15_HkdfExpandInput__M14_expectedLength(int value) + public static int? FromDafny_N3_aws__N12_cryptography__N10_primitives__S15_HkdfExpandInput__M14_expectedLength(int value) { return FromDafny_N3_aws__N12_cryptography__N10_primitives__S15_PositiveInteger(value); } - public static int ToDafny_N3_aws__N12_cryptography__N10_primitives__S15_HkdfExpandInput__M14_expectedLength(int value) + public static int ToDafny_N3_aws__N12_cryptography__N10_primitives__S15_HkdfExpandInput__M14_expectedLength(int? value) { - return ToDafny_N3_aws__N12_cryptography__N10_primitives__S15_PositiveInteger(value); + return ToDafny_N3_aws__N12_cryptography__N10_primitives__S15_PositiveInteger((int)value); } public static System.IO.MemoryStream FromDafny_N3_aws__N12_cryptography__N10_primitives__S16_HkdfExpandOutput__M3_okm(Dafny.ISequence value) { @@ -1125,7 +1125,7 @@ public static System.IO.MemoryStream FromDafny_N3_aws__N12_cryptography__N10_pri } public static Dafny.ISequence ToDafny_N3_aws__N12_cryptography__N10_primitives__S16_HkdfExpandOutput__M3_okm(System.IO.MemoryStream value) { - return ToDafny_N6_smithy__N3_api__S4_Blob(value); + return ToDafny_N6_smithy__N3_api__S4_Blob((System.IO.MemoryStream)value); } public static AWS.Cryptography.Primitives.DigestAlgorithm FromDafny_N3_aws__N12_cryptography__N10_primitives__S16_HkdfExtractInput__M15_digestAlgorithm(software.amazon.cryptography.primitives.internaldafny.types._IDigestAlgorithm value) { @@ -1133,7 +1133,7 @@ public static AWS.Cryptography.Primitives.DigestAlgorithm FromDafny_N3_aws__N12_ } public static software.amazon.cryptography.primitives.internaldafny.types._IDigestAlgorithm ToDafny_N3_aws__N12_cryptography__N10_primitives__S16_HkdfExtractInput__M15_digestAlgorithm(AWS.Cryptography.Primitives.DigestAlgorithm value) { - return ToDafny_N3_aws__N12_cryptography__N10_primitives__S15_DigestAlgorithm(value); + return ToDafny_N3_aws__N12_cryptography__N10_primitives__S15_DigestAlgorithm((AWS.Cryptography.Primitives.DigestAlgorithm)value); } public static System.IO.MemoryStream FromDafny_N3_aws__N12_cryptography__N10_primitives__S16_HkdfExtractInput__M4_salt(Wrappers_Compile._IOption> value) { @@ -1149,7 +1149,7 @@ public static System.IO.MemoryStream FromDafny_N3_aws__N12_cryptography__N10_pri } public static Dafny.ISequence ToDafny_N3_aws__N12_cryptography__N10_primitives__S16_HkdfExtractInput__M3_ikm(System.IO.MemoryStream value) { - return ToDafny_N6_smithy__N3_api__S4_Blob(value); + return ToDafny_N6_smithy__N3_api__S4_Blob((System.IO.MemoryStream)value); } public static System.IO.MemoryStream FromDafny_N3_aws__N12_cryptography__N10_primitives__S17_HkdfExtractOutput__M3_prk(Dafny.ISequence value) { @@ -1157,7 +1157,7 @@ public static System.IO.MemoryStream FromDafny_N3_aws__N12_cryptography__N10_pri } public static Dafny.ISequence ToDafny_N3_aws__N12_cryptography__N10_primitives__S17_HkdfExtractOutput__M3_prk(System.IO.MemoryStream value) { - return ToDafny_N6_smithy__N3_api__S4_Blob(value); + return ToDafny_N6_smithy__N3_api__S4_Blob((System.IO.MemoryStream)value); } public static AWS.Cryptography.Primitives.DigestAlgorithm FromDafny_N3_aws__N12_cryptography__N10_primitives__S9_HkdfInput__M15_digestAlgorithm(software.amazon.cryptography.primitives.internaldafny.types._IDigestAlgorithm value) { @@ -1165,7 +1165,7 @@ public static AWS.Cryptography.Primitives.DigestAlgorithm FromDafny_N3_aws__N12_ } public static software.amazon.cryptography.primitives.internaldafny.types._IDigestAlgorithm ToDafny_N3_aws__N12_cryptography__N10_primitives__S9_HkdfInput__M15_digestAlgorithm(AWS.Cryptography.Primitives.DigestAlgorithm value) { - return ToDafny_N3_aws__N12_cryptography__N10_primitives__S15_DigestAlgorithm(value); + return ToDafny_N3_aws__N12_cryptography__N10_primitives__S15_DigestAlgorithm((AWS.Cryptography.Primitives.DigestAlgorithm)value); } public static System.IO.MemoryStream FromDafny_N3_aws__N12_cryptography__N10_primitives__S9_HkdfInput__M4_salt(Wrappers_Compile._IOption> value) { @@ -1181,7 +1181,7 @@ public static System.IO.MemoryStream FromDafny_N3_aws__N12_cryptography__N10_pri } public static Dafny.ISequence ToDafny_N3_aws__N12_cryptography__N10_primitives__S9_HkdfInput__M3_ikm(System.IO.MemoryStream value) { - return ToDafny_N6_smithy__N3_api__S4_Blob(value); + return ToDafny_N6_smithy__N3_api__S4_Blob((System.IO.MemoryStream)value); } public static System.IO.MemoryStream FromDafny_N3_aws__N12_cryptography__N10_primitives__S9_HkdfInput__M4_info(Dafny.ISequence value) { @@ -1189,15 +1189,15 @@ public static System.IO.MemoryStream FromDafny_N3_aws__N12_cryptography__N10_pri } public static Dafny.ISequence ToDafny_N3_aws__N12_cryptography__N10_primitives__S9_HkdfInput__M4_info(System.IO.MemoryStream value) { - return ToDafny_N6_smithy__N3_api__S4_Blob(value); + return ToDafny_N6_smithy__N3_api__S4_Blob((System.IO.MemoryStream)value); } - public static int FromDafny_N3_aws__N12_cryptography__N10_primitives__S9_HkdfInput__M14_expectedLength(int value) + public static int? FromDafny_N3_aws__N12_cryptography__N10_primitives__S9_HkdfInput__M14_expectedLength(int value) { return FromDafny_N3_aws__N12_cryptography__N10_primitives__S15_PositiveInteger(value); } - public static int ToDafny_N3_aws__N12_cryptography__N10_primitives__S9_HkdfInput__M14_expectedLength(int value) + public static int ToDafny_N3_aws__N12_cryptography__N10_primitives__S9_HkdfInput__M14_expectedLength(int? value) { - return ToDafny_N3_aws__N12_cryptography__N10_primitives__S15_PositiveInteger(value); + return ToDafny_N3_aws__N12_cryptography__N10_primitives__S15_PositiveInteger((int)value); } public static System.IO.MemoryStream FromDafny_N3_aws__N12_cryptography__N10_primitives__S10_HkdfOutput__M3_okm(Dafny.ISequence value) { @@ -1205,7 +1205,7 @@ public static System.IO.MemoryStream FromDafny_N3_aws__N12_cryptography__N10_pri } public static Dafny.ISequence ToDafny_N3_aws__N12_cryptography__N10_primitives__S10_HkdfOutput__M3_okm(System.IO.MemoryStream value) { - return ToDafny_N6_smithy__N3_api__S4_Blob(value); + return ToDafny_N6_smithy__N3_api__S4_Blob((System.IO.MemoryStream)value); } public static AWS.Cryptography.Primitives.DigestAlgorithm FromDafny_N3_aws__N12_cryptography__N10_primitives__S9_HMacInput__M15_digestAlgorithm(software.amazon.cryptography.primitives.internaldafny.types._IDigestAlgorithm value) { @@ -1213,7 +1213,7 @@ public static AWS.Cryptography.Primitives.DigestAlgorithm FromDafny_N3_aws__N12_ } public static software.amazon.cryptography.primitives.internaldafny.types._IDigestAlgorithm ToDafny_N3_aws__N12_cryptography__N10_primitives__S9_HMacInput__M15_digestAlgorithm(AWS.Cryptography.Primitives.DigestAlgorithm value) { - return ToDafny_N3_aws__N12_cryptography__N10_primitives__S15_DigestAlgorithm(value); + return ToDafny_N3_aws__N12_cryptography__N10_primitives__S15_DigestAlgorithm((AWS.Cryptography.Primitives.DigestAlgorithm)value); } public static System.IO.MemoryStream FromDafny_N3_aws__N12_cryptography__N10_primitives__S9_HMacInput__M3_key(Dafny.ISequence value) { @@ -1221,7 +1221,7 @@ public static System.IO.MemoryStream FromDafny_N3_aws__N12_cryptography__N10_pri } public static Dafny.ISequence ToDafny_N3_aws__N12_cryptography__N10_primitives__S9_HMacInput__M3_key(System.IO.MemoryStream value) { - return ToDafny_N6_smithy__N3_api__S4_Blob(value); + return ToDafny_N6_smithy__N3_api__S4_Blob((System.IO.MemoryStream)value); } public static System.IO.MemoryStream FromDafny_N3_aws__N12_cryptography__N10_primitives__S9_HMacInput__M7_message(Dafny.ISequence value) { @@ -1229,7 +1229,7 @@ public static System.IO.MemoryStream FromDafny_N3_aws__N12_cryptography__N10_pri } public static Dafny.ISequence ToDafny_N3_aws__N12_cryptography__N10_primitives__S9_HMacInput__M7_message(System.IO.MemoryStream value) { - return ToDafny_N6_smithy__N3_api__S4_Blob(value); + return ToDafny_N6_smithy__N3_api__S4_Blob((System.IO.MemoryStream)value); } public static System.IO.MemoryStream FromDafny_N3_aws__N12_cryptography__N10_primitives__S10_HMacOutput__M6_digest(Dafny.ISequence value) { @@ -1237,7 +1237,7 @@ public static System.IO.MemoryStream FromDafny_N3_aws__N12_cryptography__N10_pri } public static Dafny.ISequence ToDafny_N3_aws__N12_cryptography__N10_primitives__S10_HMacOutput__M6_digest(System.IO.MemoryStream value) { - return ToDafny_N6_smithy__N3_api__S4_Blob(value); + return ToDafny_N6_smithy__N3_api__S4_Blob((System.IO.MemoryStream)value); } public static AWS.Cryptography.Primitives.DigestAlgorithm FromDafny_N3_aws__N12_cryptography__N10_primitives__S11_KdfCtrInput__M15_digestAlgorithm(software.amazon.cryptography.primitives.internaldafny.types._IDigestAlgorithm value) { @@ -1245,7 +1245,7 @@ public static AWS.Cryptography.Primitives.DigestAlgorithm FromDafny_N3_aws__N12_ } public static software.amazon.cryptography.primitives.internaldafny.types._IDigestAlgorithm ToDafny_N3_aws__N12_cryptography__N10_primitives__S11_KdfCtrInput__M15_digestAlgorithm(AWS.Cryptography.Primitives.DigestAlgorithm value) { - return ToDafny_N3_aws__N12_cryptography__N10_primitives__S15_DigestAlgorithm(value); + return ToDafny_N3_aws__N12_cryptography__N10_primitives__S15_DigestAlgorithm((AWS.Cryptography.Primitives.DigestAlgorithm)value); } public static System.IO.MemoryStream FromDafny_N3_aws__N12_cryptography__N10_primitives__S11_KdfCtrInput__M3_ikm(Dafny.ISequence value) { @@ -1253,15 +1253,15 @@ public static System.IO.MemoryStream FromDafny_N3_aws__N12_cryptography__N10_pri } public static Dafny.ISequence ToDafny_N3_aws__N12_cryptography__N10_primitives__S11_KdfCtrInput__M3_ikm(System.IO.MemoryStream value) { - return ToDafny_N6_smithy__N3_api__S4_Blob(value); + return ToDafny_N6_smithy__N3_api__S4_Blob((System.IO.MemoryStream)value); } - public static int FromDafny_N3_aws__N12_cryptography__N10_primitives__S11_KdfCtrInput__M14_expectedLength(int value) + public static int? FromDafny_N3_aws__N12_cryptography__N10_primitives__S11_KdfCtrInput__M14_expectedLength(int value) { return FromDafny_N3_aws__N12_cryptography__N10_primitives__S15_PositiveInteger(value); } - public static int ToDafny_N3_aws__N12_cryptography__N10_primitives__S11_KdfCtrInput__M14_expectedLength(int value) + public static int ToDafny_N3_aws__N12_cryptography__N10_primitives__S11_KdfCtrInput__M14_expectedLength(int? value) { - return ToDafny_N3_aws__N12_cryptography__N10_primitives__S15_PositiveInteger(value); + return ToDafny_N3_aws__N12_cryptography__N10_primitives__S15_PositiveInteger((int)value); } public static System.IO.MemoryStream FromDafny_N3_aws__N12_cryptography__N10_primitives__S11_KdfCtrInput__M7_purpose(Wrappers_Compile._IOption> value) { @@ -1285,7 +1285,7 @@ public static System.IO.MemoryStream FromDafny_N3_aws__N12_cryptography__N10_pri } public static Dafny.ISequence ToDafny_N3_aws__N12_cryptography__N10_primitives__S12_KdfCtrOutput__M3_okm(System.IO.MemoryStream value) { - return ToDafny_N6_smithy__N3_api__S4_Blob(value); + return ToDafny_N6_smithy__N3_api__S4_Blob((System.IO.MemoryStream)value); } public static System.IO.MemoryStream FromDafny_N3_aws__N12_cryptography__N10_primitives__S19_ParsePublicKeyInput__M9_publicKey(Dafny.ISequence value) { @@ -1293,7 +1293,7 @@ public static System.IO.MemoryStream FromDafny_N3_aws__N12_cryptography__N10_pri } public static Dafny.ISequence ToDafny_N3_aws__N12_cryptography__N10_primitives__S19_ParsePublicKeyInput__M9_publicKey(System.IO.MemoryStream value) { - return ToDafny_N6_smithy__N3_api__S4_Blob(value); + return ToDafny_N6_smithy__N3_api__S4_Blob((System.IO.MemoryStream)value); } public static AWS.Cryptography.Primitives.ECCPublicKey FromDafny_N3_aws__N12_cryptography__N10_primitives__S20_ParsePublicKeyOutput__M9_publicKey(software.amazon.cryptography.primitives.internaldafny.types._IECCPublicKey value) { @@ -1301,7 +1301,7 @@ public static AWS.Cryptography.Primitives.ECCPublicKey FromDafny_N3_aws__N12_cry } public static software.amazon.cryptography.primitives.internaldafny.types._IECCPublicKey ToDafny_N3_aws__N12_cryptography__N10_primitives__S20_ParsePublicKeyOutput__M9_publicKey(AWS.Cryptography.Primitives.ECCPublicKey value) { - return ToDafny_N3_aws__N12_cryptography__N10_primitives__S12_ECCPublicKey(value); + return ToDafny_N3_aws__N12_cryptography__N10_primitives__S12_ECCPublicKey((AWS.Cryptography.Primitives.ECCPublicKey)value); } public static AWS.Cryptography.Primitives.RSAPaddingMode FromDafny_N3_aws__N12_cryptography__N10_primitives__S15_RSADecryptInput__M7_padding(software.amazon.cryptography.primitives.internaldafny.types._IRSAPaddingMode value) { @@ -1309,7 +1309,7 @@ public static AWS.Cryptography.Primitives.RSAPaddingMode FromDafny_N3_aws__N12_c } public static software.amazon.cryptography.primitives.internaldafny.types._IRSAPaddingMode ToDafny_N3_aws__N12_cryptography__N10_primitives__S15_RSADecryptInput__M7_padding(AWS.Cryptography.Primitives.RSAPaddingMode value) { - return ToDafny_N3_aws__N12_cryptography__N10_primitives__S14_RSAPaddingMode(value); + return ToDafny_N3_aws__N12_cryptography__N10_primitives__S14_RSAPaddingMode((AWS.Cryptography.Primitives.RSAPaddingMode)value); } public static System.IO.MemoryStream FromDafny_N3_aws__N12_cryptography__N10_primitives__S15_RSADecryptInput__M10_privateKey(Dafny.ISequence value) { @@ -1317,7 +1317,7 @@ public static System.IO.MemoryStream FromDafny_N3_aws__N12_cryptography__N10_pri } public static Dafny.ISequence ToDafny_N3_aws__N12_cryptography__N10_primitives__S15_RSADecryptInput__M10_privateKey(System.IO.MemoryStream value) { - return ToDafny_N6_smithy__N3_api__S4_Blob(value); + return ToDafny_N6_smithy__N3_api__S4_Blob((System.IO.MemoryStream)value); } public static System.IO.MemoryStream FromDafny_N3_aws__N12_cryptography__N10_primitives__S15_RSADecryptInput__M10_cipherText(Dafny.ISequence value) { @@ -1325,7 +1325,7 @@ public static System.IO.MemoryStream FromDafny_N3_aws__N12_cryptography__N10_pri } public static Dafny.ISequence ToDafny_N3_aws__N12_cryptography__N10_primitives__S15_RSADecryptInput__M10_cipherText(System.IO.MemoryStream value) { - return ToDafny_N6_smithy__N3_api__S4_Blob(value); + return ToDafny_N6_smithy__N3_api__S4_Blob((System.IO.MemoryStream)value); } public static System.IO.MemoryStream FromDafny_N3_aws__N12_cryptography__N10_primitives__S16_RSADecryptOutput__M9_plaintext(Dafny.ISequence value) { @@ -1333,7 +1333,7 @@ public static System.IO.MemoryStream FromDafny_N3_aws__N12_cryptography__N10_pri } public static Dafny.ISequence ToDafny_N3_aws__N12_cryptography__N10_primitives__S16_RSADecryptOutput__M9_plaintext(System.IO.MemoryStream value) { - return ToDafny_N6_smithy__N3_api__S4_Blob(value); + return ToDafny_N6_smithy__N3_api__S4_Blob((System.IO.MemoryStream)value); } public static AWS.Cryptography.Primitives.RSAPaddingMode FromDafny_N3_aws__N12_cryptography__N10_primitives__S15_RSAEncryptInput__M7_padding(software.amazon.cryptography.primitives.internaldafny.types._IRSAPaddingMode value) { @@ -1341,7 +1341,7 @@ public static AWS.Cryptography.Primitives.RSAPaddingMode FromDafny_N3_aws__N12_c } public static software.amazon.cryptography.primitives.internaldafny.types._IRSAPaddingMode ToDafny_N3_aws__N12_cryptography__N10_primitives__S15_RSAEncryptInput__M7_padding(AWS.Cryptography.Primitives.RSAPaddingMode value) { - return ToDafny_N3_aws__N12_cryptography__N10_primitives__S14_RSAPaddingMode(value); + return ToDafny_N3_aws__N12_cryptography__N10_primitives__S14_RSAPaddingMode((AWS.Cryptography.Primitives.RSAPaddingMode)value); } public static System.IO.MemoryStream FromDafny_N3_aws__N12_cryptography__N10_primitives__S15_RSAEncryptInput__M9_publicKey(Dafny.ISequence value) { @@ -1349,7 +1349,7 @@ public static System.IO.MemoryStream FromDafny_N3_aws__N12_cryptography__N10_pri } public static Dafny.ISequence ToDafny_N3_aws__N12_cryptography__N10_primitives__S15_RSAEncryptInput__M9_publicKey(System.IO.MemoryStream value) { - return ToDafny_N6_smithy__N3_api__S4_Blob(value); + return ToDafny_N6_smithy__N3_api__S4_Blob((System.IO.MemoryStream)value); } public static System.IO.MemoryStream FromDafny_N3_aws__N12_cryptography__N10_primitives__S15_RSAEncryptInput__M9_plaintext(Dafny.ISequence value) { @@ -1357,7 +1357,7 @@ public static System.IO.MemoryStream FromDafny_N3_aws__N12_cryptography__N10_pri } public static Dafny.ISequence ToDafny_N3_aws__N12_cryptography__N10_primitives__S15_RSAEncryptInput__M9_plaintext(System.IO.MemoryStream value) { - return ToDafny_N6_smithy__N3_api__S4_Blob(value); + return ToDafny_N6_smithy__N3_api__S4_Blob((System.IO.MemoryStream)value); } public static System.IO.MemoryStream FromDafny_N3_aws__N12_cryptography__N10_primitives__S16_RSAEncryptOutput__M10_cipherText(Dafny.ISequence value) { @@ -1365,7 +1365,7 @@ public static System.IO.MemoryStream FromDafny_N3_aws__N12_cryptography__N10_pri } public static Dafny.ISequence ToDafny_N3_aws__N12_cryptography__N10_primitives__S16_RSAEncryptOutput__M10_cipherText(System.IO.MemoryStream value) { - return ToDafny_N6_smithy__N3_api__S4_Blob(value); + return ToDafny_N6_smithy__N3_api__S4_Blob((System.IO.MemoryStream)value); } public static AWS.Cryptography.Primitives.ECDHCurveSpec FromDafny_N3_aws__N12_cryptography__N10_primitives__S22_ValidatePublicKeyInput__M8_eccCurve(software.amazon.cryptography.primitives.internaldafny.types._IECDHCurveSpec value) { @@ -1373,7 +1373,7 @@ public static AWS.Cryptography.Primitives.ECDHCurveSpec FromDafny_N3_aws__N12_cr } public static software.amazon.cryptography.primitives.internaldafny.types._IECDHCurveSpec ToDafny_N3_aws__N12_cryptography__N10_primitives__S22_ValidatePublicKeyInput__M8_eccCurve(AWS.Cryptography.Primitives.ECDHCurveSpec value) { - return ToDafny_N3_aws__N12_cryptography__N10_primitives__S13_ECDHCurveSpec(value); + return ToDafny_N3_aws__N12_cryptography__N10_primitives__S13_ECDHCurveSpec((AWS.Cryptography.Primitives.ECDHCurveSpec)value); } public static System.IO.MemoryStream FromDafny_N3_aws__N12_cryptography__N10_primitives__S22_ValidatePublicKeyInput__M9_publicKey(Dafny.ISequence value) { @@ -1381,15 +1381,15 @@ public static System.IO.MemoryStream FromDafny_N3_aws__N12_cryptography__N10_pri } public static Dafny.ISequence ToDafny_N3_aws__N12_cryptography__N10_primitives__S22_ValidatePublicKeyInput__M9_publicKey(System.IO.MemoryStream value) { - return ToDafny_N6_smithy__N3_api__S4_Blob(value); + return ToDafny_N6_smithy__N3_api__S4_Blob((System.IO.MemoryStream)value); } - public static bool FromDafny_N3_aws__N12_cryptography__N10_primitives__S23_ValidatePublicKeyOutput__M7_success(bool value) + public static bool? FromDafny_N3_aws__N12_cryptography__N10_primitives__S23_ValidatePublicKeyOutput__M7_success(bool value) { return FromDafny_N6_smithy__N3_api__S7_Boolean(value); } - public static bool ToDafny_N3_aws__N12_cryptography__N10_primitives__S23_ValidatePublicKeyOutput__M7_success(bool value) + public static bool ToDafny_N3_aws__N12_cryptography__N10_primitives__S23_ValidatePublicKeyOutput__M7_success(bool? value) { - return ToDafny_N6_smithy__N3_api__S7_Boolean(value); + return ToDafny_N6_smithy__N3_api__S7_Boolean((bool)value); } public static AWS.Cryptography.Primitives.AES_GCM FromDafny_N3_aws__N12_cryptography__N10_primitives__S7_AES_GCM(software.amazon.cryptography.primitives.internaldafny.types._IAES__GCM value) { @@ -1498,29 +1498,29 @@ public static int ToDafny_N3_aws__N12_cryptography__N10_primitives__S20_RSAModul { return value; } - public static int FromDafny_N3_aws__N12_cryptography__N10_primitives__S7_AES_GCM__M9_keyLength(int value) + public static int? FromDafny_N3_aws__N12_cryptography__N10_primitives__S7_AES_GCM__M9_keyLength(int value) { return FromDafny_N3_aws__N12_cryptography__N10_primitives__S18_SymmetricKeyLength(value); } - public static int ToDafny_N3_aws__N12_cryptography__N10_primitives__S7_AES_GCM__M9_keyLength(int value) + public static int ToDafny_N3_aws__N12_cryptography__N10_primitives__S7_AES_GCM__M9_keyLength(int? value) { - return ToDafny_N3_aws__N12_cryptography__N10_primitives__S18_SymmetricKeyLength(value); + return ToDafny_N3_aws__N12_cryptography__N10_primitives__S18_SymmetricKeyLength((int)value); } - public static int FromDafny_N3_aws__N12_cryptography__N10_primitives__S7_AES_GCM__M9_tagLength(int value) + public static int? FromDafny_N3_aws__N12_cryptography__N10_primitives__S7_AES_GCM__M9_tagLength(int value) { return FromDafny_N3_aws__N12_cryptography__N10_primitives__S10_Uint8Bytes(value); } - public static int ToDafny_N3_aws__N12_cryptography__N10_primitives__S7_AES_GCM__M9_tagLength(int value) + public static int ToDafny_N3_aws__N12_cryptography__N10_primitives__S7_AES_GCM__M9_tagLength(int? value) { - return ToDafny_N3_aws__N12_cryptography__N10_primitives__S10_Uint8Bytes(value); + return ToDafny_N3_aws__N12_cryptography__N10_primitives__S10_Uint8Bytes((int)value); } - public static int FromDafny_N3_aws__N12_cryptography__N10_primitives__S7_AES_GCM__M8_ivLength(int value) + public static int? FromDafny_N3_aws__N12_cryptography__N10_primitives__S7_AES_GCM__M8_ivLength(int value) { return FromDafny_N3_aws__N12_cryptography__N10_primitives__S9_Uint8Bits(value); } - public static int ToDafny_N3_aws__N12_cryptography__N10_primitives__S7_AES_GCM__M8_ivLength(int value) + public static int ToDafny_N3_aws__N12_cryptography__N10_primitives__S7_AES_GCM__M8_ivLength(int? value) { - return ToDafny_N3_aws__N12_cryptography__N10_primitives__S9_Uint8Bits(value); + return ToDafny_N3_aws__N12_cryptography__N10_primitives__S9_Uint8Bits((int)value); } public static System.IO.MemoryStream FromDafny_N3_aws__N12_cryptography__N10_primitives__S12_ECCPublicKey__M3_der(Dafny.ISequence value) { @@ -1528,7 +1528,7 @@ public static System.IO.MemoryStream FromDafny_N3_aws__N12_cryptography__N10_pri } public static Dafny.ISequence ToDafny_N3_aws__N12_cryptography__N10_primitives__S12_ECCPublicKey__M3_der(System.IO.MemoryStream value) { - return ToDafny_N6_smithy__N3_api__S4_Blob(value); + return ToDafny_N6_smithy__N3_api__S4_Blob((System.IO.MemoryStream)value); } public static System.IO.MemoryStream FromDafny_N3_aws__N12_cryptography__N10_primitives__S13_ECCPrivateKey__M3_pem(Dafny.ISequence value) { @@ -1536,15 +1536,15 @@ public static System.IO.MemoryStream FromDafny_N3_aws__N12_cryptography__N10_pri } public static Dafny.ISequence ToDafny_N3_aws__N12_cryptography__N10_primitives__S13_ECCPrivateKey__M3_pem(System.IO.MemoryStream value) { - return ToDafny_N6_smithy__N3_api__S4_Blob(value); + return ToDafny_N6_smithy__N3_api__S4_Blob((System.IO.MemoryStream)value); } - public static int FromDafny_N3_aws__N12_cryptography__N10_primitives__S12_RSAPublicKey__M10_lengthBits(int value) + public static int? FromDafny_N3_aws__N12_cryptography__N10_primitives__S12_RSAPublicKey__M10_lengthBits(int value) { return FromDafny_N3_aws__N12_cryptography__N10_primitives__S20_RSAModulusLengthBits(value); } - public static int ToDafny_N3_aws__N12_cryptography__N10_primitives__S12_RSAPublicKey__M10_lengthBits(int value) + public static int ToDafny_N3_aws__N12_cryptography__N10_primitives__S12_RSAPublicKey__M10_lengthBits(int? value) { - return ToDafny_N3_aws__N12_cryptography__N10_primitives__S20_RSAModulusLengthBits(value); + return ToDafny_N3_aws__N12_cryptography__N10_primitives__S20_RSAModulusLengthBits((int)value); } public static System.IO.MemoryStream FromDafny_N3_aws__N12_cryptography__N10_primitives__S12_RSAPublicKey__M3_pem(Dafny.ISequence value) { @@ -1552,15 +1552,15 @@ public static System.IO.MemoryStream FromDafny_N3_aws__N12_cryptography__N10_pri } public static Dafny.ISequence ToDafny_N3_aws__N12_cryptography__N10_primitives__S12_RSAPublicKey__M3_pem(System.IO.MemoryStream value) { - return ToDafny_N6_smithy__N3_api__S4_Blob(value); + return ToDafny_N6_smithy__N3_api__S4_Blob((System.IO.MemoryStream)value); } - public static int FromDafny_N3_aws__N12_cryptography__N10_primitives__S13_RSAPrivateKey__M10_lengthBits(int value) + public static int? FromDafny_N3_aws__N12_cryptography__N10_primitives__S13_RSAPrivateKey__M10_lengthBits(int value) { return FromDafny_N3_aws__N12_cryptography__N10_primitives__S20_RSAModulusLengthBits(value); } - public static int ToDafny_N3_aws__N12_cryptography__N10_primitives__S13_RSAPrivateKey__M10_lengthBits(int value) + public static int ToDafny_N3_aws__N12_cryptography__N10_primitives__S13_RSAPrivateKey__M10_lengthBits(int? value) { - return ToDafny_N3_aws__N12_cryptography__N10_primitives__S20_RSAModulusLengthBits(value); + return ToDafny_N3_aws__N12_cryptography__N10_primitives__S20_RSAModulusLengthBits((int)value); } public static System.IO.MemoryStream FromDafny_N3_aws__N12_cryptography__N10_primitives__S13_RSAPrivateKey__M3_pem(Dafny.ISequence value) { @@ -1568,7 +1568,7 @@ public static System.IO.MemoryStream FromDafny_N3_aws__N12_cryptography__N10_pri } public static Dafny.ISequence ToDafny_N3_aws__N12_cryptography__N10_primitives__S13_RSAPrivateKey__M3_pem(System.IO.MemoryStream value) { - return ToDafny_N6_smithy__N3_api__S4_Blob(value); + return ToDafny_N6_smithy__N3_api__S4_Blob((System.IO.MemoryStream)value); } public static int FromDafny_N3_aws__N12_cryptography__N10_primitives__S18_SymmetricKeyLength(int value) { diff --git a/ComAmazonawsDynamodb/runtimes/net/Generated/TypeConversion.cs b/ComAmazonawsDynamodb/runtimes/net/Generated/TypeConversion.cs index b133fcd49..acdcbdf88 100644 --- a/ComAmazonawsDynamodb/runtimes/net/Generated/TypeConversion.cs +++ b/ComAmazonawsDynamodb/runtimes/net/Generated/TypeConversion.cs @@ -16,52 +16,52 @@ public static Amazon.DynamoDBv2.Model.AttributeValue FromDafny_N3_com__N9_amazon software.amazon.cryptography.services.dynamodb.internaldafny.types.AttributeValue concrete = (software.amazon.cryptography.services.dynamodb.internaldafny.types.AttributeValue)value; var converted = new Amazon.DynamoDBv2.Model.AttributeValue(); if (value.is_S) { - converted.S = FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S14_AttributeValue__M1_S(concrete.dtor_S); + converted.S = (string)(FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S14_AttributeValue__M1_S(concrete.dtor_S)); return converted; } if (value.is_N) { - converted.N = FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S14_AttributeValue__M1_N(concrete.dtor_N); + converted.N = (string)(FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S14_AttributeValue__M1_N(concrete.dtor_N)); return converted; } if (value.is_B) { - converted.B = FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S14_AttributeValue__M1_B(concrete.dtor_B); + converted.B = (System.IO.MemoryStream)(FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S14_AttributeValue__M1_B(concrete.dtor_B)); return converted; } if (value.is_SS) { - converted.SS = FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S14_AttributeValue__M2_SS(concrete.dtor_SS); + converted.SS = (System.Collections.Generic.List)(FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S14_AttributeValue__M2_SS(concrete.dtor_SS)); return converted; } if (value.is_NS) { - converted.NS = FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S14_AttributeValue__M2_NS(concrete.dtor_NS); + converted.NS = (System.Collections.Generic.List)(FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S14_AttributeValue__M2_NS(concrete.dtor_NS)); return converted; } if (value.is_BS) { - converted.BS = FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S14_AttributeValue__M2_BS(concrete.dtor_BS); + converted.BS = (System.Collections.Generic.List)(FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S14_AttributeValue__M2_BS(concrete.dtor_BS)); return converted; } if (value.is_M) { - converted.M = FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S14_AttributeValue__M1_M(concrete.dtor_M); + converted.M = (System.Collections.Generic.Dictionary)(FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S14_AttributeValue__M1_M(concrete.dtor_M)); return converted; } if (value.is_L) { - converted.L = FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S14_AttributeValue__M1_L(concrete.dtor_L); + converted.L = (System.Collections.Generic.List)(FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S14_AttributeValue__M1_L(concrete.dtor_L)); return converted; } if (value.is_NULL) { - converted.NULL = FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S14_AttributeValue__M4_NULL(concrete.dtor_NULL); + converted.NULL = (bool)(FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S14_AttributeValue__M4_NULL(concrete.dtor_NULL)); return converted; } if (value.is_BOOL) { - converted.BOOL = FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S14_AttributeValue__M4_BOOL(concrete.dtor_BOOL); + converted.BOOL = (bool)(FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S14_AttributeValue__M4_BOOL(concrete.dtor_BOOL)); return converted; } throw new System.ArgumentException("Invalid Amazon.DynamoDBv2.Model.AttributeValue state"); @@ -118,7 +118,7 @@ public static Amazon.DynamoDBv2.Model.BackupInUseException FromDafny_N3_com__N9_ } public static software.amazon.cryptography.services.dynamodb.internaldafny.types.Error_BackupInUseException ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S20_BackupInUseException(Amazon.DynamoDBv2.Model.BackupInUseException value) { - string var_message = value.Message; + string var_message = (string)value.Message; return new software.amazon.cryptography.services.dynamodb.internaldafny.types.Error_BackupInUseException( ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S20_BackupInUseException__M7_message(var_message) ); @@ -131,7 +131,7 @@ public static Amazon.DynamoDBv2.Model.BackupNotFoundException FromDafny_N3_com__ } public static software.amazon.cryptography.services.dynamodb.internaldafny.types.Error_BackupNotFoundException ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S23_BackupNotFoundException(Amazon.DynamoDBv2.Model.BackupNotFoundException value) { - string var_message = value.Message; + string var_message = (string)value.Message; return new software.amazon.cryptography.services.dynamodb.internaldafny.types.Error_BackupNotFoundException( ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S23_BackupNotFoundException__M7_message(var_message) ); @@ -144,7 +144,7 @@ public static Amazon.DynamoDBv2.Model.BatchExecuteStatementRequest FromDafny_N3_ public static software.amazon.cryptography.services.dynamodb.internaldafny.types._IBatchExecuteStatementInput ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S26_BatchExecuteStatementInput(Amazon.DynamoDBv2.Model.BatchExecuteStatementRequest value) { - Amazon.DynamoDBv2.ReturnConsumedCapacity var_returnConsumedCapacity = value.ReturnConsumedCapacity; + Amazon.DynamoDBv2.ReturnConsumedCapacity var_returnConsumedCapacity = (Amazon.DynamoDBv2.ReturnConsumedCapacity)value.ReturnConsumedCapacity; return new software.amazon.cryptography.services.dynamodb.internaldafny.types.BatchExecuteStatementInput(ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S26_BatchExecuteStatementInput__M10_Statements(value.Statements), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S26_BatchExecuteStatementInput__M22_ReturnConsumedCapacity(var_returnConsumedCapacity)); } public static Amazon.DynamoDBv2.Model.BatchExecuteStatementResponse FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S27_BatchExecuteStatementOutput(software.amazon.cryptography.services.dynamodb.internaldafny.types._IBatchExecuteStatementOutput value) @@ -155,8 +155,8 @@ public static Amazon.DynamoDBv2.Model.BatchExecuteStatementResponse FromDafny_N3 public static software.amazon.cryptography.services.dynamodb.internaldafny.types._IBatchExecuteStatementOutput ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S27_BatchExecuteStatementOutput(Amazon.DynamoDBv2.Model.BatchExecuteStatementResponse value) { - System.Collections.Generic.List var_responses = value.Responses; - System.Collections.Generic.List var_consumedCapacity = value.ConsumedCapacity; + System.Collections.Generic.List var_responses = (System.Collections.Generic.List)value.Responses; + System.Collections.Generic.List var_consumedCapacity = (System.Collections.Generic.List)value.ConsumedCapacity; return new software.amazon.cryptography.services.dynamodb.internaldafny.types.BatchExecuteStatementOutput(ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S27_BatchExecuteStatementOutput__M9_Responses(var_responses), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S27_BatchExecuteStatementOutput__M16_ConsumedCapacity(var_consumedCapacity)); } public static Amazon.DynamoDBv2.Model.BatchGetItemRequest FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S17_BatchGetItemInput(software.amazon.cryptography.services.dynamodb.internaldafny.types._IBatchGetItemInput value) @@ -167,7 +167,7 @@ public static Amazon.DynamoDBv2.Model.BatchGetItemRequest FromDafny_N3_com__N9_a public static software.amazon.cryptography.services.dynamodb.internaldafny.types._IBatchGetItemInput ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S17_BatchGetItemInput(Amazon.DynamoDBv2.Model.BatchGetItemRequest value) { - Amazon.DynamoDBv2.ReturnConsumedCapacity var_returnConsumedCapacity = value.ReturnConsumedCapacity; + Amazon.DynamoDBv2.ReturnConsumedCapacity var_returnConsumedCapacity = (Amazon.DynamoDBv2.ReturnConsumedCapacity)value.ReturnConsumedCapacity; return new software.amazon.cryptography.services.dynamodb.internaldafny.types.BatchGetItemInput(ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S17_BatchGetItemInput__M12_RequestItems(value.RequestItems), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S17_BatchGetItemInput__M22_ReturnConsumedCapacity(var_returnConsumedCapacity)); } public static Amazon.DynamoDBv2.Model.BatchGetItemResponse FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S18_BatchGetItemOutput(software.amazon.cryptography.services.dynamodb.internaldafny.types._IBatchGetItemOutput value) @@ -179,9 +179,9 @@ public static Amazon.DynamoDBv2.Model.BatchGetItemResponse FromDafny_N3_com__N9_ public static software.amazon.cryptography.services.dynamodb.internaldafny.types._IBatchGetItemOutput ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S18_BatchGetItemOutput(Amazon.DynamoDBv2.Model.BatchGetItemResponse value) { - System.Collections.Generic.Dictionary>> var_responses = value.Responses; - System.Collections.Generic.Dictionary var_unprocessedKeys = value.UnprocessedKeys; - System.Collections.Generic.List var_consumedCapacity = value.ConsumedCapacity; + System.Collections.Generic.Dictionary>> var_responses = (System.Collections.Generic.Dictionary>>)value.Responses; + System.Collections.Generic.Dictionary var_unprocessedKeys = (System.Collections.Generic.Dictionary)value.UnprocessedKeys; + System.Collections.Generic.List var_consumedCapacity = (System.Collections.Generic.List)value.ConsumedCapacity; return new software.amazon.cryptography.services.dynamodb.internaldafny.types.BatchGetItemOutput(ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S18_BatchGetItemOutput__M9_Responses(var_responses), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S18_BatchGetItemOutput__M15_UnprocessedKeys(var_unprocessedKeys), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S18_BatchGetItemOutput__M16_ConsumedCapacity(var_consumedCapacity)); } public static Amazon.DynamoDBv2.Model.BatchWriteItemRequest FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S19_BatchWriteItemInput(software.amazon.cryptography.services.dynamodb.internaldafny.types._IBatchWriteItemInput value) @@ -193,8 +193,8 @@ public static Amazon.DynamoDBv2.Model.BatchWriteItemRequest FromDafny_N3_com__N9 public static software.amazon.cryptography.services.dynamodb.internaldafny.types._IBatchWriteItemInput ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S19_BatchWriteItemInput(Amazon.DynamoDBv2.Model.BatchWriteItemRequest value) { - Amazon.DynamoDBv2.ReturnConsumedCapacity var_returnConsumedCapacity = value.ReturnConsumedCapacity; - Amazon.DynamoDBv2.ReturnItemCollectionMetrics var_returnItemCollectionMetrics = value.ReturnItemCollectionMetrics; + Amazon.DynamoDBv2.ReturnConsumedCapacity var_returnConsumedCapacity = (Amazon.DynamoDBv2.ReturnConsumedCapacity)value.ReturnConsumedCapacity; + Amazon.DynamoDBv2.ReturnItemCollectionMetrics var_returnItemCollectionMetrics = (Amazon.DynamoDBv2.ReturnItemCollectionMetrics)value.ReturnItemCollectionMetrics; return new software.amazon.cryptography.services.dynamodb.internaldafny.types.BatchWriteItemInput(ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S19_BatchWriteItemInput__M12_RequestItems(value.RequestItems), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S19_BatchWriteItemInput__M22_ReturnConsumedCapacity(var_returnConsumedCapacity), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S19_BatchWriteItemInput__M27_ReturnItemCollectionMetrics(var_returnItemCollectionMetrics)); } public static Amazon.DynamoDBv2.Model.BatchWriteItemResponse FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S20_BatchWriteItemOutput(software.amazon.cryptography.services.dynamodb.internaldafny.types._IBatchWriteItemOutput value) @@ -206,9 +206,9 @@ public static Amazon.DynamoDBv2.Model.BatchWriteItemResponse FromDafny_N3_com__N public static software.amazon.cryptography.services.dynamodb.internaldafny.types._IBatchWriteItemOutput ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S20_BatchWriteItemOutput(Amazon.DynamoDBv2.Model.BatchWriteItemResponse value) { - System.Collections.Generic.Dictionary> var_unprocessedItems = value.UnprocessedItems; - System.Collections.Generic.Dictionary> var_itemCollectionMetrics = value.ItemCollectionMetrics; - System.Collections.Generic.List var_consumedCapacity = value.ConsumedCapacity; + System.Collections.Generic.Dictionary> var_unprocessedItems = (System.Collections.Generic.Dictionary>)value.UnprocessedItems; + System.Collections.Generic.Dictionary> var_itemCollectionMetrics = (System.Collections.Generic.Dictionary>)value.ItemCollectionMetrics; + System.Collections.Generic.List var_consumedCapacity = (System.Collections.Generic.List)value.ConsumedCapacity; return new software.amazon.cryptography.services.dynamodb.internaldafny.types.BatchWriteItemOutput(ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S20_BatchWriteItemOutput__M16_UnprocessedItems(var_unprocessedItems), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S20_BatchWriteItemOutput__M21_ItemCollectionMetrics(var_itemCollectionMetrics), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S20_BatchWriteItemOutput__M16_ConsumedCapacity(var_consumedCapacity)); } public static Amazon.DynamoDBv2.Model.ConditionalCheckFailedException FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S31_ConditionalCheckFailedException(software.amazon.cryptography.services.dynamodb.internaldafny.types.Error_ConditionalCheckFailedException value) @@ -222,8 +222,8 @@ public static Amazon.DynamoDBv2.Model.ConditionalCheckFailedException FromDafny_ } public static software.amazon.cryptography.services.dynamodb.internaldafny.types.Error_ConditionalCheckFailedException ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S31_ConditionalCheckFailedException(Amazon.DynamoDBv2.Model.ConditionalCheckFailedException value) { - string var_message = value.Message; - System.Collections.Generic.Dictionary var_item = value.Item; + string var_message = (string)value.Message; + System.Collections.Generic.Dictionary var_item = (System.Collections.Generic.Dictionary)value.Item; return new software.amazon.cryptography.services.dynamodb.internaldafny.types.Error_ConditionalCheckFailedException( ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S31_ConditionalCheckFailedException__M7_message(var_message) , @@ -238,7 +238,7 @@ public static Amazon.DynamoDBv2.Model.ContinuousBackupsUnavailableException From } public static software.amazon.cryptography.services.dynamodb.internaldafny.types.Error_ContinuousBackupsUnavailableException ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S37_ContinuousBackupsUnavailableException(Amazon.DynamoDBv2.Model.ContinuousBackupsUnavailableException value) { - string var_message = value.Message; + string var_message = (string)value.Message; return new software.amazon.cryptography.services.dynamodb.internaldafny.types.Error_ContinuousBackupsUnavailableException( ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S37_ContinuousBackupsUnavailableException__M7_message(var_message) ); @@ -261,7 +261,7 @@ public static Amazon.DynamoDBv2.Model.CreateBackupResponse FromDafny_N3_com__N9_ public static software.amazon.cryptography.services.dynamodb.internaldafny.types._ICreateBackupOutput ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S18_CreateBackupOutput(Amazon.DynamoDBv2.Model.CreateBackupResponse value) { - Amazon.DynamoDBv2.Model.BackupDetails var_backupDetails = value.BackupDetails; + Amazon.DynamoDBv2.Model.BackupDetails var_backupDetails = (Amazon.DynamoDBv2.Model.BackupDetails)value.BackupDetails; return new software.amazon.cryptography.services.dynamodb.internaldafny.types.CreateBackupOutput(ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S18_CreateBackupOutput__M13_BackupDetails(var_backupDetails)); } public static Amazon.DynamoDBv2.Model.CreateGlobalTableRequest FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S22_CreateGlobalTableInput(software.amazon.cryptography.services.dynamodb.internaldafny.types._ICreateGlobalTableInput value) @@ -282,7 +282,7 @@ public static Amazon.DynamoDBv2.Model.CreateGlobalTableResponse FromDafny_N3_com public static software.amazon.cryptography.services.dynamodb.internaldafny.types._ICreateGlobalTableOutput ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S23_CreateGlobalTableOutput(Amazon.DynamoDBv2.Model.CreateGlobalTableResponse value) { - Amazon.DynamoDBv2.Model.GlobalTableDescription var_globalTableDescription = value.GlobalTableDescription; + Amazon.DynamoDBv2.Model.GlobalTableDescription var_globalTableDescription = (Amazon.DynamoDBv2.Model.GlobalTableDescription)value.GlobalTableDescription; return new software.amazon.cryptography.services.dynamodb.internaldafny.types.CreateGlobalTableOutput(ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S23_CreateGlobalTableOutput__M22_GlobalTableDescription(var_globalTableDescription)); } public static Amazon.DynamoDBv2.Model.CreateTableRequest FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S16_CreateTableInput(software.amazon.cryptography.services.dynamodb.internaldafny.types._ICreateTableInput value) @@ -305,17 +305,17 @@ public static Amazon.DynamoDBv2.Model.CreateTableRequest FromDafny_N3_com__N9_am public static software.amazon.cryptography.services.dynamodb.internaldafny.types._ICreateTableInput ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S16_CreateTableInput(Amazon.DynamoDBv2.Model.CreateTableRequest value) { - System.Collections.Generic.List var_localSecondaryIndexes = value.LocalSecondaryIndexes; - System.Collections.Generic.List var_globalSecondaryIndexes = value.GlobalSecondaryIndexes; - Amazon.DynamoDBv2.BillingMode var_billingMode = value.BillingMode; - Amazon.DynamoDBv2.Model.ProvisionedThroughput var_provisionedThroughput = value.ProvisionedThroughput; - Amazon.DynamoDBv2.Model.StreamSpecification var_streamSpecification = value.StreamSpecification; - Amazon.DynamoDBv2.Model.SSESpecification var_sSESpecification = value.SSESpecification; - System.Collections.Generic.List var_tags = value.Tags; - Amazon.DynamoDBv2.TableClass var_tableClass = value.TableClass; - bool? var_deletionProtectionEnabled = value.DeletionProtectionEnabled; - string var_resourcePolicy = value.ResourcePolicy; - Amazon.DynamoDBv2.Model.OnDemandThroughput var_onDemandThroughput = value.OnDemandThroughput; + System.Collections.Generic.List var_localSecondaryIndexes = (System.Collections.Generic.List)value.LocalSecondaryIndexes; + System.Collections.Generic.List var_globalSecondaryIndexes = (System.Collections.Generic.List)value.GlobalSecondaryIndexes; + Amazon.DynamoDBv2.BillingMode var_billingMode = (Amazon.DynamoDBv2.BillingMode)value.BillingMode; + Amazon.DynamoDBv2.Model.ProvisionedThroughput var_provisionedThroughput = (Amazon.DynamoDBv2.Model.ProvisionedThroughput)value.ProvisionedThroughput; + Amazon.DynamoDBv2.Model.StreamSpecification var_streamSpecification = (Amazon.DynamoDBv2.Model.StreamSpecification)value.StreamSpecification; + Amazon.DynamoDBv2.Model.SSESpecification var_sSESpecification = (Amazon.DynamoDBv2.Model.SSESpecification)value.SSESpecification; + System.Collections.Generic.List var_tags = (System.Collections.Generic.List)value.Tags; + Amazon.DynamoDBv2.TableClass var_tableClass = (Amazon.DynamoDBv2.TableClass)value.TableClass; + bool? var_deletionProtectionEnabled = (bool?)value.DeletionProtectionEnabled; + string var_resourcePolicy = (string)value.ResourcePolicy; + Amazon.DynamoDBv2.Model.OnDemandThroughput var_onDemandThroughput = (Amazon.DynamoDBv2.Model.OnDemandThroughput)value.OnDemandThroughput; return new software.amazon.cryptography.services.dynamodb.internaldafny.types.CreateTableInput(ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S16_CreateTableInput__M20_AttributeDefinitions(value.AttributeDefinitions), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S16_CreateTableInput__M9_TableName(value.TableName), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S16_CreateTableInput__M9_KeySchema(value.KeySchema), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S16_CreateTableInput__M21_LocalSecondaryIndexes(var_localSecondaryIndexes), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S16_CreateTableInput__M22_GlobalSecondaryIndexes(var_globalSecondaryIndexes), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S16_CreateTableInput__M11_BillingMode(var_billingMode), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S16_CreateTableInput__M21_ProvisionedThroughput(var_provisionedThroughput), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S16_CreateTableInput__M19_StreamSpecification(var_streamSpecification), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S16_CreateTableInput__M16_SSESpecification(var_sSESpecification), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S16_CreateTableInput__M4_Tags(var_tags), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S16_CreateTableInput__M10_TableClass(var_tableClass), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S16_CreateTableInput__M25_DeletionProtectionEnabled(var_deletionProtectionEnabled), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S16_CreateTableInput__M14_ResourcePolicy(var_resourcePolicy), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S16_CreateTableInput__M18_OnDemandThroughput(var_onDemandThroughput)); } public static Amazon.DynamoDBv2.Model.CreateTableResponse FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S17_CreateTableOutput(software.amazon.cryptography.services.dynamodb.internaldafny.types._ICreateTableOutput value) @@ -325,7 +325,7 @@ public static Amazon.DynamoDBv2.Model.CreateTableResponse FromDafny_N3_com__N9_a public static software.amazon.cryptography.services.dynamodb.internaldafny.types._ICreateTableOutput ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S17_CreateTableOutput(Amazon.DynamoDBv2.Model.CreateTableResponse value) { - Amazon.DynamoDBv2.Model.TableDescription var_tableDescription = value.TableDescription; + Amazon.DynamoDBv2.Model.TableDescription var_tableDescription = (Amazon.DynamoDBv2.Model.TableDescription)value.TableDescription; return new software.amazon.cryptography.services.dynamodb.internaldafny.types.CreateTableOutput(ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S17_CreateTableOutput__M16_TableDescription(var_tableDescription)); } public static Amazon.DynamoDBv2.Model.DeleteBackupRequest FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S17_DeleteBackupInput(software.amazon.cryptography.services.dynamodb.internaldafny.types._IDeleteBackupInput value) @@ -345,7 +345,7 @@ public static Amazon.DynamoDBv2.Model.DeleteBackupResponse FromDafny_N3_com__N9_ public static software.amazon.cryptography.services.dynamodb.internaldafny.types._IDeleteBackupOutput ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S18_DeleteBackupOutput(Amazon.DynamoDBv2.Model.DeleteBackupResponse value) { - Amazon.DynamoDBv2.Model.BackupDescription var_backupDescription = value.BackupDescription; + Amazon.DynamoDBv2.Model.BackupDescription var_backupDescription = (Amazon.DynamoDBv2.Model.BackupDescription)value.BackupDescription; return new software.amazon.cryptography.services.dynamodb.internaldafny.types.DeleteBackupOutput(ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S18_DeleteBackupOutput__M17_BackupDescription(var_backupDescription)); } public static Amazon.DynamoDBv2.Model.DeleteItemRequest FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S15_DeleteItemInput(software.amazon.cryptography.services.dynamodb.internaldafny.types._IDeleteItemInput value) @@ -364,14 +364,14 @@ public static Amazon.DynamoDBv2.Model.DeleteItemRequest FromDafny_N3_com__N9_ama public static software.amazon.cryptography.services.dynamodb.internaldafny.types._IDeleteItemInput ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S15_DeleteItemInput(Amazon.DynamoDBv2.Model.DeleteItemRequest value) { - System.Collections.Generic.Dictionary var_expected = value.Expected; - Amazon.DynamoDBv2.ConditionalOperator var_conditionalOperator = value.ConditionalOperator; - Amazon.DynamoDBv2.ReturnValue var_returnValues = value.ReturnValues; - Amazon.DynamoDBv2.ReturnConsumedCapacity var_returnConsumedCapacity = value.ReturnConsumedCapacity; - Amazon.DynamoDBv2.ReturnItemCollectionMetrics var_returnItemCollectionMetrics = value.ReturnItemCollectionMetrics; - string var_conditionExpression = value.ConditionExpression; - System.Collections.Generic.Dictionary var_expressionAttributeNames = value.ExpressionAttributeNames; - System.Collections.Generic.Dictionary var_expressionAttributeValues = value.ExpressionAttributeValues; + System.Collections.Generic.Dictionary var_expected = (System.Collections.Generic.Dictionary)value.Expected; + Amazon.DynamoDBv2.ConditionalOperator var_conditionalOperator = (Amazon.DynamoDBv2.ConditionalOperator)value.ConditionalOperator; + Amazon.DynamoDBv2.ReturnValue var_returnValues = (Amazon.DynamoDBv2.ReturnValue)value.ReturnValues; + Amazon.DynamoDBv2.ReturnConsumedCapacity var_returnConsumedCapacity = (Amazon.DynamoDBv2.ReturnConsumedCapacity)value.ReturnConsumedCapacity; + Amazon.DynamoDBv2.ReturnItemCollectionMetrics var_returnItemCollectionMetrics = (Amazon.DynamoDBv2.ReturnItemCollectionMetrics)value.ReturnItemCollectionMetrics; + string var_conditionExpression = (string)value.ConditionExpression; + System.Collections.Generic.Dictionary var_expressionAttributeNames = (System.Collections.Generic.Dictionary)value.ExpressionAttributeNames; + System.Collections.Generic.Dictionary var_expressionAttributeValues = (System.Collections.Generic.Dictionary)value.ExpressionAttributeValues; return new software.amazon.cryptography.services.dynamodb.internaldafny.types.DeleteItemInput(ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S15_DeleteItemInput__M9_TableName(value.TableName), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S15_DeleteItemInput__M3_Key(value.Key), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S15_DeleteItemInput__M8_Expected(var_expected), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S15_DeleteItemInput__M19_ConditionalOperator(var_conditionalOperator), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S15_DeleteItemInput__M12_ReturnValues(var_returnValues), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S15_DeleteItemInput__M22_ReturnConsumedCapacity(var_returnConsumedCapacity), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S15_DeleteItemInput__M27_ReturnItemCollectionMetrics(var_returnItemCollectionMetrics), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S15_DeleteItemInput__M19_ConditionExpression(var_conditionExpression), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S15_DeleteItemInput__M24_ExpressionAttributeNames(var_expressionAttributeNames), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S15_DeleteItemInput__M25_ExpressionAttributeValues(var_expressionAttributeValues)); } public static Amazon.DynamoDBv2.Model.DeleteItemResponse FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S16_DeleteItemOutput(software.amazon.cryptography.services.dynamodb.internaldafny.types._IDeleteItemOutput value) @@ -383,9 +383,9 @@ public static Amazon.DynamoDBv2.Model.DeleteItemResponse FromDafny_N3_com__N9_am public static software.amazon.cryptography.services.dynamodb.internaldafny.types._IDeleteItemOutput ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S16_DeleteItemOutput(Amazon.DynamoDBv2.Model.DeleteItemResponse value) { - System.Collections.Generic.Dictionary var_attributes = value.Attributes; - Amazon.DynamoDBv2.Model.ConsumedCapacity var_consumedCapacity = value.ConsumedCapacity; - Amazon.DynamoDBv2.Model.ItemCollectionMetrics var_itemCollectionMetrics = value.ItemCollectionMetrics; + System.Collections.Generic.Dictionary var_attributes = (System.Collections.Generic.Dictionary)value.Attributes; + Amazon.DynamoDBv2.Model.ConsumedCapacity var_consumedCapacity = (Amazon.DynamoDBv2.Model.ConsumedCapacity)value.ConsumedCapacity; + Amazon.DynamoDBv2.Model.ItemCollectionMetrics var_itemCollectionMetrics = (Amazon.DynamoDBv2.Model.ItemCollectionMetrics)value.ItemCollectionMetrics; return new software.amazon.cryptography.services.dynamodb.internaldafny.types.DeleteItemOutput(ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S16_DeleteItemOutput__M10_Attributes(var_attributes), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S16_DeleteItemOutput__M16_ConsumedCapacity(var_consumedCapacity), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S16_DeleteItemOutput__M21_ItemCollectionMetrics(var_itemCollectionMetrics)); } public static Amazon.DynamoDBv2.Model.DeleteResourcePolicyRequest FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S25_DeleteResourcePolicyInput(software.amazon.cryptography.services.dynamodb.internaldafny.types._IDeleteResourcePolicyInput value) @@ -396,7 +396,7 @@ public static Amazon.DynamoDBv2.Model.DeleteResourcePolicyRequest FromDafny_N3_c public static software.amazon.cryptography.services.dynamodb.internaldafny.types._IDeleteResourcePolicyInput ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S25_DeleteResourcePolicyInput(Amazon.DynamoDBv2.Model.DeleteResourcePolicyRequest value) { - string var_expectedRevisionId = value.ExpectedRevisionId; + string var_expectedRevisionId = (string)value.ExpectedRevisionId; return new software.amazon.cryptography.services.dynamodb.internaldafny.types.DeleteResourcePolicyInput(ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S25_DeleteResourcePolicyInput__M11_ResourceArn(value.ResourceArn), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S25_DeleteResourcePolicyInput__M18_ExpectedRevisionId(var_expectedRevisionId)); } public static Amazon.DynamoDBv2.Model.DeleteResourcePolicyResponse FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S26_DeleteResourcePolicyOutput(software.amazon.cryptography.services.dynamodb.internaldafny.types._IDeleteResourcePolicyOutput value) @@ -406,7 +406,7 @@ public static Amazon.DynamoDBv2.Model.DeleteResourcePolicyResponse FromDafny_N3_ public static software.amazon.cryptography.services.dynamodb.internaldafny.types._IDeleteResourcePolicyOutput ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S26_DeleteResourcePolicyOutput(Amazon.DynamoDBv2.Model.DeleteResourcePolicyResponse value) { - string var_revisionId = value.RevisionId; + string var_revisionId = (string)value.RevisionId; return new software.amazon.cryptography.services.dynamodb.internaldafny.types.DeleteResourcePolicyOutput(ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S26_DeleteResourcePolicyOutput__M10_RevisionId(var_revisionId)); } public static Amazon.DynamoDBv2.Model.DeleteTableRequest FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S16_DeleteTableInput(software.amazon.cryptography.services.dynamodb.internaldafny.types._IDeleteTableInput value) @@ -426,7 +426,7 @@ public static Amazon.DynamoDBv2.Model.DeleteTableResponse FromDafny_N3_com__N9_a public static software.amazon.cryptography.services.dynamodb.internaldafny.types._IDeleteTableOutput ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S17_DeleteTableOutput(Amazon.DynamoDBv2.Model.DeleteTableResponse value) { - Amazon.DynamoDBv2.Model.TableDescription var_tableDescription = value.TableDescription; + Amazon.DynamoDBv2.Model.TableDescription var_tableDescription = (Amazon.DynamoDBv2.Model.TableDescription)value.TableDescription; return new software.amazon.cryptography.services.dynamodb.internaldafny.types.DeleteTableOutput(ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S17_DeleteTableOutput__M16_TableDescription(var_tableDescription)); } public static Amazon.DynamoDBv2.Model.DescribeBackupRequest FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S19_DescribeBackupInput(software.amazon.cryptography.services.dynamodb.internaldafny.types._IDescribeBackupInput value) @@ -446,7 +446,7 @@ public static Amazon.DynamoDBv2.Model.DescribeBackupResponse FromDafny_N3_com__N public static software.amazon.cryptography.services.dynamodb.internaldafny.types._IDescribeBackupOutput ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S20_DescribeBackupOutput(Amazon.DynamoDBv2.Model.DescribeBackupResponse value) { - Amazon.DynamoDBv2.Model.BackupDescription var_backupDescription = value.BackupDescription; + Amazon.DynamoDBv2.Model.BackupDescription var_backupDescription = (Amazon.DynamoDBv2.Model.BackupDescription)value.BackupDescription; return new software.amazon.cryptography.services.dynamodb.internaldafny.types.DescribeBackupOutput(ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S20_DescribeBackupOutput__M17_BackupDescription(var_backupDescription)); } public static Amazon.DynamoDBv2.Model.DescribeContinuousBackupsRequest FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S30_DescribeContinuousBackupsInput(software.amazon.cryptography.services.dynamodb.internaldafny.types._IDescribeContinuousBackupsInput value) @@ -466,7 +466,7 @@ public static Amazon.DynamoDBv2.Model.DescribeContinuousBackupsResponse FromDafn public static software.amazon.cryptography.services.dynamodb.internaldafny.types._IDescribeContinuousBackupsOutput ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S31_DescribeContinuousBackupsOutput(Amazon.DynamoDBv2.Model.DescribeContinuousBackupsResponse value) { - Amazon.DynamoDBv2.Model.ContinuousBackupsDescription var_continuousBackupsDescription = value.ContinuousBackupsDescription; + Amazon.DynamoDBv2.Model.ContinuousBackupsDescription var_continuousBackupsDescription = (Amazon.DynamoDBv2.Model.ContinuousBackupsDescription)value.ContinuousBackupsDescription; return new software.amazon.cryptography.services.dynamodb.internaldafny.types.DescribeContinuousBackupsOutput(ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S31_DescribeContinuousBackupsOutput__M28_ContinuousBackupsDescription(var_continuousBackupsDescription)); } public static Amazon.DynamoDBv2.Model.DescribeContributorInsightsRequest FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S32_DescribeContributorInsightsInput(software.amazon.cryptography.services.dynamodb.internaldafny.types._IDescribeContributorInsightsInput value) @@ -477,7 +477,7 @@ public static Amazon.DynamoDBv2.Model.DescribeContributorInsightsRequest FromDaf public static software.amazon.cryptography.services.dynamodb.internaldafny.types._IDescribeContributorInsightsInput ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S32_DescribeContributorInsightsInput(Amazon.DynamoDBv2.Model.DescribeContributorInsightsRequest value) { - string var_indexName = value.IndexName; + string var_indexName = (string)value.IndexName; return new software.amazon.cryptography.services.dynamodb.internaldafny.types.DescribeContributorInsightsInput(ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S32_DescribeContributorInsightsInput__M9_TableName(value.TableName), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S32_DescribeContributorInsightsInput__M9_IndexName(var_indexName)); } public static Amazon.DynamoDBv2.Model.DescribeContributorInsightsResponse FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S33_DescribeContributorInsightsOutput(software.amazon.cryptography.services.dynamodb.internaldafny.types._IDescribeContributorInsightsOutput value) @@ -492,12 +492,12 @@ public static Amazon.DynamoDBv2.Model.DescribeContributorInsightsResponse FromDa public static software.amazon.cryptography.services.dynamodb.internaldafny.types._IDescribeContributorInsightsOutput ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S33_DescribeContributorInsightsOutput(Amazon.DynamoDBv2.Model.DescribeContributorInsightsResponse value) { - string var_tableName = value.TableName; - string var_indexName = value.IndexName; - System.Collections.Generic.List var_contributorInsightsRuleList = value.ContributorInsightsRuleList; - Amazon.DynamoDBv2.ContributorInsightsStatus var_contributorInsightsStatus = value.ContributorInsightsStatus; - System.DateTime? var_lastUpdateDateTime = value.LastUpdateDateTime; - Amazon.DynamoDBv2.Model.FailureException var_failureException = value.FailureException; + string var_tableName = (string)value.TableName; + string var_indexName = (string)value.IndexName; + System.Collections.Generic.List var_contributorInsightsRuleList = (System.Collections.Generic.List)value.ContributorInsightsRuleList; + Amazon.DynamoDBv2.ContributorInsightsStatus var_contributorInsightsStatus = (Amazon.DynamoDBv2.ContributorInsightsStatus)value.ContributorInsightsStatus; + System.DateTime? var_lastUpdateDateTime = (System.DateTime?)value.LastUpdateDateTime; + Amazon.DynamoDBv2.Model.FailureException var_failureException = (Amazon.DynamoDBv2.Model.FailureException)value.FailureException; return new software.amazon.cryptography.services.dynamodb.internaldafny.types.DescribeContributorInsightsOutput(ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S33_DescribeContributorInsightsOutput__M9_TableName(var_tableName), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S33_DescribeContributorInsightsOutput__M9_IndexName(var_indexName), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S33_DescribeContributorInsightsOutput__M27_ContributorInsightsRuleList(var_contributorInsightsRuleList), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S33_DescribeContributorInsightsOutput__M25_ContributorInsightsStatus(var_contributorInsightsStatus), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S33_DescribeContributorInsightsOutput__M18_LastUpdateDateTime(var_lastUpdateDateTime), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S33_DescribeContributorInsightsOutput__M16_FailureException(var_failureException)); } public static Amazon.DynamoDBv2.Model.DescribeEndpointsRequest FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S24_DescribeEndpointsRequest(software.amazon.cryptography.services.dynamodb.internaldafny.types._IDescribeEndpointsRequest value) @@ -537,7 +537,7 @@ public static Amazon.DynamoDBv2.Model.DescribeExportResponse FromDafny_N3_com__N public static software.amazon.cryptography.services.dynamodb.internaldafny.types._IDescribeExportOutput ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S20_DescribeExportOutput(Amazon.DynamoDBv2.Model.DescribeExportResponse value) { - Amazon.DynamoDBv2.Model.ExportDescription var_exportDescription = value.ExportDescription; + Amazon.DynamoDBv2.Model.ExportDescription var_exportDescription = (Amazon.DynamoDBv2.Model.ExportDescription)value.ExportDescription; return new software.amazon.cryptography.services.dynamodb.internaldafny.types.DescribeExportOutput(ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S20_DescribeExportOutput__M17_ExportDescription(var_exportDescription)); } public static Amazon.DynamoDBv2.Model.DescribeGlobalTableRequest FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S24_DescribeGlobalTableInput(software.amazon.cryptography.services.dynamodb.internaldafny.types._IDescribeGlobalTableInput value) @@ -557,7 +557,7 @@ public static Amazon.DynamoDBv2.Model.DescribeGlobalTableResponse FromDafny_N3_c public static software.amazon.cryptography.services.dynamodb.internaldafny.types._IDescribeGlobalTableOutput ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S25_DescribeGlobalTableOutput(Amazon.DynamoDBv2.Model.DescribeGlobalTableResponse value) { - Amazon.DynamoDBv2.Model.GlobalTableDescription var_globalTableDescription = value.GlobalTableDescription; + Amazon.DynamoDBv2.Model.GlobalTableDescription var_globalTableDescription = (Amazon.DynamoDBv2.Model.GlobalTableDescription)value.GlobalTableDescription; return new software.amazon.cryptography.services.dynamodb.internaldafny.types.DescribeGlobalTableOutput(ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S25_DescribeGlobalTableOutput__M22_GlobalTableDescription(var_globalTableDescription)); } public static Amazon.DynamoDBv2.Model.DescribeGlobalTableSettingsRequest FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S32_DescribeGlobalTableSettingsInput(software.amazon.cryptography.services.dynamodb.internaldafny.types._IDescribeGlobalTableSettingsInput value) @@ -578,8 +578,8 @@ public static Amazon.DynamoDBv2.Model.DescribeGlobalTableSettingsResponse FromDa public static software.amazon.cryptography.services.dynamodb.internaldafny.types._IDescribeGlobalTableSettingsOutput ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S33_DescribeGlobalTableSettingsOutput(Amazon.DynamoDBv2.Model.DescribeGlobalTableSettingsResponse value) { - string var_globalTableName = value.GlobalTableName; - System.Collections.Generic.List var_replicaSettings = value.ReplicaSettings; + string var_globalTableName = (string)value.GlobalTableName; + System.Collections.Generic.List var_replicaSettings = (System.Collections.Generic.List)value.ReplicaSettings; return new software.amazon.cryptography.services.dynamodb.internaldafny.types.DescribeGlobalTableSettingsOutput(ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S33_DescribeGlobalTableSettingsOutput__M15_GlobalTableName(var_globalTableName), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S33_DescribeGlobalTableSettingsOutput__M15_ReplicaSettings(var_replicaSettings)); } public static Amazon.DynamoDBv2.Model.DescribeImportRequest FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S19_DescribeImportInput(software.amazon.cryptography.services.dynamodb.internaldafny.types._IDescribeImportInput value) @@ -620,8 +620,8 @@ public static Amazon.DynamoDBv2.Model.DescribeKinesisStreamingDestinationRespons public static software.amazon.cryptography.services.dynamodb.internaldafny.types._IDescribeKinesisStreamingDestinationOutput ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S41_DescribeKinesisStreamingDestinationOutput(Amazon.DynamoDBv2.Model.DescribeKinesisStreamingDestinationResponse value) { - string var_tableName = value.TableName; - System.Collections.Generic.List var_kinesisDataStreamDestinations = value.KinesisDataStreamDestinations; + string var_tableName = (string)value.TableName; + System.Collections.Generic.List var_kinesisDataStreamDestinations = (System.Collections.Generic.List)value.KinesisDataStreamDestinations; return new software.amazon.cryptography.services.dynamodb.internaldafny.types.DescribeKinesisStreamingDestinationOutput(ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S41_DescribeKinesisStreamingDestinationOutput__M9_TableName(var_tableName), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S41_DescribeKinesisStreamingDestinationOutput__M29_KinesisDataStreamDestinations(var_kinesisDataStreamDestinations)); } public static Amazon.DynamoDBv2.Model.DescribeLimitsRequest FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S19_DescribeLimitsInput(software.amazon.cryptography.services.dynamodb.internaldafny.types._IDescribeLimitsInput value) @@ -644,10 +644,10 @@ public static Amazon.DynamoDBv2.Model.DescribeLimitsResponse FromDafny_N3_com__N public static software.amazon.cryptography.services.dynamodb.internaldafny.types._IDescribeLimitsOutput ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S20_DescribeLimitsOutput(Amazon.DynamoDBv2.Model.DescribeLimitsResponse value) { - long? var_accountMaxReadCapacityUnits = value.AccountMaxReadCapacityUnits; - long? var_accountMaxWriteCapacityUnits = value.AccountMaxWriteCapacityUnits; - long? var_tableMaxReadCapacityUnits = value.TableMaxReadCapacityUnits; - long? var_tableMaxWriteCapacityUnits = value.TableMaxWriteCapacityUnits; + long? var_accountMaxReadCapacityUnits = (long?)value.AccountMaxReadCapacityUnits; + long? var_accountMaxWriteCapacityUnits = (long?)value.AccountMaxWriteCapacityUnits; + long? var_tableMaxReadCapacityUnits = (long?)value.TableMaxReadCapacityUnits; + long? var_tableMaxWriteCapacityUnits = (long?)value.TableMaxWriteCapacityUnits; return new software.amazon.cryptography.services.dynamodb.internaldafny.types.DescribeLimitsOutput(ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S20_DescribeLimitsOutput__M27_AccountMaxReadCapacityUnits(var_accountMaxReadCapacityUnits), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S20_DescribeLimitsOutput__M28_AccountMaxWriteCapacityUnits(var_accountMaxWriteCapacityUnits), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S20_DescribeLimitsOutput__M25_TableMaxReadCapacityUnits(var_tableMaxReadCapacityUnits), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S20_DescribeLimitsOutput__M26_TableMaxWriteCapacityUnits(var_tableMaxWriteCapacityUnits)); } public static Amazon.DynamoDBv2.Model.DescribeTableRequest FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S18_DescribeTableInput(software.amazon.cryptography.services.dynamodb.internaldafny.types._IDescribeTableInput value) @@ -667,7 +667,7 @@ public static Amazon.DynamoDBv2.Model.DescribeTableResponse FromDafny_N3_com__N9 public static software.amazon.cryptography.services.dynamodb.internaldafny.types._IDescribeTableOutput ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S19_DescribeTableOutput(Amazon.DynamoDBv2.Model.DescribeTableResponse value) { - Amazon.DynamoDBv2.Model.TableDescription var_table = value.Table; + Amazon.DynamoDBv2.Model.TableDescription var_table = (Amazon.DynamoDBv2.Model.TableDescription)value.Table; return new software.amazon.cryptography.services.dynamodb.internaldafny.types.DescribeTableOutput(ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S19_DescribeTableOutput__M5_Table(var_table)); } public static Amazon.DynamoDBv2.Model.DescribeTableReplicaAutoScalingRequest FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S36_DescribeTableReplicaAutoScalingInput(software.amazon.cryptography.services.dynamodb.internaldafny.types._IDescribeTableReplicaAutoScalingInput value) @@ -687,7 +687,7 @@ public static Amazon.DynamoDBv2.Model.DescribeTableReplicaAutoScalingResponse Fr public static software.amazon.cryptography.services.dynamodb.internaldafny.types._IDescribeTableReplicaAutoScalingOutput ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S37_DescribeTableReplicaAutoScalingOutput(Amazon.DynamoDBv2.Model.DescribeTableReplicaAutoScalingResponse value) { - Amazon.DynamoDBv2.Model.TableAutoScalingDescription var_tableAutoScalingDescription = value.TableAutoScalingDescription; + Amazon.DynamoDBv2.Model.TableAutoScalingDescription var_tableAutoScalingDescription = (Amazon.DynamoDBv2.Model.TableAutoScalingDescription)value.TableAutoScalingDescription; return new software.amazon.cryptography.services.dynamodb.internaldafny.types.DescribeTableReplicaAutoScalingOutput(ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S37_DescribeTableReplicaAutoScalingOutput__M27_TableAutoScalingDescription(var_tableAutoScalingDescription)); } public static Amazon.DynamoDBv2.Model.DescribeTimeToLiveRequest FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S23_DescribeTimeToLiveInput(software.amazon.cryptography.services.dynamodb.internaldafny.types._IDescribeTimeToLiveInput value) @@ -707,7 +707,7 @@ public static Amazon.DynamoDBv2.Model.DescribeTimeToLiveResponse FromDafny_N3_co public static software.amazon.cryptography.services.dynamodb.internaldafny.types._IDescribeTimeToLiveOutput ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S24_DescribeTimeToLiveOutput(Amazon.DynamoDBv2.Model.DescribeTimeToLiveResponse value) { - Amazon.DynamoDBv2.Model.TimeToLiveDescription var_timeToLiveDescription = value.TimeToLiveDescription; + Amazon.DynamoDBv2.Model.TimeToLiveDescription var_timeToLiveDescription = (Amazon.DynamoDBv2.Model.TimeToLiveDescription)value.TimeToLiveDescription; return new software.amazon.cryptography.services.dynamodb.internaldafny.types.DescribeTimeToLiveOutput(ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S24_DescribeTimeToLiveOutput__M21_TimeToLiveDescription(var_timeToLiveDescription)); } public static Amazon.DynamoDBv2.Model.DisableKinesisStreamingDestinationRequest FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S39_DisableKinesisStreamingDestinationInput(software.amazon.cryptography.services.dynamodb.internaldafny.types._IDisableKinesisStreamingDestinationInput value) @@ -719,7 +719,7 @@ public static Amazon.DynamoDBv2.Model.DisableKinesisStreamingDestinationRequest public static software.amazon.cryptography.services.dynamodb.internaldafny.types._IDisableKinesisStreamingDestinationInput ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S39_DisableKinesisStreamingDestinationInput(Amazon.DynamoDBv2.Model.DisableKinesisStreamingDestinationRequest value) { - Amazon.DynamoDBv2.Model.EnableKinesisStreamingConfiguration var_enableKinesisStreamingConfiguration = value.EnableKinesisStreamingConfiguration; + Amazon.DynamoDBv2.Model.EnableKinesisStreamingConfiguration var_enableKinesisStreamingConfiguration = (Amazon.DynamoDBv2.Model.EnableKinesisStreamingConfiguration)value.EnableKinesisStreamingConfiguration; return new software.amazon.cryptography.services.dynamodb.internaldafny.types.DisableKinesisStreamingDestinationInput(ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S39_DisableKinesisStreamingDestinationInput__M9_TableName(value.TableName), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S39_DisableKinesisStreamingDestinationInput__M9_StreamArn(value.StreamArn), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S39_DisableKinesisStreamingDestinationInput__M35_EnableKinesisStreamingConfiguration(var_enableKinesisStreamingConfiguration)); } public static Amazon.DynamoDBv2.Model.DisableKinesisStreamingDestinationResponse FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S40_DisableKinesisStreamingDestinationOutput(software.amazon.cryptography.services.dynamodb.internaldafny.types._IDisableKinesisStreamingDestinationOutput value) @@ -732,10 +732,10 @@ public static Amazon.DynamoDBv2.Model.DisableKinesisStreamingDestinationResponse public static software.amazon.cryptography.services.dynamodb.internaldafny.types._IDisableKinesisStreamingDestinationOutput ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S40_DisableKinesisStreamingDestinationOutput(Amazon.DynamoDBv2.Model.DisableKinesisStreamingDestinationResponse value) { - string var_tableName = value.TableName; - string var_streamArn = value.StreamArn; - Amazon.DynamoDBv2.DestinationStatus var_destinationStatus = value.DestinationStatus; - Amazon.DynamoDBv2.Model.EnableKinesisStreamingConfiguration var_enableKinesisStreamingConfiguration = value.EnableKinesisStreamingConfiguration; + string var_tableName = (string)value.TableName; + string var_streamArn = (string)value.StreamArn; + Amazon.DynamoDBv2.DestinationStatus var_destinationStatus = (Amazon.DynamoDBv2.DestinationStatus)value.DestinationStatus; + Amazon.DynamoDBv2.Model.EnableKinesisStreamingConfiguration var_enableKinesisStreamingConfiguration = (Amazon.DynamoDBv2.Model.EnableKinesisStreamingConfiguration)value.EnableKinesisStreamingConfiguration; return new software.amazon.cryptography.services.dynamodb.internaldafny.types.DisableKinesisStreamingDestinationOutput(ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S40_DisableKinesisStreamingDestinationOutput__M9_TableName(var_tableName), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S40_DisableKinesisStreamingDestinationOutput__M9_StreamArn(var_streamArn), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S40_DisableKinesisStreamingDestinationOutput__M17_DestinationStatus(var_destinationStatus), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S40_DisableKinesisStreamingDestinationOutput__M35_EnableKinesisStreamingConfiguration(var_enableKinesisStreamingConfiguration)); } public static Amazon.DynamoDBv2.Model.DuplicateItemException FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S22_DuplicateItemException(software.amazon.cryptography.services.dynamodb.internaldafny.types.Error_DuplicateItemException value) @@ -746,7 +746,7 @@ public static Amazon.DynamoDBv2.Model.DuplicateItemException FromDafny_N3_com__N } public static software.amazon.cryptography.services.dynamodb.internaldafny.types.Error_DuplicateItemException ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S22_DuplicateItemException(Amazon.DynamoDBv2.Model.DuplicateItemException value) { - string var_message = value.Message; + string var_message = (string)value.Message; return new software.amazon.cryptography.services.dynamodb.internaldafny.types.Error_DuplicateItemException( ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S22_DuplicateItemException__M7_message(var_message) ); @@ -760,7 +760,7 @@ public static Amazon.DynamoDBv2.Model.EnableKinesisStreamingDestinationRequest F public static software.amazon.cryptography.services.dynamodb.internaldafny.types._IEnableKinesisStreamingDestinationInput ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S38_EnableKinesisStreamingDestinationInput(Amazon.DynamoDBv2.Model.EnableKinesisStreamingDestinationRequest value) { - Amazon.DynamoDBv2.Model.EnableKinesisStreamingConfiguration var_enableKinesisStreamingConfiguration = value.EnableKinesisStreamingConfiguration; + Amazon.DynamoDBv2.Model.EnableKinesisStreamingConfiguration var_enableKinesisStreamingConfiguration = (Amazon.DynamoDBv2.Model.EnableKinesisStreamingConfiguration)value.EnableKinesisStreamingConfiguration; return new software.amazon.cryptography.services.dynamodb.internaldafny.types.EnableKinesisStreamingDestinationInput(ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S38_EnableKinesisStreamingDestinationInput__M9_TableName(value.TableName), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S38_EnableKinesisStreamingDestinationInput__M9_StreamArn(value.StreamArn), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S38_EnableKinesisStreamingDestinationInput__M35_EnableKinesisStreamingConfiguration(var_enableKinesisStreamingConfiguration)); } public static Amazon.DynamoDBv2.Model.EnableKinesisStreamingDestinationResponse FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S39_EnableKinesisStreamingDestinationOutput(software.amazon.cryptography.services.dynamodb.internaldafny.types._IEnableKinesisStreamingDestinationOutput value) @@ -773,10 +773,10 @@ public static Amazon.DynamoDBv2.Model.EnableKinesisStreamingDestinationResponse public static software.amazon.cryptography.services.dynamodb.internaldafny.types._IEnableKinesisStreamingDestinationOutput ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S39_EnableKinesisStreamingDestinationOutput(Amazon.DynamoDBv2.Model.EnableKinesisStreamingDestinationResponse value) { - string var_tableName = value.TableName; - string var_streamArn = value.StreamArn; - Amazon.DynamoDBv2.DestinationStatus var_destinationStatus = value.DestinationStatus; - Amazon.DynamoDBv2.Model.EnableKinesisStreamingConfiguration var_enableKinesisStreamingConfiguration = value.EnableKinesisStreamingConfiguration; + string var_tableName = (string)value.TableName; + string var_streamArn = (string)value.StreamArn; + Amazon.DynamoDBv2.DestinationStatus var_destinationStatus = (Amazon.DynamoDBv2.DestinationStatus)value.DestinationStatus; + Amazon.DynamoDBv2.Model.EnableKinesisStreamingConfiguration var_enableKinesisStreamingConfiguration = (Amazon.DynamoDBv2.Model.EnableKinesisStreamingConfiguration)value.EnableKinesisStreamingConfiguration; return new software.amazon.cryptography.services.dynamodb.internaldafny.types.EnableKinesisStreamingDestinationOutput(ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S39_EnableKinesisStreamingDestinationOutput__M9_TableName(var_tableName), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S39_EnableKinesisStreamingDestinationOutput__M9_StreamArn(var_streamArn), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S39_EnableKinesisStreamingDestinationOutput__M17_DestinationStatus(var_destinationStatus), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S39_EnableKinesisStreamingDestinationOutput__M35_EnableKinesisStreamingConfiguration(var_enableKinesisStreamingConfiguration)); } public static Amazon.DynamoDBv2.Model.ExecuteStatementRequest FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S21_ExecuteStatementInput(software.amazon.cryptography.services.dynamodb.internaldafny.types._IExecuteStatementInput value) @@ -791,11 +791,11 @@ public static Amazon.DynamoDBv2.Model.ExecuteStatementRequest FromDafny_N3_com__ public static software.amazon.cryptography.services.dynamodb.internaldafny.types._IExecuteStatementInput ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S21_ExecuteStatementInput(Amazon.DynamoDBv2.Model.ExecuteStatementRequest value) { - System.Collections.Generic.List var_parameters = value.Parameters; - bool? var_consistentRead = value.ConsistentRead; - string var_nextToken = value.NextToken; - Amazon.DynamoDBv2.ReturnConsumedCapacity var_returnConsumedCapacity = value.ReturnConsumedCapacity; - int? var_limit = value.Limit; + System.Collections.Generic.List var_parameters = (System.Collections.Generic.List)value.Parameters; + bool? var_consistentRead = (bool?)value.ConsistentRead; + string var_nextToken = (string)value.NextToken; + Amazon.DynamoDBv2.ReturnConsumedCapacity var_returnConsumedCapacity = (Amazon.DynamoDBv2.ReturnConsumedCapacity)value.ReturnConsumedCapacity; + int? var_limit = (int?)value.Limit; return new software.amazon.cryptography.services.dynamodb.internaldafny.types.ExecuteStatementInput(ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S21_ExecuteStatementInput__M9_Statement(value.Statement), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S21_ExecuteStatementInput__M10_Parameters(var_parameters), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S21_ExecuteStatementInput__M14_ConsistentRead(var_consistentRead), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S21_ExecuteStatementInput__M9_NextToken(var_nextToken), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S21_ExecuteStatementInput__M22_ReturnConsumedCapacity(var_returnConsumedCapacity), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S21_ExecuteStatementInput__M5_Limit(var_limit)); } public static Amazon.DynamoDBv2.Model.ExecuteStatementResponse FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S22_ExecuteStatementOutput(software.amazon.cryptography.services.dynamodb.internaldafny.types._IExecuteStatementOutput value) @@ -808,10 +808,10 @@ public static Amazon.DynamoDBv2.Model.ExecuteStatementResponse FromDafny_N3_com_ public static software.amazon.cryptography.services.dynamodb.internaldafny.types._IExecuteStatementOutput ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S22_ExecuteStatementOutput(Amazon.DynamoDBv2.Model.ExecuteStatementResponse value) { - System.Collections.Generic.List> var_items = value.Items; - string var_nextToken = value.NextToken; - Amazon.DynamoDBv2.Model.ConsumedCapacity var_consumedCapacity = value.ConsumedCapacity; - System.Collections.Generic.Dictionary var_lastEvaluatedKey = value.LastEvaluatedKey; + System.Collections.Generic.List> var_items = (System.Collections.Generic.List>)value.Items; + string var_nextToken = (string)value.NextToken; + Amazon.DynamoDBv2.Model.ConsumedCapacity var_consumedCapacity = (Amazon.DynamoDBv2.Model.ConsumedCapacity)value.ConsumedCapacity; + System.Collections.Generic.Dictionary var_lastEvaluatedKey = (System.Collections.Generic.Dictionary)value.LastEvaluatedKey; return new software.amazon.cryptography.services.dynamodb.internaldafny.types.ExecuteStatementOutput(ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S22_ExecuteStatementOutput__M5_Items(var_items), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S22_ExecuteStatementOutput__M9_NextToken(var_nextToken), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S22_ExecuteStatementOutput__M16_ConsumedCapacity(var_consumedCapacity), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S22_ExecuteStatementOutput__M16_LastEvaluatedKey(var_lastEvaluatedKey)); } public static Amazon.DynamoDBv2.Model.ExecuteTransactionRequest FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S23_ExecuteTransactionInput(software.amazon.cryptography.services.dynamodb.internaldafny.types._IExecuteTransactionInput value) @@ -823,8 +823,8 @@ public static Amazon.DynamoDBv2.Model.ExecuteTransactionRequest FromDafny_N3_com public static software.amazon.cryptography.services.dynamodb.internaldafny.types._IExecuteTransactionInput ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S23_ExecuteTransactionInput(Amazon.DynamoDBv2.Model.ExecuteTransactionRequest value) { - string var_clientRequestToken = value.ClientRequestToken; - Amazon.DynamoDBv2.ReturnConsumedCapacity var_returnConsumedCapacity = value.ReturnConsumedCapacity; + string var_clientRequestToken = (string)value.ClientRequestToken; + Amazon.DynamoDBv2.ReturnConsumedCapacity var_returnConsumedCapacity = (Amazon.DynamoDBv2.ReturnConsumedCapacity)value.ReturnConsumedCapacity; return new software.amazon.cryptography.services.dynamodb.internaldafny.types.ExecuteTransactionInput(ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S23_ExecuteTransactionInput__M18_TransactStatements(value.TransactStatements), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S23_ExecuteTransactionInput__M18_ClientRequestToken(var_clientRequestToken), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S23_ExecuteTransactionInput__M22_ReturnConsumedCapacity(var_returnConsumedCapacity)); } public static Amazon.DynamoDBv2.Model.ExecuteTransactionResponse FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S24_ExecuteTransactionOutput(software.amazon.cryptography.services.dynamodb.internaldafny.types._IExecuteTransactionOutput value) @@ -835,8 +835,8 @@ public static Amazon.DynamoDBv2.Model.ExecuteTransactionResponse FromDafny_N3_co public static software.amazon.cryptography.services.dynamodb.internaldafny.types._IExecuteTransactionOutput ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S24_ExecuteTransactionOutput(Amazon.DynamoDBv2.Model.ExecuteTransactionResponse value) { - System.Collections.Generic.List var_responses = value.Responses; - System.Collections.Generic.List var_consumedCapacity = value.ConsumedCapacity; + System.Collections.Generic.List var_responses = (System.Collections.Generic.List)value.Responses; + System.Collections.Generic.List var_consumedCapacity = (System.Collections.Generic.List)value.ConsumedCapacity; return new software.amazon.cryptography.services.dynamodb.internaldafny.types.ExecuteTransactionOutput(ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S24_ExecuteTransactionOutput__M9_Responses(var_responses), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S24_ExecuteTransactionOutput__M16_ConsumedCapacity(var_consumedCapacity)); } public static Amazon.DynamoDBv2.Model.ExportConflictException FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S23_ExportConflictException(software.amazon.cryptography.services.dynamodb.internaldafny.types.Error_ExportConflictException value) @@ -847,7 +847,7 @@ public static Amazon.DynamoDBv2.Model.ExportConflictException FromDafny_N3_com__ } public static software.amazon.cryptography.services.dynamodb.internaldafny.types.Error_ExportConflictException ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S23_ExportConflictException(Amazon.DynamoDBv2.Model.ExportConflictException value) { - string var_message = value.Message; + string var_message = (string)value.Message; return new software.amazon.cryptography.services.dynamodb.internaldafny.types.Error_ExportConflictException( ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S23_ExportConflictException__M7_message(var_message) ); @@ -860,7 +860,7 @@ public static Amazon.DynamoDBv2.Model.ExportNotFoundException FromDafny_N3_com__ } public static software.amazon.cryptography.services.dynamodb.internaldafny.types.Error_ExportNotFoundException ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S23_ExportNotFoundException(Amazon.DynamoDBv2.Model.ExportNotFoundException value) { - string var_message = value.Message; + string var_message = (string)value.Message; return new software.amazon.cryptography.services.dynamodb.internaldafny.types.Error_ExportNotFoundException( ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S23_ExportNotFoundException__M7_message(var_message) ); @@ -882,15 +882,15 @@ public static Amazon.DynamoDBv2.Model.ExportTableToPointInTimeRequest FromDafny_ public static software.amazon.cryptography.services.dynamodb.internaldafny.types._IExportTableToPointInTimeInput ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S29_ExportTableToPointInTimeInput(Amazon.DynamoDBv2.Model.ExportTableToPointInTimeRequest value) { - System.DateTime? var_exportTime = value.ExportTime; - string var_clientToken = value.ClientToken; - string var_s3BucketOwner = value.S3BucketOwner; - string var_s3Prefix = value.S3Prefix; - Amazon.DynamoDBv2.S3SseAlgorithm var_s3SseAlgorithm = value.S3SseAlgorithm; - string var_s3SseKmsKeyId = value.S3SseKmsKeyId; - Amazon.DynamoDBv2.ExportFormat var_exportFormat = value.ExportFormat; - Amazon.DynamoDBv2.ExportType var_exportType = value.ExportType; - Amazon.DynamoDBv2.Model.IncrementalExportSpecification var_incrementalExportSpecification = value.IncrementalExportSpecification; + System.DateTime? var_exportTime = (System.DateTime?)value.ExportTime; + string var_clientToken = (string)value.ClientToken; + string var_s3BucketOwner = (string)value.S3BucketOwner; + string var_s3Prefix = (string)value.S3Prefix; + Amazon.DynamoDBv2.S3SseAlgorithm var_s3SseAlgorithm = (Amazon.DynamoDBv2.S3SseAlgorithm)value.S3SseAlgorithm; + string var_s3SseKmsKeyId = (string)value.S3SseKmsKeyId; + Amazon.DynamoDBv2.ExportFormat var_exportFormat = (Amazon.DynamoDBv2.ExportFormat)value.ExportFormat; + Amazon.DynamoDBv2.ExportType var_exportType = (Amazon.DynamoDBv2.ExportType)value.ExportType; + Amazon.DynamoDBv2.Model.IncrementalExportSpecification var_incrementalExportSpecification = (Amazon.DynamoDBv2.Model.IncrementalExportSpecification)value.IncrementalExportSpecification; return new software.amazon.cryptography.services.dynamodb.internaldafny.types.ExportTableToPointInTimeInput(ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S29_ExportTableToPointInTimeInput__M8_TableArn(value.TableArn), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S29_ExportTableToPointInTimeInput__M10_ExportTime(var_exportTime), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S29_ExportTableToPointInTimeInput__M11_ClientToken(var_clientToken), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S29_ExportTableToPointInTimeInput__M8_S3Bucket(value.S3Bucket), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S29_ExportTableToPointInTimeInput__M13_S3BucketOwner(var_s3BucketOwner), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S29_ExportTableToPointInTimeInput__M8_S3Prefix(var_s3Prefix), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S29_ExportTableToPointInTimeInput__M14_S3SseAlgorithm(var_s3SseAlgorithm), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S29_ExportTableToPointInTimeInput__M13_S3SseKmsKeyId(var_s3SseKmsKeyId), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S29_ExportTableToPointInTimeInput__M12_ExportFormat(var_exportFormat), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S29_ExportTableToPointInTimeInput__M10_ExportType(var_exportType), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S29_ExportTableToPointInTimeInput__M30_IncrementalExportSpecification(var_incrementalExportSpecification)); } public static Amazon.DynamoDBv2.Model.ExportTableToPointInTimeResponse FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S30_ExportTableToPointInTimeOutput(software.amazon.cryptography.services.dynamodb.internaldafny.types._IExportTableToPointInTimeOutput value) @@ -900,7 +900,7 @@ public static Amazon.DynamoDBv2.Model.ExportTableToPointInTimeResponse FromDafny public static software.amazon.cryptography.services.dynamodb.internaldafny.types._IExportTableToPointInTimeOutput ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S30_ExportTableToPointInTimeOutput(Amazon.DynamoDBv2.Model.ExportTableToPointInTimeResponse value) { - Amazon.DynamoDBv2.Model.ExportDescription var_exportDescription = value.ExportDescription; + Amazon.DynamoDBv2.Model.ExportDescription var_exportDescription = (Amazon.DynamoDBv2.Model.ExportDescription)value.ExportDescription; return new software.amazon.cryptography.services.dynamodb.internaldafny.types.ExportTableToPointInTimeOutput(ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S30_ExportTableToPointInTimeOutput__M17_ExportDescription(var_exportDescription)); } public static Amazon.DynamoDBv2.Model.GetItemRequest FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S12_GetItemInput(software.amazon.cryptography.services.dynamodb.internaldafny.types._IGetItemInput value) @@ -916,11 +916,11 @@ public static Amazon.DynamoDBv2.Model.GetItemRequest FromDafny_N3_com__N9_amazon public static software.amazon.cryptography.services.dynamodb.internaldafny.types._IGetItemInput ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S12_GetItemInput(Amazon.DynamoDBv2.Model.GetItemRequest value) { - System.Collections.Generic.List var_attributesToGet = value.AttributesToGet; - bool? var_consistentRead = value.ConsistentRead; - Amazon.DynamoDBv2.ReturnConsumedCapacity var_returnConsumedCapacity = value.ReturnConsumedCapacity; - string var_projectionExpression = value.ProjectionExpression; - System.Collections.Generic.Dictionary var_expressionAttributeNames = value.ExpressionAttributeNames; + System.Collections.Generic.List var_attributesToGet = (System.Collections.Generic.List)value.AttributesToGet; + bool? var_consistentRead = (bool?)value.ConsistentRead; + Amazon.DynamoDBv2.ReturnConsumedCapacity var_returnConsumedCapacity = (Amazon.DynamoDBv2.ReturnConsumedCapacity)value.ReturnConsumedCapacity; + string var_projectionExpression = (string)value.ProjectionExpression; + System.Collections.Generic.Dictionary var_expressionAttributeNames = (System.Collections.Generic.Dictionary)value.ExpressionAttributeNames; return new software.amazon.cryptography.services.dynamodb.internaldafny.types.GetItemInput(ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S12_GetItemInput__M9_TableName(value.TableName), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S12_GetItemInput__M3_Key(value.Key), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S12_GetItemInput__M15_AttributesToGet(var_attributesToGet), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S12_GetItemInput__M14_ConsistentRead(var_consistentRead), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S12_GetItemInput__M22_ReturnConsumedCapacity(var_returnConsumedCapacity), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S12_GetItemInput__M20_ProjectionExpression(var_projectionExpression), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S12_GetItemInput__M24_ExpressionAttributeNames(var_expressionAttributeNames)); } public static Amazon.DynamoDBv2.Model.GetItemResponse FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S13_GetItemOutput(software.amazon.cryptography.services.dynamodb.internaldafny.types._IGetItemOutput value) @@ -931,8 +931,8 @@ public static Amazon.DynamoDBv2.Model.GetItemResponse FromDafny_N3_com__N9_amazo public static software.amazon.cryptography.services.dynamodb.internaldafny.types._IGetItemOutput ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S13_GetItemOutput(Amazon.DynamoDBv2.Model.GetItemResponse value) { - System.Collections.Generic.Dictionary var_item = value.Item; - Amazon.DynamoDBv2.Model.ConsumedCapacity var_consumedCapacity = value.ConsumedCapacity; + System.Collections.Generic.Dictionary var_item = (System.Collections.Generic.Dictionary)value.Item; + Amazon.DynamoDBv2.Model.ConsumedCapacity var_consumedCapacity = (Amazon.DynamoDBv2.Model.ConsumedCapacity)value.ConsumedCapacity; return new software.amazon.cryptography.services.dynamodb.internaldafny.types.GetItemOutput(ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S13_GetItemOutput__M4_Item(var_item), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S13_GetItemOutput__M16_ConsumedCapacity(var_consumedCapacity)); } public static Amazon.DynamoDBv2.Model.GetResourcePolicyRequest FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S22_GetResourcePolicyInput(software.amazon.cryptography.services.dynamodb.internaldafny.types._IGetResourcePolicyInput value) @@ -953,8 +953,8 @@ public static Amazon.DynamoDBv2.Model.GetResourcePolicyResponse FromDafny_N3_com public static software.amazon.cryptography.services.dynamodb.internaldafny.types._IGetResourcePolicyOutput ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S23_GetResourcePolicyOutput(Amazon.DynamoDBv2.Model.GetResourcePolicyResponse value) { - string var_policy = value.Policy; - string var_revisionId = value.RevisionId; + string var_policy = (string)value.Policy; + string var_revisionId = (string)value.RevisionId; return new software.amazon.cryptography.services.dynamodb.internaldafny.types.GetResourcePolicyOutput(ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S23_GetResourcePolicyOutput__M6_Policy(var_policy), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S23_GetResourcePolicyOutput__M10_RevisionId(var_revisionId)); } public static Amazon.DynamoDBv2.Model.GlobalTableAlreadyExistsException FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S33_GlobalTableAlreadyExistsException(software.amazon.cryptography.services.dynamodb.internaldafny.types.Error_GlobalTableAlreadyExistsException value) @@ -965,7 +965,7 @@ public static Amazon.DynamoDBv2.Model.GlobalTableAlreadyExistsException FromDafn } public static software.amazon.cryptography.services.dynamodb.internaldafny.types.Error_GlobalTableAlreadyExistsException ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S33_GlobalTableAlreadyExistsException(Amazon.DynamoDBv2.Model.GlobalTableAlreadyExistsException value) { - string var_message = value.Message; + string var_message = (string)value.Message; return new software.amazon.cryptography.services.dynamodb.internaldafny.types.Error_GlobalTableAlreadyExistsException( ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S33_GlobalTableAlreadyExistsException__M7_message(var_message) ); @@ -978,7 +978,7 @@ public static Amazon.DynamoDBv2.Model.GlobalTableNotFoundException FromDafny_N3_ } public static software.amazon.cryptography.services.dynamodb.internaldafny.types.Error_GlobalTableNotFoundException ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S28_GlobalTableNotFoundException(Amazon.DynamoDBv2.Model.GlobalTableNotFoundException value) { - string var_message = value.Message; + string var_message = (string)value.Message; return new software.amazon.cryptography.services.dynamodb.internaldafny.types.Error_GlobalTableNotFoundException( ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S28_GlobalTableNotFoundException__M7_message(var_message) ); @@ -991,7 +991,7 @@ public static Amazon.DynamoDBv2.Model.IdempotentParameterMismatchException FromD } public static software.amazon.cryptography.services.dynamodb.internaldafny.types.Error_IdempotentParameterMismatchException ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S36_IdempotentParameterMismatchException(Amazon.DynamoDBv2.Model.IdempotentParameterMismatchException value) { - string var_message = value.Message; + string var_message = (string)value.Message; return new software.amazon.cryptography.services.dynamodb.internaldafny.types.Error_IdempotentParameterMismatchException( ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S36_IdempotentParameterMismatchException__M7_Message(var_message) ); @@ -1004,7 +1004,7 @@ public static Amazon.DynamoDBv2.Model.ImportConflictException FromDafny_N3_com__ } public static software.amazon.cryptography.services.dynamodb.internaldafny.types.Error_ImportConflictException ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S23_ImportConflictException(Amazon.DynamoDBv2.Model.ImportConflictException value) { - string var_message = value.Message; + string var_message = (string)value.Message; return new software.amazon.cryptography.services.dynamodb.internaldafny.types.Error_ImportConflictException( ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S23_ImportConflictException__M7_message(var_message) ); @@ -1017,7 +1017,7 @@ public static Amazon.DynamoDBv2.Model.ImportNotFoundException FromDafny_N3_com__ } public static software.amazon.cryptography.services.dynamodb.internaldafny.types.Error_ImportNotFoundException ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S23_ImportNotFoundException(Amazon.DynamoDBv2.Model.ImportNotFoundException value) { - string var_message = value.Message; + string var_message = (string)value.Message; return new software.amazon.cryptography.services.dynamodb.internaldafny.types.Error_ImportNotFoundException( ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S23_ImportNotFoundException__M7_message(var_message) ); @@ -1034,9 +1034,9 @@ public static Amazon.DynamoDBv2.Model.ImportTableRequest FromDafny_N3_com__N9_am public static software.amazon.cryptography.services.dynamodb.internaldafny.types._IImportTableInput ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S16_ImportTableInput(Amazon.DynamoDBv2.Model.ImportTableRequest value) { - string var_clientToken = value.ClientToken; - Amazon.DynamoDBv2.Model.InputFormatOptions var_inputFormatOptions = value.InputFormatOptions; - Amazon.DynamoDBv2.InputCompressionType var_inputCompressionType = value.InputCompressionType; + string var_clientToken = (string)value.ClientToken; + Amazon.DynamoDBv2.Model.InputFormatOptions var_inputFormatOptions = (Amazon.DynamoDBv2.Model.InputFormatOptions)value.InputFormatOptions; + Amazon.DynamoDBv2.InputCompressionType var_inputCompressionType = (Amazon.DynamoDBv2.InputCompressionType)value.InputCompressionType; return new software.amazon.cryptography.services.dynamodb.internaldafny.types.ImportTableInput(ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S16_ImportTableInput__M11_ClientToken(var_clientToken), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S16_ImportTableInput__M14_S3BucketSource(value.S3BucketSource), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S16_ImportTableInput__M11_InputFormat(value.InputFormat), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S16_ImportTableInput__M18_InputFormatOptions(var_inputFormatOptions), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S16_ImportTableInput__M20_InputCompressionType(var_inputCompressionType), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S16_ImportTableInput__M23_TableCreationParameters(value.TableCreationParameters)); } public static Amazon.DynamoDBv2.Model.ImportTableResponse FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S17_ImportTableOutput(software.amazon.cryptography.services.dynamodb.internaldafny.types._IImportTableOutput value) @@ -1057,7 +1057,7 @@ public static Amazon.DynamoDBv2.Model.IndexNotFoundException FromDafny_N3_com__N } public static software.amazon.cryptography.services.dynamodb.internaldafny.types.Error_IndexNotFoundException ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S22_IndexNotFoundException(Amazon.DynamoDBv2.Model.IndexNotFoundException value) { - string var_message = value.Message; + string var_message = (string)value.Message; return new software.amazon.cryptography.services.dynamodb.internaldafny.types.Error_IndexNotFoundException( ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S22_IndexNotFoundException__M7_message(var_message) ); @@ -1070,7 +1070,7 @@ public static Amazon.DynamoDBv2.Model.InternalServerErrorException FromDafny_N3_ } public static software.amazon.cryptography.services.dynamodb.internaldafny.types.Error_InternalServerError ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S19_InternalServerError(Amazon.DynamoDBv2.Model.InternalServerErrorException value) { - string var_message = value.Message; + string var_message = (string)value.Message; return new software.amazon.cryptography.services.dynamodb.internaldafny.types.Error_InternalServerError( ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S19_InternalServerError__M7_message(var_message) ); @@ -1083,7 +1083,7 @@ public static Amazon.DynamoDBv2.Model.InvalidExportTimeException FromDafny_N3_co } public static software.amazon.cryptography.services.dynamodb.internaldafny.types.Error_InvalidExportTimeException ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S26_InvalidExportTimeException(Amazon.DynamoDBv2.Model.InvalidExportTimeException value) { - string var_message = value.Message; + string var_message = (string)value.Message; return new software.amazon.cryptography.services.dynamodb.internaldafny.types.Error_InvalidExportTimeException( ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S26_InvalidExportTimeException__M7_message(var_message) ); @@ -1096,7 +1096,7 @@ public static Amazon.DynamoDBv2.Model.InvalidRestoreTimeException FromDafny_N3_c } public static software.amazon.cryptography.services.dynamodb.internaldafny.types.Error_InvalidRestoreTimeException ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S27_InvalidRestoreTimeException(Amazon.DynamoDBv2.Model.InvalidRestoreTimeException value) { - string var_message = value.Message; + string var_message = (string)value.Message; return new software.amazon.cryptography.services.dynamodb.internaldafny.types.Error_InvalidRestoreTimeException( ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S27_InvalidRestoreTimeException__M7_message(var_message) ); @@ -1109,7 +1109,7 @@ public static Amazon.DynamoDBv2.Model.ItemCollectionSizeLimitExceededException F } public static software.amazon.cryptography.services.dynamodb.internaldafny.types.Error_ItemCollectionSizeLimitExceededException ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S40_ItemCollectionSizeLimitExceededException(Amazon.DynamoDBv2.Model.ItemCollectionSizeLimitExceededException value) { - string var_message = value.Message; + string var_message = (string)value.Message; return new software.amazon.cryptography.services.dynamodb.internaldafny.types.Error_ItemCollectionSizeLimitExceededException( ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S40_ItemCollectionSizeLimitExceededException__M7_message(var_message) ); @@ -1122,7 +1122,7 @@ public static Amazon.DynamoDBv2.Model.LimitExceededException FromDafny_N3_com__N } public static software.amazon.cryptography.services.dynamodb.internaldafny.types.Error_LimitExceededException ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S22_LimitExceededException(Amazon.DynamoDBv2.Model.LimitExceededException value) { - string var_message = value.Message; + string var_message = (string)value.Message; return new software.amazon.cryptography.services.dynamodb.internaldafny.types.Error_LimitExceededException( ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S22_LimitExceededException__M7_message(var_message) ); @@ -1139,12 +1139,12 @@ public static Amazon.DynamoDBv2.Model.ListBackupsRequest FromDafny_N3_com__N9_am public static software.amazon.cryptography.services.dynamodb.internaldafny.types._IListBackupsInput ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S16_ListBackupsInput(Amazon.DynamoDBv2.Model.ListBackupsRequest value) { - string var_tableName = value.TableName; - int? var_limit = value.Limit; - System.DateTime? var_timeRangeLowerBound = value.TimeRangeLowerBound; - System.DateTime? var_timeRangeUpperBound = value.TimeRangeUpperBound; - string var_exclusiveStartBackupArn = value.ExclusiveStartBackupArn; - Amazon.DynamoDBv2.BackupTypeFilter var_backupType = value.BackupType; + string var_tableName = (string)value.TableName; + int? var_limit = (int?)value.Limit; + System.DateTime? var_timeRangeLowerBound = (System.DateTime?)value.TimeRangeLowerBound; + System.DateTime? var_timeRangeUpperBound = (System.DateTime?)value.TimeRangeUpperBound; + string var_exclusiveStartBackupArn = (string)value.ExclusiveStartBackupArn; + Amazon.DynamoDBv2.BackupTypeFilter var_backupType = (Amazon.DynamoDBv2.BackupTypeFilter)value.BackupType; return new software.amazon.cryptography.services.dynamodb.internaldafny.types.ListBackupsInput(ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S16_ListBackupsInput__M9_TableName(var_tableName), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S16_ListBackupsInput__M5_Limit(var_limit), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S16_ListBackupsInput__M19_TimeRangeLowerBound(var_timeRangeLowerBound), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S16_ListBackupsInput__M19_TimeRangeUpperBound(var_timeRangeUpperBound), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S16_ListBackupsInput__M23_ExclusiveStartBackupArn(var_exclusiveStartBackupArn), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S16_ListBackupsInput__M10_BackupType(var_backupType)); } public static Amazon.DynamoDBv2.Model.ListBackupsResponse FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S17_ListBackupsOutput(software.amazon.cryptography.services.dynamodb.internaldafny.types._IListBackupsOutput value) @@ -1155,8 +1155,8 @@ public static Amazon.DynamoDBv2.Model.ListBackupsResponse FromDafny_N3_com__N9_a public static software.amazon.cryptography.services.dynamodb.internaldafny.types._IListBackupsOutput ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S17_ListBackupsOutput(Amazon.DynamoDBv2.Model.ListBackupsResponse value) { - System.Collections.Generic.List var_backupSummaries = value.BackupSummaries; - string var_lastEvaluatedBackupArn = value.LastEvaluatedBackupArn; + System.Collections.Generic.List var_backupSummaries = (System.Collections.Generic.List)value.BackupSummaries; + string var_lastEvaluatedBackupArn = (string)value.LastEvaluatedBackupArn; return new software.amazon.cryptography.services.dynamodb.internaldafny.types.ListBackupsOutput(ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S17_ListBackupsOutput__M15_BackupSummaries(var_backupSummaries), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S17_ListBackupsOutput__M22_LastEvaluatedBackupArn(var_lastEvaluatedBackupArn)); } public static Amazon.DynamoDBv2.Model.ListContributorInsightsRequest FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S28_ListContributorInsightsInput(software.amazon.cryptography.services.dynamodb.internaldafny.types._IListContributorInsightsInput value) @@ -1168,9 +1168,9 @@ public static Amazon.DynamoDBv2.Model.ListContributorInsightsRequest FromDafny_N public static software.amazon.cryptography.services.dynamodb.internaldafny.types._IListContributorInsightsInput ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S28_ListContributorInsightsInput(Amazon.DynamoDBv2.Model.ListContributorInsightsRequest value) { - string var_tableName = value.TableName; - string var_nextToken = value.NextToken; - int? var_maxResults = value.MaxResults; + string var_tableName = (string)value.TableName; + string var_nextToken = (string)value.NextToken; + int? var_maxResults = (int?)value.MaxResults; return new software.amazon.cryptography.services.dynamodb.internaldafny.types.ListContributorInsightsInput(ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S28_ListContributorInsightsInput__M9_TableName(var_tableName), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S28_ListContributorInsightsInput__M9_NextToken(var_nextToken), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S28_ListContributorInsightsInput__M10_MaxResults(var_maxResults)); } public static Amazon.DynamoDBv2.Model.ListContributorInsightsResponse FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S29_ListContributorInsightsOutput(software.amazon.cryptography.services.dynamodb.internaldafny.types._IListContributorInsightsOutput value) @@ -1181,8 +1181,8 @@ public static Amazon.DynamoDBv2.Model.ListContributorInsightsResponse FromDafny_ public static software.amazon.cryptography.services.dynamodb.internaldafny.types._IListContributorInsightsOutput ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S29_ListContributorInsightsOutput(Amazon.DynamoDBv2.Model.ListContributorInsightsResponse value) { - System.Collections.Generic.List var_contributorInsightsSummaries = value.ContributorInsightsSummaries; - string var_nextToken = value.NextToken; + System.Collections.Generic.List var_contributorInsightsSummaries = (System.Collections.Generic.List)value.ContributorInsightsSummaries; + string var_nextToken = (string)value.NextToken; return new software.amazon.cryptography.services.dynamodb.internaldafny.types.ListContributorInsightsOutput(ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S29_ListContributorInsightsOutput__M28_ContributorInsightsSummaries(var_contributorInsightsSummaries), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S29_ListContributorInsightsOutput__M9_NextToken(var_nextToken)); } public static Amazon.DynamoDBv2.Model.ListExportsRequest FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S16_ListExportsInput(software.amazon.cryptography.services.dynamodb.internaldafny.types._IListExportsInput value) @@ -1194,9 +1194,9 @@ public static Amazon.DynamoDBv2.Model.ListExportsRequest FromDafny_N3_com__N9_am public static software.amazon.cryptography.services.dynamodb.internaldafny.types._IListExportsInput ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S16_ListExportsInput(Amazon.DynamoDBv2.Model.ListExportsRequest value) { - string var_tableArn = value.TableArn; - int? var_maxResults = value.MaxResults; - string var_nextToken = value.NextToken; + string var_tableArn = (string)value.TableArn; + int? var_maxResults = (int?)value.MaxResults; + string var_nextToken = (string)value.NextToken; return new software.amazon.cryptography.services.dynamodb.internaldafny.types.ListExportsInput(ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S16_ListExportsInput__M8_TableArn(var_tableArn), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S16_ListExportsInput__M10_MaxResults(var_maxResults), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S16_ListExportsInput__M9_NextToken(var_nextToken)); } public static Amazon.DynamoDBv2.Model.ListExportsResponse FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S17_ListExportsOutput(software.amazon.cryptography.services.dynamodb.internaldafny.types._IListExportsOutput value) @@ -1207,8 +1207,8 @@ public static Amazon.DynamoDBv2.Model.ListExportsResponse FromDafny_N3_com__N9_a public static software.amazon.cryptography.services.dynamodb.internaldafny.types._IListExportsOutput ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S17_ListExportsOutput(Amazon.DynamoDBv2.Model.ListExportsResponse value) { - System.Collections.Generic.List var_exportSummaries = value.ExportSummaries; - string var_nextToken = value.NextToken; + System.Collections.Generic.List var_exportSummaries = (System.Collections.Generic.List)value.ExportSummaries; + string var_nextToken = (string)value.NextToken; return new software.amazon.cryptography.services.dynamodb.internaldafny.types.ListExportsOutput(ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S17_ListExportsOutput__M15_ExportSummaries(var_exportSummaries), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S17_ListExportsOutput__M9_NextToken(var_nextToken)); } public static Amazon.DynamoDBv2.Model.ListGlobalTablesRequest FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S21_ListGlobalTablesInput(software.amazon.cryptography.services.dynamodb.internaldafny.types._IListGlobalTablesInput value) @@ -1220,9 +1220,9 @@ public static Amazon.DynamoDBv2.Model.ListGlobalTablesRequest FromDafny_N3_com__ public static software.amazon.cryptography.services.dynamodb.internaldafny.types._IListGlobalTablesInput ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S21_ListGlobalTablesInput(Amazon.DynamoDBv2.Model.ListGlobalTablesRequest value) { - string var_exclusiveStartGlobalTableName = value.ExclusiveStartGlobalTableName; - int? var_limit = value.Limit; - string var_regionName = value.RegionName; + string var_exclusiveStartGlobalTableName = (string)value.ExclusiveStartGlobalTableName; + int? var_limit = (int?)value.Limit; + string var_regionName = (string)value.RegionName; return new software.amazon.cryptography.services.dynamodb.internaldafny.types.ListGlobalTablesInput(ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S21_ListGlobalTablesInput__M29_ExclusiveStartGlobalTableName(var_exclusiveStartGlobalTableName), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S21_ListGlobalTablesInput__M5_Limit(var_limit), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S21_ListGlobalTablesInput__M10_RegionName(var_regionName)); } public static Amazon.DynamoDBv2.Model.ListGlobalTablesResponse FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S22_ListGlobalTablesOutput(software.amazon.cryptography.services.dynamodb.internaldafny.types._IListGlobalTablesOutput value) @@ -1233,8 +1233,8 @@ public static Amazon.DynamoDBv2.Model.ListGlobalTablesResponse FromDafny_N3_com_ public static software.amazon.cryptography.services.dynamodb.internaldafny.types._IListGlobalTablesOutput ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S22_ListGlobalTablesOutput(Amazon.DynamoDBv2.Model.ListGlobalTablesResponse value) { - System.Collections.Generic.List var_globalTables = value.GlobalTables; - string var_lastEvaluatedGlobalTableName = value.LastEvaluatedGlobalTableName; + System.Collections.Generic.List var_globalTables = (System.Collections.Generic.List)value.GlobalTables; + string var_lastEvaluatedGlobalTableName = (string)value.LastEvaluatedGlobalTableName; return new software.amazon.cryptography.services.dynamodb.internaldafny.types.ListGlobalTablesOutput(ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S22_ListGlobalTablesOutput__M12_GlobalTables(var_globalTables), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S22_ListGlobalTablesOutput__M28_LastEvaluatedGlobalTableName(var_lastEvaluatedGlobalTableName)); } public static Amazon.DynamoDBv2.Model.ListImportsRequest FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S16_ListImportsInput(software.amazon.cryptography.services.dynamodb.internaldafny.types._IListImportsInput value) @@ -1246,9 +1246,9 @@ public static Amazon.DynamoDBv2.Model.ListImportsRequest FromDafny_N3_com__N9_am public static software.amazon.cryptography.services.dynamodb.internaldafny.types._IListImportsInput ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S16_ListImportsInput(Amazon.DynamoDBv2.Model.ListImportsRequest value) { - string var_tableArn = value.TableArn; - int? var_pageSize = value.PageSize; - string var_nextToken = value.NextToken; + string var_tableArn = (string)value.TableArn; + int? var_pageSize = (int?)value.PageSize; + string var_nextToken = (string)value.NextToken; return new software.amazon.cryptography.services.dynamodb.internaldafny.types.ListImportsInput(ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S16_ListImportsInput__M8_TableArn(var_tableArn), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S16_ListImportsInput__M8_PageSize(var_pageSize), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S16_ListImportsInput__M9_NextToken(var_nextToken)); } public static Amazon.DynamoDBv2.Model.ListImportsResponse FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S17_ListImportsOutput(software.amazon.cryptography.services.dynamodb.internaldafny.types._IListImportsOutput value) @@ -1259,8 +1259,8 @@ public static Amazon.DynamoDBv2.Model.ListImportsResponse FromDafny_N3_com__N9_a public static software.amazon.cryptography.services.dynamodb.internaldafny.types._IListImportsOutput ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S17_ListImportsOutput(Amazon.DynamoDBv2.Model.ListImportsResponse value) { - System.Collections.Generic.List var_importSummaryList = value.ImportSummaryList; - string var_nextToken = value.NextToken; + System.Collections.Generic.List var_importSummaryList = (System.Collections.Generic.List)value.ImportSummaryList; + string var_nextToken = (string)value.NextToken; return new software.amazon.cryptography.services.dynamodb.internaldafny.types.ListImportsOutput(ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S17_ListImportsOutput__M17_ImportSummaryList(var_importSummaryList), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S17_ListImportsOutput__M9_NextToken(var_nextToken)); } public static Amazon.DynamoDBv2.Model.ListTablesRequest FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S15_ListTablesInput(software.amazon.cryptography.services.dynamodb.internaldafny.types._IListTablesInput value) @@ -1271,8 +1271,8 @@ public static Amazon.DynamoDBv2.Model.ListTablesRequest FromDafny_N3_com__N9_ama public static software.amazon.cryptography.services.dynamodb.internaldafny.types._IListTablesInput ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S15_ListTablesInput(Amazon.DynamoDBv2.Model.ListTablesRequest value) { - string var_exclusiveStartTableName = value.ExclusiveStartTableName; - int? var_limit = value.Limit; + string var_exclusiveStartTableName = (string)value.ExclusiveStartTableName; + int? var_limit = (int?)value.Limit; return new software.amazon.cryptography.services.dynamodb.internaldafny.types.ListTablesInput(ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S15_ListTablesInput__M23_ExclusiveStartTableName(var_exclusiveStartTableName), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S15_ListTablesInput__M5_Limit(var_limit)); } public static Amazon.DynamoDBv2.Model.ListTablesResponse FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S16_ListTablesOutput(software.amazon.cryptography.services.dynamodb.internaldafny.types._IListTablesOutput value) @@ -1283,8 +1283,8 @@ public static Amazon.DynamoDBv2.Model.ListTablesResponse FromDafny_N3_com__N9_am public static software.amazon.cryptography.services.dynamodb.internaldafny.types._IListTablesOutput ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S16_ListTablesOutput(Amazon.DynamoDBv2.Model.ListTablesResponse value) { - System.Collections.Generic.List var_tableNames = value.TableNames; - string var_lastEvaluatedTableName = value.LastEvaluatedTableName; + System.Collections.Generic.List var_tableNames = (System.Collections.Generic.List)value.TableNames; + string var_lastEvaluatedTableName = (string)value.LastEvaluatedTableName; return new software.amazon.cryptography.services.dynamodb.internaldafny.types.ListTablesOutput(ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S16_ListTablesOutput__M10_TableNames(var_tableNames), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S16_ListTablesOutput__M22_LastEvaluatedTableName(var_lastEvaluatedTableName)); } public static Amazon.DynamoDBv2.Model.ListTagsOfResourceRequest FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S23_ListTagsOfResourceInput(software.amazon.cryptography.services.dynamodb.internaldafny.types._IListTagsOfResourceInput value) @@ -1295,7 +1295,7 @@ public static Amazon.DynamoDBv2.Model.ListTagsOfResourceRequest FromDafny_N3_com public static software.amazon.cryptography.services.dynamodb.internaldafny.types._IListTagsOfResourceInput ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S23_ListTagsOfResourceInput(Amazon.DynamoDBv2.Model.ListTagsOfResourceRequest value) { - string var_nextToken = value.NextToken; + string var_nextToken = (string)value.NextToken; return new software.amazon.cryptography.services.dynamodb.internaldafny.types.ListTagsOfResourceInput(ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S23_ListTagsOfResourceInput__M11_ResourceArn(value.ResourceArn), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S23_ListTagsOfResourceInput__M9_NextToken(var_nextToken)); } public static Amazon.DynamoDBv2.Model.ListTagsOfResourceResponse FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S24_ListTagsOfResourceOutput(software.amazon.cryptography.services.dynamodb.internaldafny.types._IListTagsOfResourceOutput value) @@ -1306,8 +1306,8 @@ public static Amazon.DynamoDBv2.Model.ListTagsOfResourceResponse FromDafny_N3_co public static software.amazon.cryptography.services.dynamodb.internaldafny.types._IListTagsOfResourceOutput ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S24_ListTagsOfResourceOutput(Amazon.DynamoDBv2.Model.ListTagsOfResourceResponse value) { - System.Collections.Generic.List var_tags = value.Tags; - string var_nextToken = value.NextToken; + System.Collections.Generic.List var_tags = (System.Collections.Generic.List)value.Tags; + string var_nextToken = (string)value.NextToken; return new software.amazon.cryptography.services.dynamodb.internaldafny.types.ListTagsOfResourceOutput(ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S24_ListTagsOfResourceOutput__M4_Tags(var_tags), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S24_ListTagsOfResourceOutput__M9_NextToken(var_nextToken)); } public static Amazon.DynamoDBv2.Model.PointInTimeRecoveryUnavailableException FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S39_PointInTimeRecoveryUnavailableException(software.amazon.cryptography.services.dynamodb.internaldafny.types.Error_PointInTimeRecoveryUnavailableException value) @@ -1318,7 +1318,7 @@ public static Amazon.DynamoDBv2.Model.PointInTimeRecoveryUnavailableException Fr } public static software.amazon.cryptography.services.dynamodb.internaldafny.types.Error_PointInTimeRecoveryUnavailableException ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S39_PointInTimeRecoveryUnavailableException(Amazon.DynamoDBv2.Model.PointInTimeRecoveryUnavailableException value) { - string var_message = value.Message; + string var_message = (string)value.Message; return new software.amazon.cryptography.services.dynamodb.internaldafny.types.Error_PointInTimeRecoveryUnavailableException( ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S39_PointInTimeRecoveryUnavailableException__M7_message(var_message) ); @@ -1331,7 +1331,7 @@ public static Amazon.DynamoDBv2.Model.PolicyNotFoundException FromDafny_N3_com__ } public static software.amazon.cryptography.services.dynamodb.internaldafny.types.Error_PolicyNotFoundException ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S23_PolicyNotFoundException(Amazon.DynamoDBv2.Model.PolicyNotFoundException value) { - string var_message = value.Message; + string var_message = (string)value.Message; return new software.amazon.cryptography.services.dynamodb.internaldafny.types.Error_PolicyNotFoundException( ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S23_PolicyNotFoundException__M7_message(var_message) ); @@ -1344,7 +1344,7 @@ public static Amazon.DynamoDBv2.Model.ProvisionedThroughputExceededException Fro } public static software.amazon.cryptography.services.dynamodb.internaldafny.types.Error_ProvisionedThroughputExceededException ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S38_ProvisionedThroughputExceededException(Amazon.DynamoDBv2.Model.ProvisionedThroughputExceededException value) { - string var_message = value.Message; + string var_message = (string)value.Message; return new software.amazon.cryptography.services.dynamodb.internaldafny.types.Error_ProvisionedThroughputExceededException( ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S38_ProvisionedThroughputExceededException__M7_message(var_message) ); @@ -1365,14 +1365,14 @@ public static Amazon.DynamoDBv2.Model.PutItemRequest FromDafny_N3_com__N9_amazon public static software.amazon.cryptography.services.dynamodb.internaldafny.types._IPutItemInput ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S12_PutItemInput(Amazon.DynamoDBv2.Model.PutItemRequest value) { - System.Collections.Generic.Dictionary var_expected = value.Expected; - Amazon.DynamoDBv2.ReturnValue var_returnValues = value.ReturnValues; - Amazon.DynamoDBv2.ReturnConsumedCapacity var_returnConsumedCapacity = value.ReturnConsumedCapacity; - Amazon.DynamoDBv2.ReturnItemCollectionMetrics var_returnItemCollectionMetrics = value.ReturnItemCollectionMetrics; - Amazon.DynamoDBv2.ConditionalOperator var_conditionalOperator = value.ConditionalOperator; - string var_conditionExpression = value.ConditionExpression; - System.Collections.Generic.Dictionary var_expressionAttributeNames = value.ExpressionAttributeNames; - System.Collections.Generic.Dictionary var_expressionAttributeValues = value.ExpressionAttributeValues; + System.Collections.Generic.Dictionary var_expected = (System.Collections.Generic.Dictionary)value.Expected; + Amazon.DynamoDBv2.ReturnValue var_returnValues = (Amazon.DynamoDBv2.ReturnValue)value.ReturnValues; + Amazon.DynamoDBv2.ReturnConsumedCapacity var_returnConsumedCapacity = (Amazon.DynamoDBv2.ReturnConsumedCapacity)value.ReturnConsumedCapacity; + Amazon.DynamoDBv2.ReturnItemCollectionMetrics var_returnItemCollectionMetrics = (Amazon.DynamoDBv2.ReturnItemCollectionMetrics)value.ReturnItemCollectionMetrics; + Amazon.DynamoDBv2.ConditionalOperator var_conditionalOperator = (Amazon.DynamoDBv2.ConditionalOperator)value.ConditionalOperator; + string var_conditionExpression = (string)value.ConditionExpression; + System.Collections.Generic.Dictionary var_expressionAttributeNames = (System.Collections.Generic.Dictionary)value.ExpressionAttributeNames; + System.Collections.Generic.Dictionary var_expressionAttributeValues = (System.Collections.Generic.Dictionary)value.ExpressionAttributeValues; return new software.amazon.cryptography.services.dynamodb.internaldafny.types.PutItemInput(ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S12_PutItemInput__M9_TableName(value.TableName), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S12_PutItemInput__M4_Item(value.Item), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S12_PutItemInput__M8_Expected(var_expected), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S12_PutItemInput__M12_ReturnValues(var_returnValues), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S12_PutItemInput__M22_ReturnConsumedCapacity(var_returnConsumedCapacity), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S12_PutItemInput__M27_ReturnItemCollectionMetrics(var_returnItemCollectionMetrics), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S12_PutItemInput__M19_ConditionalOperator(var_conditionalOperator), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S12_PutItemInput__M19_ConditionExpression(var_conditionExpression), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S12_PutItemInput__M24_ExpressionAttributeNames(var_expressionAttributeNames), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S12_PutItemInput__M25_ExpressionAttributeValues(var_expressionAttributeValues)); } public static Amazon.DynamoDBv2.Model.PutItemResponse FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S13_PutItemOutput(software.amazon.cryptography.services.dynamodb.internaldafny.types._IPutItemOutput value) @@ -1384,9 +1384,9 @@ public static Amazon.DynamoDBv2.Model.PutItemResponse FromDafny_N3_com__N9_amazo public static software.amazon.cryptography.services.dynamodb.internaldafny.types._IPutItemOutput ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S13_PutItemOutput(Amazon.DynamoDBv2.Model.PutItemResponse value) { - System.Collections.Generic.Dictionary var_attributes = value.Attributes; - Amazon.DynamoDBv2.Model.ConsumedCapacity var_consumedCapacity = value.ConsumedCapacity; - Amazon.DynamoDBv2.Model.ItemCollectionMetrics var_itemCollectionMetrics = value.ItemCollectionMetrics; + System.Collections.Generic.Dictionary var_attributes = (System.Collections.Generic.Dictionary)value.Attributes; + Amazon.DynamoDBv2.Model.ConsumedCapacity var_consumedCapacity = (Amazon.DynamoDBv2.Model.ConsumedCapacity)value.ConsumedCapacity; + Amazon.DynamoDBv2.Model.ItemCollectionMetrics var_itemCollectionMetrics = (Amazon.DynamoDBv2.Model.ItemCollectionMetrics)value.ItemCollectionMetrics; return new software.amazon.cryptography.services.dynamodb.internaldafny.types.PutItemOutput(ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S13_PutItemOutput__M10_Attributes(var_attributes), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S13_PutItemOutput__M16_ConsumedCapacity(var_consumedCapacity), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S13_PutItemOutput__M21_ItemCollectionMetrics(var_itemCollectionMetrics)); } public static Amazon.DynamoDBv2.Model.PutResourcePolicyRequest FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S22_PutResourcePolicyInput(software.amazon.cryptography.services.dynamodb.internaldafny.types._IPutResourcePolicyInput value) @@ -1399,8 +1399,8 @@ public static Amazon.DynamoDBv2.Model.PutResourcePolicyRequest FromDafny_N3_com_ public static software.amazon.cryptography.services.dynamodb.internaldafny.types._IPutResourcePolicyInput ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S22_PutResourcePolicyInput(Amazon.DynamoDBv2.Model.PutResourcePolicyRequest value) { - string var_expectedRevisionId = value.ExpectedRevisionId; - bool? var_confirmRemoveSelfResourceAccess = value.ConfirmRemoveSelfResourceAccess; + string var_expectedRevisionId = (string)value.ExpectedRevisionId; + bool? var_confirmRemoveSelfResourceAccess = (bool?)value.ConfirmRemoveSelfResourceAccess; return new software.amazon.cryptography.services.dynamodb.internaldafny.types.PutResourcePolicyInput(ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S22_PutResourcePolicyInput__M11_ResourceArn(value.ResourceArn), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S22_PutResourcePolicyInput__M6_Policy(value.Policy), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S22_PutResourcePolicyInput__M18_ExpectedRevisionId(var_expectedRevisionId), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S22_PutResourcePolicyInput__M31_ConfirmRemoveSelfResourceAccess(var_confirmRemoveSelfResourceAccess)); } public static Amazon.DynamoDBv2.Model.PutResourcePolicyResponse FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S23_PutResourcePolicyOutput(software.amazon.cryptography.services.dynamodb.internaldafny.types._IPutResourcePolicyOutput value) @@ -1410,7 +1410,7 @@ public static Amazon.DynamoDBv2.Model.PutResourcePolicyResponse FromDafny_N3_com public static software.amazon.cryptography.services.dynamodb.internaldafny.types._IPutResourcePolicyOutput ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S23_PutResourcePolicyOutput(Amazon.DynamoDBv2.Model.PutResourcePolicyResponse value) { - string var_revisionId = value.RevisionId; + string var_revisionId = (string)value.RevisionId; return new software.amazon.cryptography.services.dynamodb.internaldafny.types.PutResourcePolicyOutput(ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S23_PutResourcePolicyOutput__M10_RevisionId(var_revisionId)); } public static Amazon.DynamoDBv2.Model.QueryRequest FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S10_QueryInput(software.amazon.cryptography.services.dynamodb.internaldafny.types._IQueryInput value) @@ -1436,22 +1436,22 @@ public static Amazon.DynamoDBv2.Model.QueryRequest FromDafny_N3_com__N9_amazonaw public static software.amazon.cryptography.services.dynamodb.internaldafny.types._IQueryInput ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S10_QueryInput(Amazon.DynamoDBv2.Model.QueryRequest value) { - string var_indexName = value.IndexName; - Amazon.DynamoDBv2.Select var_select = value.Select; - System.Collections.Generic.List var_attributesToGet = value.AttributesToGet; - int? var_limit = value.Limit; - bool? var_consistentRead = value.ConsistentRead; - System.Collections.Generic.Dictionary var_keyConditions = value.KeyConditions; - System.Collections.Generic.Dictionary var_queryFilter = value.QueryFilter; - Amazon.DynamoDBv2.ConditionalOperator var_conditionalOperator = value.ConditionalOperator; - bool? var_scanIndexForward = value.ScanIndexForward; - System.Collections.Generic.Dictionary var_exclusiveStartKey = value.ExclusiveStartKey; - Amazon.DynamoDBv2.ReturnConsumedCapacity var_returnConsumedCapacity = value.ReturnConsumedCapacity; - string var_projectionExpression = value.ProjectionExpression; - string var_filterExpression = value.FilterExpression; - string var_keyConditionExpression = value.KeyConditionExpression; - System.Collections.Generic.Dictionary var_expressionAttributeNames = value.ExpressionAttributeNames; - System.Collections.Generic.Dictionary var_expressionAttributeValues = value.ExpressionAttributeValues; + string var_indexName = (string)value.IndexName; + Amazon.DynamoDBv2.Select var_select = (Amazon.DynamoDBv2.Select)value.Select; + System.Collections.Generic.List var_attributesToGet = (System.Collections.Generic.List)value.AttributesToGet; + int? var_limit = (int?)value.Limit; + bool? var_consistentRead = (bool?)value.ConsistentRead; + System.Collections.Generic.Dictionary var_keyConditions = (System.Collections.Generic.Dictionary)value.KeyConditions; + System.Collections.Generic.Dictionary var_queryFilter = (System.Collections.Generic.Dictionary)value.QueryFilter; + Amazon.DynamoDBv2.ConditionalOperator var_conditionalOperator = (Amazon.DynamoDBv2.ConditionalOperator)value.ConditionalOperator; + bool? var_scanIndexForward = (bool?)value.ScanIndexForward; + System.Collections.Generic.Dictionary var_exclusiveStartKey = (System.Collections.Generic.Dictionary)value.ExclusiveStartKey; + Amazon.DynamoDBv2.ReturnConsumedCapacity var_returnConsumedCapacity = (Amazon.DynamoDBv2.ReturnConsumedCapacity)value.ReturnConsumedCapacity; + string var_projectionExpression = (string)value.ProjectionExpression; + string var_filterExpression = (string)value.FilterExpression; + string var_keyConditionExpression = (string)value.KeyConditionExpression; + System.Collections.Generic.Dictionary var_expressionAttributeNames = (System.Collections.Generic.Dictionary)value.ExpressionAttributeNames; + System.Collections.Generic.Dictionary var_expressionAttributeValues = (System.Collections.Generic.Dictionary)value.ExpressionAttributeValues; return new software.amazon.cryptography.services.dynamodb.internaldafny.types.QueryInput(ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S10_QueryInput__M9_TableName(value.TableName), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S10_QueryInput__M9_IndexName(var_indexName), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S10_QueryInput__M6_Select(var_select), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S10_QueryInput__M15_AttributesToGet(var_attributesToGet), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S10_QueryInput__M5_Limit(var_limit), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S10_QueryInput__M14_ConsistentRead(var_consistentRead), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S10_QueryInput__M13_KeyConditions(var_keyConditions), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S10_QueryInput__M11_QueryFilter(var_queryFilter), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S10_QueryInput__M19_ConditionalOperator(var_conditionalOperator), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S10_QueryInput__M16_ScanIndexForward(var_scanIndexForward), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S10_QueryInput__M17_ExclusiveStartKey(var_exclusiveStartKey), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S10_QueryInput__M22_ReturnConsumedCapacity(var_returnConsumedCapacity), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S10_QueryInput__M20_ProjectionExpression(var_projectionExpression), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S10_QueryInput__M16_FilterExpression(var_filterExpression), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S10_QueryInput__M22_KeyConditionExpression(var_keyConditionExpression), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S10_QueryInput__M24_ExpressionAttributeNames(var_expressionAttributeNames), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S10_QueryInput__M25_ExpressionAttributeValues(var_expressionAttributeValues)); } public static Amazon.DynamoDBv2.Model.QueryResponse FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S11_QueryOutput(software.amazon.cryptography.services.dynamodb.internaldafny.types._IQueryOutput value) @@ -1465,11 +1465,11 @@ public static Amazon.DynamoDBv2.Model.QueryResponse FromDafny_N3_com__N9_amazona public static software.amazon.cryptography.services.dynamodb.internaldafny.types._IQueryOutput ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S11_QueryOutput(Amazon.DynamoDBv2.Model.QueryResponse value) { - System.Collections.Generic.List> var_items = value.Items; - int? var_count = value.Count; - int? var_scannedCount = value.ScannedCount; - System.Collections.Generic.Dictionary var_lastEvaluatedKey = value.LastEvaluatedKey; - Amazon.DynamoDBv2.Model.ConsumedCapacity var_consumedCapacity = value.ConsumedCapacity; + System.Collections.Generic.List> var_items = (System.Collections.Generic.List>)value.Items; + int? var_count = (int?)value.Count; + int? var_scannedCount = (int?)value.ScannedCount; + System.Collections.Generic.Dictionary var_lastEvaluatedKey = (System.Collections.Generic.Dictionary)value.LastEvaluatedKey; + Amazon.DynamoDBv2.Model.ConsumedCapacity var_consumedCapacity = (Amazon.DynamoDBv2.Model.ConsumedCapacity)value.ConsumedCapacity; return new software.amazon.cryptography.services.dynamodb.internaldafny.types.QueryOutput(ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S11_QueryOutput__M5_Items(var_items), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S11_QueryOutput__M5_Count(var_count), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S11_QueryOutput__M12_ScannedCount(var_scannedCount), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S11_QueryOutput__M16_LastEvaluatedKey(var_lastEvaluatedKey), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S11_QueryOutput__M16_ConsumedCapacity(var_consumedCapacity)); } public static Amazon.DynamoDBv2.Model.ReplicaAlreadyExistsException FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S29_ReplicaAlreadyExistsException(software.amazon.cryptography.services.dynamodb.internaldafny.types.Error_ReplicaAlreadyExistsException value) @@ -1480,7 +1480,7 @@ public static Amazon.DynamoDBv2.Model.ReplicaAlreadyExistsException FromDafny_N3 } public static software.amazon.cryptography.services.dynamodb.internaldafny.types.Error_ReplicaAlreadyExistsException ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S29_ReplicaAlreadyExistsException(Amazon.DynamoDBv2.Model.ReplicaAlreadyExistsException value) { - string var_message = value.Message; + string var_message = (string)value.Message; return new software.amazon.cryptography.services.dynamodb.internaldafny.types.Error_ReplicaAlreadyExistsException( ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S29_ReplicaAlreadyExistsException__M7_message(var_message) ); @@ -1493,7 +1493,7 @@ public static Amazon.DynamoDBv2.Model.ReplicaNotFoundException FromDafny_N3_com_ } public static software.amazon.cryptography.services.dynamodb.internaldafny.types.Error_ReplicaNotFoundException ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S24_ReplicaNotFoundException(Amazon.DynamoDBv2.Model.ReplicaNotFoundException value) { - string var_message = value.Message; + string var_message = (string)value.Message; return new software.amazon.cryptography.services.dynamodb.internaldafny.types.Error_ReplicaNotFoundException( ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S24_ReplicaNotFoundException__M7_message(var_message) ); @@ -1506,7 +1506,7 @@ public static Amazon.DynamoDBv2.Model.RequestLimitExceededException FromDafny_N3 } public static software.amazon.cryptography.services.dynamodb.internaldafny.types.Error_RequestLimitExceeded ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S20_RequestLimitExceeded(Amazon.DynamoDBv2.Model.RequestLimitExceededException value) { - string var_message = value.Message; + string var_message = (string)value.Message; return new software.amazon.cryptography.services.dynamodb.internaldafny.types.Error_RequestLimitExceeded( ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S20_RequestLimitExceeded__M7_message(var_message) ); @@ -1519,7 +1519,7 @@ public static Amazon.DynamoDBv2.Model.ResourceInUseException FromDafny_N3_com__N } public static software.amazon.cryptography.services.dynamodb.internaldafny.types.Error_ResourceInUseException ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S22_ResourceInUseException(Amazon.DynamoDBv2.Model.ResourceInUseException value) { - string var_message = value.Message; + string var_message = (string)value.Message; return new software.amazon.cryptography.services.dynamodb.internaldafny.types.Error_ResourceInUseException( ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S22_ResourceInUseException__M7_message(var_message) ); @@ -1532,7 +1532,7 @@ public static Amazon.DynamoDBv2.Model.ResourceNotFoundException FromDafny_N3_com } public static software.amazon.cryptography.services.dynamodb.internaldafny.types.Error_ResourceNotFoundException ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S25_ResourceNotFoundException(Amazon.DynamoDBv2.Model.ResourceNotFoundException value) { - string var_message = value.Message; + string var_message = (string)value.Message; return new software.amazon.cryptography.services.dynamodb.internaldafny.types.Error_ResourceNotFoundException( ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S25_ResourceNotFoundException__M7_message(var_message) ); @@ -1551,12 +1551,12 @@ public static Amazon.DynamoDBv2.Model.RestoreTableFromBackupRequest FromDafny_N3 public static software.amazon.cryptography.services.dynamodb.internaldafny.types._IRestoreTableFromBackupInput ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S27_RestoreTableFromBackupInput(Amazon.DynamoDBv2.Model.RestoreTableFromBackupRequest value) { - Amazon.DynamoDBv2.BillingMode var_billingModeOverride = value.BillingModeOverride; - System.Collections.Generic.List var_globalSecondaryIndexOverride = value.GlobalSecondaryIndexOverride; - System.Collections.Generic.List var_localSecondaryIndexOverride = value.LocalSecondaryIndexOverride; - Amazon.DynamoDBv2.Model.ProvisionedThroughput var_provisionedThroughputOverride = value.ProvisionedThroughputOverride; - Amazon.DynamoDBv2.Model.OnDemandThroughput var_onDemandThroughputOverride = value.OnDemandThroughputOverride; - Amazon.DynamoDBv2.Model.SSESpecification var_sSESpecificationOverride = value.SSESpecificationOverride; + Amazon.DynamoDBv2.BillingMode var_billingModeOverride = (Amazon.DynamoDBv2.BillingMode)value.BillingModeOverride; + System.Collections.Generic.List var_globalSecondaryIndexOverride = (System.Collections.Generic.List)value.GlobalSecondaryIndexOverride; + System.Collections.Generic.List var_localSecondaryIndexOverride = (System.Collections.Generic.List)value.LocalSecondaryIndexOverride; + Amazon.DynamoDBv2.Model.ProvisionedThroughput var_provisionedThroughputOverride = (Amazon.DynamoDBv2.Model.ProvisionedThroughput)value.ProvisionedThroughputOverride; + Amazon.DynamoDBv2.Model.OnDemandThroughput var_onDemandThroughputOverride = (Amazon.DynamoDBv2.Model.OnDemandThroughput)value.OnDemandThroughputOverride; + Amazon.DynamoDBv2.Model.SSESpecification var_sSESpecificationOverride = (Amazon.DynamoDBv2.Model.SSESpecification)value.SSESpecificationOverride; return new software.amazon.cryptography.services.dynamodb.internaldafny.types.RestoreTableFromBackupInput(ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S27_RestoreTableFromBackupInput__M15_TargetTableName(value.TargetTableName), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S27_RestoreTableFromBackupInput__M9_BackupArn(value.BackupArn), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S27_RestoreTableFromBackupInput__M19_BillingModeOverride(var_billingModeOverride), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S27_RestoreTableFromBackupInput__M28_GlobalSecondaryIndexOverride(var_globalSecondaryIndexOverride), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S27_RestoreTableFromBackupInput__M27_LocalSecondaryIndexOverride(var_localSecondaryIndexOverride), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S27_RestoreTableFromBackupInput__M29_ProvisionedThroughputOverride(var_provisionedThroughputOverride), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S27_RestoreTableFromBackupInput__M26_OnDemandThroughputOverride(var_onDemandThroughputOverride), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S27_RestoreTableFromBackupInput__M24_SSESpecificationOverride(var_sSESpecificationOverride)); } public static Amazon.DynamoDBv2.Model.RestoreTableFromBackupResponse FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S28_RestoreTableFromBackupOutput(software.amazon.cryptography.services.dynamodb.internaldafny.types._IRestoreTableFromBackupOutput value) @@ -1566,7 +1566,7 @@ public static Amazon.DynamoDBv2.Model.RestoreTableFromBackupResponse FromDafny_N public static software.amazon.cryptography.services.dynamodb.internaldafny.types._IRestoreTableFromBackupOutput ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S28_RestoreTableFromBackupOutput(Amazon.DynamoDBv2.Model.RestoreTableFromBackupResponse value) { - Amazon.DynamoDBv2.Model.TableDescription var_tableDescription = value.TableDescription; + Amazon.DynamoDBv2.Model.TableDescription var_tableDescription = (Amazon.DynamoDBv2.Model.TableDescription)value.TableDescription; return new software.amazon.cryptography.services.dynamodb.internaldafny.types.RestoreTableFromBackupOutput(ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S28_RestoreTableFromBackupOutput__M16_TableDescription(var_tableDescription)); } public static Amazon.DynamoDBv2.Model.RestoreTableToPointInTimeRequest FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S30_RestoreTableToPointInTimeInput(software.amazon.cryptography.services.dynamodb.internaldafny.types._IRestoreTableToPointInTimeInput value) @@ -1586,16 +1586,16 @@ public static Amazon.DynamoDBv2.Model.RestoreTableToPointInTimeRequest FromDafny public static software.amazon.cryptography.services.dynamodb.internaldafny.types._IRestoreTableToPointInTimeInput ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S30_RestoreTableToPointInTimeInput(Amazon.DynamoDBv2.Model.RestoreTableToPointInTimeRequest value) { - string var_sourceTableArn = value.SourceTableArn; - string var_sourceTableName = value.SourceTableName; - bool? var_useLatestRestorableTime = value.UseLatestRestorableTime; - System.DateTime? var_restoreDateTime = value.RestoreDateTime; - Amazon.DynamoDBv2.BillingMode var_billingModeOverride = value.BillingModeOverride; - System.Collections.Generic.List var_globalSecondaryIndexOverride = value.GlobalSecondaryIndexOverride; - System.Collections.Generic.List var_localSecondaryIndexOverride = value.LocalSecondaryIndexOverride; - Amazon.DynamoDBv2.Model.ProvisionedThroughput var_provisionedThroughputOverride = value.ProvisionedThroughputOverride; - Amazon.DynamoDBv2.Model.OnDemandThroughput var_onDemandThroughputOverride = value.OnDemandThroughputOverride; - Amazon.DynamoDBv2.Model.SSESpecification var_sSESpecificationOverride = value.SSESpecificationOverride; + string var_sourceTableArn = (string)value.SourceTableArn; + string var_sourceTableName = (string)value.SourceTableName; + bool? var_useLatestRestorableTime = (bool?)value.UseLatestRestorableTime; + System.DateTime? var_restoreDateTime = (System.DateTime?)value.RestoreDateTime; + Amazon.DynamoDBv2.BillingMode var_billingModeOverride = (Amazon.DynamoDBv2.BillingMode)value.BillingModeOverride; + System.Collections.Generic.List var_globalSecondaryIndexOverride = (System.Collections.Generic.List)value.GlobalSecondaryIndexOverride; + System.Collections.Generic.List var_localSecondaryIndexOverride = (System.Collections.Generic.List)value.LocalSecondaryIndexOverride; + Amazon.DynamoDBv2.Model.ProvisionedThroughput var_provisionedThroughputOverride = (Amazon.DynamoDBv2.Model.ProvisionedThroughput)value.ProvisionedThroughputOverride; + Amazon.DynamoDBv2.Model.OnDemandThroughput var_onDemandThroughputOverride = (Amazon.DynamoDBv2.Model.OnDemandThroughput)value.OnDemandThroughputOverride; + Amazon.DynamoDBv2.Model.SSESpecification var_sSESpecificationOverride = (Amazon.DynamoDBv2.Model.SSESpecification)value.SSESpecificationOverride; return new software.amazon.cryptography.services.dynamodb.internaldafny.types.RestoreTableToPointInTimeInput(ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S30_RestoreTableToPointInTimeInput__M14_SourceTableArn(var_sourceTableArn), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S30_RestoreTableToPointInTimeInput__M15_SourceTableName(var_sourceTableName), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S30_RestoreTableToPointInTimeInput__M15_TargetTableName(value.TargetTableName), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S30_RestoreTableToPointInTimeInput__M23_UseLatestRestorableTime(var_useLatestRestorableTime), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S30_RestoreTableToPointInTimeInput__M15_RestoreDateTime(var_restoreDateTime), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S30_RestoreTableToPointInTimeInput__M19_BillingModeOverride(var_billingModeOverride), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S30_RestoreTableToPointInTimeInput__M28_GlobalSecondaryIndexOverride(var_globalSecondaryIndexOverride), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S30_RestoreTableToPointInTimeInput__M27_LocalSecondaryIndexOverride(var_localSecondaryIndexOverride), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S30_RestoreTableToPointInTimeInput__M29_ProvisionedThroughputOverride(var_provisionedThroughputOverride), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S30_RestoreTableToPointInTimeInput__M26_OnDemandThroughputOverride(var_onDemandThroughputOverride), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S30_RestoreTableToPointInTimeInput__M24_SSESpecificationOverride(var_sSESpecificationOverride)); } public static Amazon.DynamoDBv2.Model.RestoreTableToPointInTimeResponse FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S31_RestoreTableToPointInTimeOutput(software.amazon.cryptography.services.dynamodb.internaldafny.types._IRestoreTableToPointInTimeOutput value) @@ -1605,7 +1605,7 @@ public static Amazon.DynamoDBv2.Model.RestoreTableToPointInTimeResponse FromDafn public static software.amazon.cryptography.services.dynamodb.internaldafny.types._IRestoreTableToPointInTimeOutput ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S31_RestoreTableToPointInTimeOutput(Amazon.DynamoDBv2.Model.RestoreTableToPointInTimeResponse value) { - Amazon.DynamoDBv2.Model.TableDescription var_tableDescription = value.TableDescription; + Amazon.DynamoDBv2.Model.TableDescription var_tableDescription = (Amazon.DynamoDBv2.Model.TableDescription)value.TableDescription; return new software.amazon.cryptography.services.dynamodb.internaldafny.types.RestoreTableToPointInTimeOutput(ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S31_RestoreTableToPointInTimeOutput__M16_TableDescription(var_tableDescription)); } public static Amazon.DynamoDBv2.Model.ScanRequest FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S9_ScanInput(software.amazon.cryptography.services.dynamodb.internaldafny.types._IScanInput value) @@ -1630,21 +1630,21 @@ public static Amazon.DynamoDBv2.Model.ScanRequest FromDafny_N3_com__N9_amazonaws public static software.amazon.cryptography.services.dynamodb.internaldafny.types._IScanInput ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S9_ScanInput(Amazon.DynamoDBv2.Model.ScanRequest value) { - string var_indexName = value.IndexName; - System.Collections.Generic.List var_attributesToGet = value.AttributesToGet; - int? var_limit = value.Limit; - Amazon.DynamoDBv2.Select var_select = value.Select; - System.Collections.Generic.Dictionary var_scanFilter = value.ScanFilter; - Amazon.DynamoDBv2.ConditionalOperator var_conditionalOperator = value.ConditionalOperator; - System.Collections.Generic.Dictionary var_exclusiveStartKey = value.ExclusiveStartKey; - Amazon.DynamoDBv2.ReturnConsumedCapacity var_returnConsumedCapacity = value.ReturnConsumedCapacity; - int? var_totalSegments = value.TotalSegments; - int? var_segment = value.Segment; - string var_projectionExpression = value.ProjectionExpression; - string var_filterExpression = value.FilterExpression; - System.Collections.Generic.Dictionary var_expressionAttributeNames = value.ExpressionAttributeNames; - System.Collections.Generic.Dictionary var_expressionAttributeValues = value.ExpressionAttributeValues; - bool? var_consistentRead = value.ConsistentRead; + string var_indexName = (string)value.IndexName; + System.Collections.Generic.List var_attributesToGet = (System.Collections.Generic.List)value.AttributesToGet; + int? var_limit = (int?)value.Limit; + Amazon.DynamoDBv2.Select var_select = (Amazon.DynamoDBv2.Select)value.Select; + System.Collections.Generic.Dictionary var_scanFilter = (System.Collections.Generic.Dictionary)value.ScanFilter; + Amazon.DynamoDBv2.ConditionalOperator var_conditionalOperator = (Amazon.DynamoDBv2.ConditionalOperator)value.ConditionalOperator; + System.Collections.Generic.Dictionary var_exclusiveStartKey = (System.Collections.Generic.Dictionary)value.ExclusiveStartKey; + Amazon.DynamoDBv2.ReturnConsumedCapacity var_returnConsumedCapacity = (Amazon.DynamoDBv2.ReturnConsumedCapacity)value.ReturnConsumedCapacity; + int? var_totalSegments = (int?)value.TotalSegments; + int? var_segment = (int?)value.Segment; + string var_projectionExpression = (string)value.ProjectionExpression; + string var_filterExpression = (string)value.FilterExpression; + System.Collections.Generic.Dictionary var_expressionAttributeNames = (System.Collections.Generic.Dictionary)value.ExpressionAttributeNames; + System.Collections.Generic.Dictionary var_expressionAttributeValues = (System.Collections.Generic.Dictionary)value.ExpressionAttributeValues; + bool? var_consistentRead = (bool?)value.ConsistentRead; return new software.amazon.cryptography.services.dynamodb.internaldafny.types.ScanInput(ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S9_ScanInput__M9_TableName(value.TableName), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S9_ScanInput__M9_IndexName(var_indexName), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S9_ScanInput__M15_AttributesToGet(var_attributesToGet), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S9_ScanInput__M5_Limit(var_limit), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S9_ScanInput__M6_Select(var_select), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S9_ScanInput__M10_ScanFilter(var_scanFilter), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S9_ScanInput__M19_ConditionalOperator(var_conditionalOperator), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S9_ScanInput__M17_ExclusiveStartKey(var_exclusiveStartKey), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S9_ScanInput__M22_ReturnConsumedCapacity(var_returnConsumedCapacity), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S9_ScanInput__M13_TotalSegments(var_totalSegments), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S9_ScanInput__M7_Segment(var_segment), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S9_ScanInput__M20_ProjectionExpression(var_projectionExpression), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S9_ScanInput__M16_FilterExpression(var_filterExpression), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S9_ScanInput__M24_ExpressionAttributeNames(var_expressionAttributeNames), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S9_ScanInput__M25_ExpressionAttributeValues(var_expressionAttributeValues), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S9_ScanInput__M14_ConsistentRead(var_consistentRead)); } public static Amazon.DynamoDBv2.Model.ScanResponse FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S10_ScanOutput(software.amazon.cryptography.services.dynamodb.internaldafny.types._IScanOutput value) @@ -1658,11 +1658,11 @@ public static Amazon.DynamoDBv2.Model.ScanResponse FromDafny_N3_com__N9_amazonaw public static software.amazon.cryptography.services.dynamodb.internaldafny.types._IScanOutput ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S10_ScanOutput(Amazon.DynamoDBv2.Model.ScanResponse value) { - System.Collections.Generic.List> var_items = value.Items; - int? var_count = value.Count; - int? var_scannedCount = value.ScannedCount; - System.Collections.Generic.Dictionary var_lastEvaluatedKey = value.LastEvaluatedKey; - Amazon.DynamoDBv2.Model.ConsumedCapacity var_consumedCapacity = value.ConsumedCapacity; + System.Collections.Generic.List> var_items = (System.Collections.Generic.List>)value.Items; + int? var_count = (int?)value.Count; + int? var_scannedCount = (int?)value.ScannedCount; + System.Collections.Generic.Dictionary var_lastEvaluatedKey = (System.Collections.Generic.Dictionary)value.LastEvaluatedKey; + Amazon.DynamoDBv2.Model.ConsumedCapacity var_consumedCapacity = (Amazon.DynamoDBv2.Model.ConsumedCapacity)value.ConsumedCapacity; return new software.amazon.cryptography.services.dynamodb.internaldafny.types.ScanOutput(ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S10_ScanOutput__M5_Items(var_items), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S10_ScanOutput__M5_Count(var_count), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S10_ScanOutput__M12_ScannedCount(var_scannedCount), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S10_ScanOutput__M16_LastEvaluatedKey(var_lastEvaluatedKey), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S10_ScanOutput__M16_ConsumedCapacity(var_consumedCapacity)); } public static Amazon.DynamoDBv2.Model.TableAlreadyExistsException FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S27_TableAlreadyExistsException(software.amazon.cryptography.services.dynamodb.internaldafny.types.Error_TableAlreadyExistsException value) @@ -1673,7 +1673,7 @@ public static Amazon.DynamoDBv2.Model.TableAlreadyExistsException FromDafny_N3_c } public static software.amazon.cryptography.services.dynamodb.internaldafny.types.Error_TableAlreadyExistsException ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S27_TableAlreadyExistsException(Amazon.DynamoDBv2.Model.TableAlreadyExistsException value) { - string var_message = value.Message; + string var_message = (string)value.Message; return new software.amazon.cryptography.services.dynamodb.internaldafny.types.Error_TableAlreadyExistsException( ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S27_TableAlreadyExistsException__M7_message(var_message) ); @@ -1686,7 +1686,7 @@ public static Amazon.DynamoDBv2.Model.TableInUseException FromDafny_N3_com__N9_a } public static software.amazon.cryptography.services.dynamodb.internaldafny.types.Error_TableInUseException ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S19_TableInUseException(Amazon.DynamoDBv2.Model.TableInUseException value) { - string var_message = value.Message; + string var_message = (string)value.Message; return new software.amazon.cryptography.services.dynamodb.internaldafny.types.Error_TableInUseException( ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S19_TableInUseException__M7_message(var_message) ); @@ -1699,7 +1699,7 @@ public static Amazon.DynamoDBv2.Model.TableNotFoundException FromDafny_N3_com__N } public static software.amazon.cryptography.services.dynamodb.internaldafny.types.Error_TableNotFoundException ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S22_TableNotFoundException(Amazon.DynamoDBv2.Model.TableNotFoundException value) { - string var_message = value.Message; + string var_message = (string)value.Message; return new software.amazon.cryptography.services.dynamodb.internaldafny.types.Error_TableNotFoundException( ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S22_TableNotFoundException__M7_message(var_message) ); @@ -1723,7 +1723,7 @@ public static Amazon.DynamoDBv2.Model.TransactGetItemsRequest FromDafny_N3_com__ public static software.amazon.cryptography.services.dynamodb.internaldafny.types._ITransactGetItemsInput ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S21_TransactGetItemsInput(Amazon.DynamoDBv2.Model.TransactGetItemsRequest value) { - Amazon.DynamoDBv2.ReturnConsumedCapacity var_returnConsumedCapacity = value.ReturnConsumedCapacity; + Amazon.DynamoDBv2.ReturnConsumedCapacity var_returnConsumedCapacity = (Amazon.DynamoDBv2.ReturnConsumedCapacity)value.ReturnConsumedCapacity; return new software.amazon.cryptography.services.dynamodb.internaldafny.types.TransactGetItemsInput(ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S21_TransactGetItemsInput__M13_TransactItems(value.TransactItems), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S21_TransactGetItemsInput__M22_ReturnConsumedCapacity(var_returnConsumedCapacity)); } public static Amazon.DynamoDBv2.Model.TransactGetItemsResponse FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S22_TransactGetItemsOutput(software.amazon.cryptography.services.dynamodb.internaldafny.types._ITransactGetItemsOutput value) @@ -1734,8 +1734,8 @@ public static Amazon.DynamoDBv2.Model.TransactGetItemsResponse FromDafny_N3_com_ public static software.amazon.cryptography.services.dynamodb.internaldafny.types._ITransactGetItemsOutput ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S22_TransactGetItemsOutput(Amazon.DynamoDBv2.Model.TransactGetItemsResponse value) { - System.Collections.Generic.List var_consumedCapacity = value.ConsumedCapacity; - System.Collections.Generic.List var_responses = value.Responses; + System.Collections.Generic.List var_consumedCapacity = (System.Collections.Generic.List)value.ConsumedCapacity; + System.Collections.Generic.List var_responses = (System.Collections.Generic.List)value.Responses; return new software.amazon.cryptography.services.dynamodb.internaldafny.types.TransactGetItemsOutput(ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S22_TransactGetItemsOutput__M16_ConsumedCapacity(var_consumedCapacity), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S22_TransactGetItemsOutput__M9_Responses(var_responses)); } public static Amazon.DynamoDBv2.Model.TransactionCanceledException FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S28_TransactionCanceledException(software.amazon.cryptography.services.dynamodb.internaldafny.types.Error_TransactionCanceledException value) @@ -1748,8 +1748,8 @@ public static Amazon.DynamoDBv2.Model.TransactionCanceledException FromDafny_N3_ } public static software.amazon.cryptography.services.dynamodb.internaldafny.types.Error_TransactionCanceledException ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S28_TransactionCanceledException(Amazon.DynamoDBv2.Model.TransactionCanceledException value) { - string var_message = value.Message; - System.Collections.Generic.List var_cancellationReasons = value.CancellationReasons; + string var_message = (string)value.Message; + System.Collections.Generic.List var_cancellationReasons = (System.Collections.Generic.List)value.CancellationReasons; return new software.amazon.cryptography.services.dynamodb.internaldafny.types.Error_TransactionCanceledException( ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S28_TransactionCanceledException__M7_Message(var_message) , @@ -1764,7 +1764,7 @@ public static Amazon.DynamoDBv2.Model.TransactionConflictException FromDafny_N3_ } public static software.amazon.cryptography.services.dynamodb.internaldafny.types.Error_TransactionConflictException ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S28_TransactionConflictException(Amazon.DynamoDBv2.Model.TransactionConflictException value) { - string var_message = value.Message; + string var_message = (string)value.Message; return new software.amazon.cryptography.services.dynamodb.internaldafny.types.Error_TransactionConflictException( ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S28_TransactionConflictException__M7_message(var_message) ); @@ -1777,7 +1777,7 @@ public static Amazon.DynamoDBv2.Model.TransactionInProgressException FromDafny_N } public static software.amazon.cryptography.services.dynamodb.internaldafny.types.Error_TransactionInProgressException ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S30_TransactionInProgressException(Amazon.DynamoDBv2.Model.TransactionInProgressException value) { - string var_message = value.Message; + string var_message = (string)value.Message; return new software.amazon.cryptography.services.dynamodb.internaldafny.types.Error_TransactionInProgressException( ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S30_TransactionInProgressException__M7_Message(var_message) ); @@ -1792,9 +1792,9 @@ public static Amazon.DynamoDBv2.Model.TransactWriteItemsRequest FromDafny_N3_com public static software.amazon.cryptography.services.dynamodb.internaldafny.types._ITransactWriteItemsInput ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S23_TransactWriteItemsInput(Amazon.DynamoDBv2.Model.TransactWriteItemsRequest value) { - Amazon.DynamoDBv2.ReturnConsumedCapacity var_returnConsumedCapacity = value.ReturnConsumedCapacity; - Amazon.DynamoDBv2.ReturnItemCollectionMetrics var_returnItemCollectionMetrics = value.ReturnItemCollectionMetrics; - string var_clientRequestToken = value.ClientRequestToken; + Amazon.DynamoDBv2.ReturnConsumedCapacity var_returnConsumedCapacity = (Amazon.DynamoDBv2.ReturnConsumedCapacity)value.ReturnConsumedCapacity; + Amazon.DynamoDBv2.ReturnItemCollectionMetrics var_returnItemCollectionMetrics = (Amazon.DynamoDBv2.ReturnItemCollectionMetrics)value.ReturnItemCollectionMetrics; + string var_clientRequestToken = (string)value.ClientRequestToken; return new software.amazon.cryptography.services.dynamodb.internaldafny.types.TransactWriteItemsInput(ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S23_TransactWriteItemsInput__M13_TransactItems(value.TransactItems), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S23_TransactWriteItemsInput__M22_ReturnConsumedCapacity(var_returnConsumedCapacity), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S23_TransactWriteItemsInput__M27_ReturnItemCollectionMetrics(var_returnItemCollectionMetrics), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S23_TransactWriteItemsInput__M18_ClientRequestToken(var_clientRequestToken)); } public static Amazon.DynamoDBv2.Model.TransactWriteItemsResponse FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S24_TransactWriteItemsOutput(software.amazon.cryptography.services.dynamodb.internaldafny.types._ITransactWriteItemsOutput value) @@ -1805,8 +1805,8 @@ public static Amazon.DynamoDBv2.Model.TransactWriteItemsResponse FromDafny_N3_co public static software.amazon.cryptography.services.dynamodb.internaldafny.types._ITransactWriteItemsOutput ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S24_TransactWriteItemsOutput(Amazon.DynamoDBv2.Model.TransactWriteItemsResponse value) { - System.Collections.Generic.List var_consumedCapacity = value.ConsumedCapacity; - System.Collections.Generic.Dictionary> var_itemCollectionMetrics = value.ItemCollectionMetrics; + System.Collections.Generic.List var_consumedCapacity = (System.Collections.Generic.List)value.ConsumedCapacity; + System.Collections.Generic.Dictionary> var_itemCollectionMetrics = (System.Collections.Generic.Dictionary>)value.ItemCollectionMetrics; return new software.amazon.cryptography.services.dynamodb.internaldafny.types.TransactWriteItemsOutput(ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S24_TransactWriteItemsOutput__M16_ConsumedCapacity(var_consumedCapacity), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S24_TransactWriteItemsOutput__M21_ItemCollectionMetrics(var_itemCollectionMetrics)); } public static Amazon.DynamoDBv2.Model.UntagResourceRequest FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S18_UntagResourceInput(software.amazon.cryptography.services.dynamodb.internaldafny.types._IUntagResourceInput value) @@ -1838,7 +1838,7 @@ public static Amazon.DynamoDBv2.Model.UpdateContinuousBackupsResponse FromDafny_ public static software.amazon.cryptography.services.dynamodb.internaldafny.types._IUpdateContinuousBackupsOutput ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S29_UpdateContinuousBackupsOutput(Amazon.DynamoDBv2.Model.UpdateContinuousBackupsResponse value) { - Amazon.DynamoDBv2.Model.ContinuousBackupsDescription var_continuousBackupsDescription = value.ContinuousBackupsDescription; + Amazon.DynamoDBv2.Model.ContinuousBackupsDescription var_continuousBackupsDescription = (Amazon.DynamoDBv2.Model.ContinuousBackupsDescription)value.ContinuousBackupsDescription; return new software.amazon.cryptography.services.dynamodb.internaldafny.types.UpdateContinuousBackupsOutput(ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S29_UpdateContinuousBackupsOutput__M28_ContinuousBackupsDescription(var_continuousBackupsDescription)); } public static Amazon.DynamoDBv2.Model.UpdateContributorInsightsRequest FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S30_UpdateContributorInsightsInput(software.amazon.cryptography.services.dynamodb.internaldafny.types._IUpdateContributorInsightsInput value) @@ -1850,7 +1850,7 @@ public static Amazon.DynamoDBv2.Model.UpdateContributorInsightsRequest FromDafny public static software.amazon.cryptography.services.dynamodb.internaldafny.types._IUpdateContributorInsightsInput ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S30_UpdateContributorInsightsInput(Amazon.DynamoDBv2.Model.UpdateContributorInsightsRequest value) { - string var_indexName = value.IndexName; + string var_indexName = (string)value.IndexName; return new software.amazon.cryptography.services.dynamodb.internaldafny.types.UpdateContributorInsightsInput(ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S30_UpdateContributorInsightsInput__M9_TableName(value.TableName), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S30_UpdateContributorInsightsInput__M9_IndexName(var_indexName), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S30_UpdateContributorInsightsInput__M25_ContributorInsightsAction(value.ContributorInsightsAction)); } public static Amazon.DynamoDBv2.Model.UpdateContributorInsightsResponse FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S31_UpdateContributorInsightsOutput(software.amazon.cryptography.services.dynamodb.internaldafny.types._IUpdateContributorInsightsOutput value) @@ -1862,9 +1862,9 @@ public static Amazon.DynamoDBv2.Model.UpdateContributorInsightsResponse FromDafn public static software.amazon.cryptography.services.dynamodb.internaldafny.types._IUpdateContributorInsightsOutput ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S31_UpdateContributorInsightsOutput(Amazon.DynamoDBv2.Model.UpdateContributorInsightsResponse value) { - string var_tableName = value.TableName; - string var_indexName = value.IndexName; - Amazon.DynamoDBv2.ContributorInsightsStatus var_contributorInsightsStatus = value.ContributorInsightsStatus; + string var_tableName = (string)value.TableName; + string var_indexName = (string)value.IndexName; + Amazon.DynamoDBv2.ContributorInsightsStatus var_contributorInsightsStatus = (Amazon.DynamoDBv2.ContributorInsightsStatus)value.ContributorInsightsStatus; return new software.amazon.cryptography.services.dynamodb.internaldafny.types.UpdateContributorInsightsOutput(ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S31_UpdateContributorInsightsOutput__M9_TableName(var_tableName), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S31_UpdateContributorInsightsOutput__M9_IndexName(var_indexName), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S31_UpdateContributorInsightsOutput__M25_ContributorInsightsStatus(var_contributorInsightsStatus)); } public static Amazon.DynamoDBv2.Model.UpdateGlobalTableRequest FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S22_UpdateGlobalTableInput(software.amazon.cryptography.services.dynamodb.internaldafny.types._IUpdateGlobalTableInput value) @@ -1885,7 +1885,7 @@ public static Amazon.DynamoDBv2.Model.UpdateGlobalTableResponse FromDafny_N3_com public static software.amazon.cryptography.services.dynamodb.internaldafny.types._IUpdateGlobalTableOutput ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S23_UpdateGlobalTableOutput(Amazon.DynamoDBv2.Model.UpdateGlobalTableResponse value) { - Amazon.DynamoDBv2.Model.GlobalTableDescription var_globalTableDescription = value.GlobalTableDescription; + Amazon.DynamoDBv2.Model.GlobalTableDescription var_globalTableDescription = (Amazon.DynamoDBv2.Model.GlobalTableDescription)value.GlobalTableDescription; return new software.amazon.cryptography.services.dynamodb.internaldafny.types.UpdateGlobalTableOutput(ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S23_UpdateGlobalTableOutput__M22_GlobalTableDescription(var_globalTableDescription)); } public static Amazon.DynamoDBv2.Model.UpdateGlobalTableSettingsRequest FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S30_UpdateGlobalTableSettingsInput(software.amazon.cryptography.services.dynamodb.internaldafny.types._IUpdateGlobalTableSettingsInput value) @@ -1900,11 +1900,11 @@ public static Amazon.DynamoDBv2.Model.UpdateGlobalTableSettingsRequest FromDafny public static software.amazon.cryptography.services.dynamodb.internaldafny.types._IUpdateGlobalTableSettingsInput ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S30_UpdateGlobalTableSettingsInput(Amazon.DynamoDBv2.Model.UpdateGlobalTableSettingsRequest value) { - Amazon.DynamoDBv2.BillingMode var_globalTableBillingMode = value.GlobalTableBillingMode; - long? var_globalTableProvisionedWriteCapacityUnits = value.GlobalTableProvisionedWriteCapacityUnits; - Amazon.DynamoDBv2.Model.AutoScalingSettingsUpdate var_globalTableProvisionedWriteCapacityAutoScalingSettingsUpdate = value.GlobalTableProvisionedWriteCapacityAutoScalingSettingsUpdate; - System.Collections.Generic.List var_globalTableGlobalSecondaryIndexSettingsUpdate = value.GlobalTableGlobalSecondaryIndexSettingsUpdate; - System.Collections.Generic.List var_replicaSettingsUpdate = value.ReplicaSettingsUpdate; + Amazon.DynamoDBv2.BillingMode var_globalTableBillingMode = (Amazon.DynamoDBv2.BillingMode)value.GlobalTableBillingMode; + long? var_globalTableProvisionedWriteCapacityUnits = (long?)value.GlobalTableProvisionedWriteCapacityUnits; + Amazon.DynamoDBv2.Model.AutoScalingSettingsUpdate var_globalTableProvisionedWriteCapacityAutoScalingSettingsUpdate = (Amazon.DynamoDBv2.Model.AutoScalingSettingsUpdate)value.GlobalTableProvisionedWriteCapacityAutoScalingSettingsUpdate; + System.Collections.Generic.List var_globalTableGlobalSecondaryIndexSettingsUpdate = (System.Collections.Generic.List)value.GlobalTableGlobalSecondaryIndexSettingsUpdate; + System.Collections.Generic.List var_replicaSettingsUpdate = (System.Collections.Generic.List)value.ReplicaSettingsUpdate; return new software.amazon.cryptography.services.dynamodb.internaldafny.types.UpdateGlobalTableSettingsInput(ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S30_UpdateGlobalTableSettingsInput__M15_GlobalTableName(value.GlobalTableName), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S30_UpdateGlobalTableSettingsInput__M22_GlobalTableBillingMode(var_globalTableBillingMode), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S30_UpdateGlobalTableSettingsInput__M40_GlobalTableProvisionedWriteCapacityUnits(var_globalTableProvisionedWriteCapacityUnits), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S30_UpdateGlobalTableSettingsInput__M60_GlobalTableProvisionedWriteCapacityAutoScalingSettingsUpdate(var_globalTableProvisionedWriteCapacityAutoScalingSettingsUpdate), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S30_UpdateGlobalTableSettingsInput__M45_GlobalTableGlobalSecondaryIndexSettingsUpdate(var_globalTableGlobalSecondaryIndexSettingsUpdate), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S30_UpdateGlobalTableSettingsInput__M21_ReplicaSettingsUpdate(var_replicaSettingsUpdate)); } public static Amazon.DynamoDBv2.Model.UpdateGlobalTableSettingsResponse FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S31_UpdateGlobalTableSettingsOutput(software.amazon.cryptography.services.dynamodb.internaldafny.types._IUpdateGlobalTableSettingsOutput value) @@ -1915,8 +1915,8 @@ public static Amazon.DynamoDBv2.Model.UpdateGlobalTableSettingsResponse FromDafn public static software.amazon.cryptography.services.dynamodb.internaldafny.types._IUpdateGlobalTableSettingsOutput ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S31_UpdateGlobalTableSettingsOutput(Amazon.DynamoDBv2.Model.UpdateGlobalTableSettingsResponse value) { - string var_globalTableName = value.GlobalTableName; - System.Collections.Generic.List var_replicaSettings = value.ReplicaSettings; + string var_globalTableName = (string)value.GlobalTableName; + System.Collections.Generic.List var_replicaSettings = (System.Collections.Generic.List)value.ReplicaSettings; return new software.amazon.cryptography.services.dynamodb.internaldafny.types.UpdateGlobalTableSettingsOutput(ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S31_UpdateGlobalTableSettingsOutput__M15_GlobalTableName(var_globalTableName), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S31_UpdateGlobalTableSettingsOutput__M15_ReplicaSettings(var_replicaSettings)); } public static Amazon.DynamoDBv2.Model.UpdateItemRequest FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S15_UpdateItemInput(software.amazon.cryptography.services.dynamodb.internaldafny.types._IUpdateItemInput value) @@ -1937,16 +1937,16 @@ public static Amazon.DynamoDBv2.Model.UpdateItemRequest FromDafny_N3_com__N9_ama public static software.amazon.cryptography.services.dynamodb.internaldafny.types._IUpdateItemInput ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S15_UpdateItemInput(Amazon.DynamoDBv2.Model.UpdateItemRequest value) { - System.Collections.Generic.Dictionary var_attributeUpdates = value.AttributeUpdates; - System.Collections.Generic.Dictionary var_expected = value.Expected; - Amazon.DynamoDBv2.ConditionalOperator var_conditionalOperator = value.ConditionalOperator; - Amazon.DynamoDBv2.ReturnValue var_returnValues = value.ReturnValues; - Amazon.DynamoDBv2.ReturnConsumedCapacity var_returnConsumedCapacity = value.ReturnConsumedCapacity; - Amazon.DynamoDBv2.ReturnItemCollectionMetrics var_returnItemCollectionMetrics = value.ReturnItemCollectionMetrics; - string var_updateExpression = value.UpdateExpression; - string var_conditionExpression = value.ConditionExpression; - System.Collections.Generic.Dictionary var_expressionAttributeNames = value.ExpressionAttributeNames; - System.Collections.Generic.Dictionary var_expressionAttributeValues = value.ExpressionAttributeValues; + System.Collections.Generic.Dictionary var_attributeUpdates = (System.Collections.Generic.Dictionary)value.AttributeUpdates; + System.Collections.Generic.Dictionary var_expected = (System.Collections.Generic.Dictionary)value.Expected; + Amazon.DynamoDBv2.ConditionalOperator var_conditionalOperator = (Amazon.DynamoDBv2.ConditionalOperator)value.ConditionalOperator; + Amazon.DynamoDBv2.ReturnValue var_returnValues = (Amazon.DynamoDBv2.ReturnValue)value.ReturnValues; + Amazon.DynamoDBv2.ReturnConsumedCapacity var_returnConsumedCapacity = (Amazon.DynamoDBv2.ReturnConsumedCapacity)value.ReturnConsumedCapacity; + Amazon.DynamoDBv2.ReturnItemCollectionMetrics var_returnItemCollectionMetrics = (Amazon.DynamoDBv2.ReturnItemCollectionMetrics)value.ReturnItemCollectionMetrics; + string var_updateExpression = (string)value.UpdateExpression; + string var_conditionExpression = (string)value.ConditionExpression; + System.Collections.Generic.Dictionary var_expressionAttributeNames = (System.Collections.Generic.Dictionary)value.ExpressionAttributeNames; + System.Collections.Generic.Dictionary var_expressionAttributeValues = (System.Collections.Generic.Dictionary)value.ExpressionAttributeValues; return new software.amazon.cryptography.services.dynamodb.internaldafny.types.UpdateItemInput(ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S15_UpdateItemInput__M9_TableName(value.TableName), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S15_UpdateItemInput__M3_Key(value.Key), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S15_UpdateItemInput__M16_AttributeUpdates(var_attributeUpdates), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S15_UpdateItemInput__M8_Expected(var_expected), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S15_UpdateItemInput__M19_ConditionalOperator(var_conditionalOperator), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S15_UpdateItemInput__M12_ReturnValues(var_returnValues), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S15_UpdateItemInput__M22_ReturnConsumedCapacity(var_returnConsumedCapacity), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S15_UpdateItemInput__M27_ReturnItemCollectionMetrics(var_returnItemCollectionMetrics), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S15_UpdateItemInput__M16_UpdateExpression(var_updateExpression), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S15_UpdateItemInput__M19_ConditionExpression(var_conditionExpression), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S15_UpdateItemInput__M24_ExpressionAttributeNames(var_expressionAttributeNames), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S15_UpdateItemInput__M25_ExpressionAttributeValues(var_expressionAttributeValues)); } public static Amazon.DynamoDBv2.Model.UpdateItemResponse FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S16_UpdateItemOutput(software.amazon.cryptography.services.dynamodb.internaldafny.types._IUpdateItemOutput value) @@ -1958,9 +1958,9 @@ public static Amazon.DynamoDBv2.Model.UpdateItemResponse FromDafny_N3_com__N9_am public static software.amazon.cryptography.services.dynamodb.internaldafny.types._IUpdateItemOutput ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S16_UpdateItemOutput(Amazon.DynamoDBv2.Model.UpdateItemResponse value) { - System.Collections.Generic.Dictionary var_attributes = value.Attributes; - Amazon.DynamoDBv2.Model.ConsumedCapacity var_consumedCapacity = value.ConsumedCapacity; - Amazon.DynamoDBv2.Model.ItemCollectionMetrics var_itemCollectionMetrics = value.ItemCollectionMetrics; + System.Collections.Generic.Dictionary var_attributes = (System.Collections.Generic.Dictionary)value.Attributes; + Amazon.DynamoDBv2.Model.ConsumedCapacity var_consumedCapacity = (Amazon.DynamoDBv2.Model.ConsumedCapacity)value.ConsumedCapacity; + Amazon.DynamoDBv2.Model.ItemCollectionMetrics var_itemCollectionMetrics = (Amazon.DynamoDBv2.Model.ItemCollectionMetrics)value.ItemCollectionMetrics; return new software.amazon.cryptography.services.dynamodb.internaldafny.types.UpdateItemOutput(ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S16_UpdateItemOutput__M10_Attributes(var_attributes), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S16_UpdateItemOutput__M16_ConsumedCapacity(var_consumedCapacity), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S16_UpdateItemOutput__M21_ItemCollectionMetrics(var_itemCollectionMetrics)); } public static Amazon.DynamoDBv2.Model.UpdateKinesisStreamingDestinationRequest FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S38_UpdateKinesisStreamingDestinationInput(software.amazon.cryptography.services.dynamodb.internaldafny.types._IUpdateKinesisStreamingDestinationInput value) @@ -1972,7 +1972,7 @@ public static Amazon.DynamoDBv2.Model.UpdateKinesisStreamingDestinationRequest F public static software.amazon.cryptography.services.dynamodb.internaldafny.types._IUpdateKinesisStreamingDestinationInput ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S38_UpdateKinesisStreamingDestinationInput(Amazon.DynamoDBv2.Model.UpdateKinesisStreamingDestinationRequest value) { - Amazon.DynamoDBv2.Model.UpdateKinesisStreamingConfiguration var_updateKinesisStreamingConfiguration = value.UpdateKinesisStreamingConfiguration; + Amazon.DynamoDBv2.Model.UpdateKinesisStreamingConfiguration var_updateKinesisStreamingConfiguration = (Amazon.DynamoDBv2.Model.UpdateKinesisStreamingConfiguration)value.UpdateKinesisStreamingConfiguration; return new software.amazon.cryptography.services.dynamodb.internaldafny.types.UpdateKinesisStreamingDestinationInput(ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S38_UpdateKinesisStreamingDestinationInput__M9_TableName(value.TableName), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S38_UpdateKinesisStreamingDestinationInput__M9_StreamArn(value.StreamArn), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S38_UpdateKinesisStreamingDestinationInput__M35_UpdateKinesisStreamingConfiguration(var_updateKinesisStreamingConfiguration)); } public static Amazon.DynamoDBv2.Model.UpdateKinesisStreamingDestinationResponse FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S39_UpdateKinesisStreamingDestinationOutput(software.amazon.cryptography.services.dynamodb.internaldafny.types._IUpdateKinesisStreamingDestinationOutput value) @@ -1985,10 +1985,10 @@ public static Amazon.DynamoDBv2.Model.UpdateKinesisStreamingDestinationResponse public static software.amazon.cryptography.services.dynamodb.internaldafny.types._IUpdateKinesisStreamingDestinationOutput ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S39_UpdateKinesisStreamingDestinationOutput(Amazon.DynamoDBv2.Model.UpdateKinesisStreamingDestinationResponse value) { - string var_tableName = value.TableName; - string var_streamArn = value.StreamArn; - Amazon.DynamoDBv2.DestinationStatus var_destinationStatus = value.DestinationStatus; - Amazon.DynamoDBv2.Model.UpdateKinesisStreamingConfiguration var_updateKinesisStreamingConfiguration = value.UpdateKinesisStreamingConfiguration; + string var_tableName = (string)value.TableName; + string var_streamArn = (string)value.StreamArn; + Amazon.DynamoDBv2.DestinationStatus var_destinationStatus = (Amazon.DynamoDBv2.DestinationStatus)value.DestinationStatus; + Amazon.DynamoDBv2.Model.UpdateKinesisStreamingConfiguration var_updateKinesisStreamingConfiguration = (Amazon.DynamoDBv2.Model.UpdateKinesisStreamingConfiguration)value.UpdateKinesisStreamingConfiguration; return new software.amazon.cryptography.services.dynamodb.internaldafny.types.UpdateKinesisStreamingDestinationOutput(ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S39_UpdateKinesisStreamingDestinationOutput__M9_TableName(var_tableName), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S39_UpdateKinesisStreamingDestinationOutput__M9_StreamArn(var_streamArn), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S39_UpdateKinesisStreamingDestinationOutput__M17_DestinationStatus(var_destinationStatus), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S39_UpdateKinesisStreamingDestinationOutput__M35_UpdateKinesisStreamingConfiguration(var_updateKinesisStreamingConfiguration)); } public static Amazon.DynamoDBv2.Model.UpdateTableRequest FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S16_UpdateTableInput(software.amazon.cryptography.services.dynamodb.internaldafny.types._IUpdateTableInput value) @@ -2008,16 +2008,16 @@ public static Amazon.DynamoDBv2.Model.UpdateTableRequest FromDafny_N3_com__N9_am public static software.amazon.cryptography.services.dynamodb.internaldafny.types._IUpdateTableInput ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S16_UpdateTableInput(Amazon.DynamoDBv2.Model.UpdateTableRequest value) { - System.Collections.Generic.List var_attributeDefinitions = value.AttributeDefinitions; - Amazon.DynamoDBv2.BillingMode var_billingMode = value.BillingMode; - Amazon.DynamoDBv2.Model.ProvisionedThroughput var_provisionedThroughput = value.ProvisionedThroughput; - System.Collections.Generic.List var_globalSecondaryIndexUpdates = value.GlobalSecondaryIndexUpdates; - Amazon.DynamoDBv2.Model.StreamSpecification var_streamSpecification = value.StreamSpecification; - Amazon.DynamoDBv2.Model.SSESpecification var_sSESpecification = value.SSESpecification; - System.Collections.Generic.List var_replicaUpdates = value.ReplicaUpdates; - Amazon.DynamoDBv2.TableClass var_tableClass = value.TableClass; - bool? var_deletionProtectionEnabled = value.DeletionProtectionEnabled; - Amazon.DynamoDBv2.Model.OnDemandThroughput var_onDemandThroughput = value.OnDemandThroughput; + System.Collections.Generic.List var_attributeDefinitions = (System.Collections.Generic.List)value.AttributeDefinitions; + Amazon.DynamoDBv2.BillingMode var_billingMode = (Amazon.DynamoDBv2.BillingMode)value.BillingMode; + Amazon.DynamoDBv2.Model.ProvisionedThroughput var_provisionedThroughput = (Amazon.DynamoDBv2.Model.ProvisionedThroughput)value.ProvisionedThroughput; + System.Collections.Generic.List var_globalSecondaryIndexUpdates = (System.Collections.Generic.List)value.GlobalSecondaryIndexUpdates; + Amazon.DynamoDBv2.Model.StreamSpecification var_streamSpecification = (Amazon.DynamoDBv2.Model.StreamSpecification)value.StreamSpecification; + Amazon.DynamoDBv2.Model.SSESpecification var_sSESpecification = (Amazon.DynamoDBv2.Model.SSESpecification)value.SSESpecification; + System.Collections.Generic.List var_replicaUpdates = (System.Collections.Generic.List)value.ReplicaUpdates; + Amazon.DynamoDBv2.TableClass var_tableClass = (Amazon.DynamoDBv2.TableClass)value.TableClass; + bool? var_deletionProtectionEnabled = (bool?)value.DeletionProtectionEnabled; + Amazon.DynamoDBv2.Model.OnDemandThroughput var_onDemandThroughput = (Amazon.DynamoDBv2.Model.OnDemandThroughput)value.OnDemandThroughput; return new software.amazon.cryptography.services.dynamodb.internaldafny.types.UpdateTableInput(ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S16_UpdateTableInput__M20_AttributeDefinitions(var_attributeDefinitions), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S16_UpdateTableInput__M9_TableName(value.TableName), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S16_UpdateTableInput__M11_BillingMode(var_billingMode), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S16_UpdateTableInput__M21_ProvisionedThroughput(var_provisionedThroughput), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S16_UpdateTableInput__M27_GlobalSecondaryIndexUpdates(var_globalSecondaryIndexUpdates), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S16_UpdateTableInput__M19_StreamSpecification(var_streamSpecification), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S16_UpdateTableInput__M16_SSESpecification(var_sSESpecification), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S16_UpdateTableInput__M14_ReplicaUpdates(var_replicaUpdates), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S16_UpdateTableInput__M10_TableClass(var_tableClass), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S16_UpdateTableInput__M25_DeletionProtectionEnabled(var_deletionProtectionEnabled), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S16_UpdateTableInput__M18_OnDemandThroughput(var_onDemandThroughput)); } public static Amazon.DynamoDBv2.Model.UpdateTableResponse FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S17_UpdateTableOutput(software.amazon.cryptography.services.dynamodb.internaldafny.types._IUpdateTableOutput value) @@ -2027,7 +2027,7 @@ public static Amazon.DynamoDBv2.Model.UpdateTableResponse FromDafny_N3_com__N9_a public static software.amazon.cryptography.services.dynamodb.internaldafny.types._IUpdateTableOutput ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S17_UpdateTableOutput(Amazon.DynamoDBv2.Model.UpdateTableResponse value) { - Amazon.DynamoDBv2.Model.TableDescription var_tableDescription = value.TableDescription; + Amazon.DynamoDBv2.Model.TableDescription var_tableDescription = (Amazon.DynamoDBv2.Model.TableDescription)value.TableDescription; return new software.amazon.cryptography.services.dynamodb.internaldafny.types.UpdateTableOutput(ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S17_UpdateTableOutput__M16_TableDescription(var_tableDescription)); } public static Amazon.DynamoDBv2.Model.UpdateTableReplicaAutoScalingRequest FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S34_UpdateTableReplicaAutoScalingInput(software.amazon.cryptography.services.dynamodb.internaldafny.types._IUpdateTableReplicaAutoScalingInput value) @@ -2040,9 +2040,9 @@ public static Amazon.DynamoDBv2.Model.UpdateTableReplicaAutoScalingRequest FromD public static software.amazon.cryptography.services.dynamodb.internaldafny.types._IUpdateTableReplicaAutoScalingInput ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S34_UpdateTableReplicaAutoScalingInput(Amazon.DynamoDBv2.Model.UpdateTableReplicaAutoScalingRequest value) { - System.Collections.Generic.List var_globalSecondaryIndexUpdates = value.GlobalSecondaryIndexUpdates; - Amazon.DynamoDBv2.Model.AutoScalingSettingsUpdate var_provisionedWriteCapacityAutoScalingUpdate = value.ProvisionedWriteCapacityAutoScalingUpdate; - System.Collections.Generic.List var_replicaUpdates = value.ReplicaUpdates; + System.Collections.Generic.List var_globalSecondaryIndexUpdates = (System.Collections.Generic.List)value.GlobalSecondaryIndexUpdates; + Amazon.DynamoDBv2.Model.AutoScalingSettingsUpdate var_provisionedWriteCapacityAutoScalingUpdate = (Amazon.DynamoDBv2.Model.AutoScalingSettingsUpdate)value.ProvisionedWriteCapacityAutoScalingUpdate; + System.Collections.Generic.List var_replicaUpdates = (System.Collections.Generic.List)value.ReplicaUpdates; return new software.amazon.cryptography.services.dynamodb.internaldafny.types.UpdateTableReplicaAutoScalingInput(ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S34_UpdateTableReplicaAutoScalingInput__M27_GlobalSecondaryIndexUpdates(var_globalSecondaryIndexUpdates), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S34_UpdateTableReplicaAutoScalingInput__M9_TableName(value.TableName), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S34_UpdateTableReplicaAutoScalingInput__M41_ProvisionedWriteCapacityAutoScalingUpdate(var_provisionedWriteCapacityAutoScalingUpdate), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S34_UpdateTableReplicaAutoScalingInput__M14_ReplicaUpdates(var_replicaUpdates)); } public static Amazon.DynamoDBv2.Model.UpdateTableReplicaAutoScalingResponse FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S35_UpdateTableReplicaAutoScalingOutput(software.amazon.cryptography.services.dynamodb.internaldafny.types._IUpdateTableReplicaAutoScalingOutput value) @@ -2052,7 +2052,7 @@ public static Amazon.DynamoDBv2.Model.UpdateTableReplicaAutoScalingResponse From public static software.amazon.cryptography.services.dynamodb.internaldafny.types._IUpdateTableReplicaAutoScalingOutput ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S35_UpdateTableReplicaAutoScalingOutput(Amazon.DynamoDBv2.Model.UpdateTableReplicaAutoScalingResponse value) { - Amazon.DynamoDBv2.Model.TableAutoScalingDescription var_tableAutoScalingDescription = value.TableAutoScalingDescription; + Amazon.DynamoDBv2.Model.TableAutoScalingDescription var_tableAutoScalingDescription = (Amazon.DynamoDBv2.Model.TableAutoScalingDescription)value.TableAutoScalingDescription; return new software.amazon.cryptography.services.dynamodb.internaldafny.types.UpdateTableReplicaAutoScalingOutput(ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S35_UpdateTableReplicaAutoScalingOutput__M27_TableAutoScalingDescription(var_tableAutoScalingDescription)); } public static Amazon.DynamoDBv2.Model.UpdateTimeToLiveRequest FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S21_UpdateTimeToLiveInput(software.amazon.cryptography.services.dynamodb.internaldafny.types._IUpdateTimeToLiveInput value) @@ -2073,7 +2073,7 @@ public static Amazon.DynamoDBv2.Model.UpdateTimeToLiveResponse FromDafny_N3_com_ public static software.amazon.cryptography.services.dynamodb.internaldafny.types._IUpdateTimeToLiveOutput ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S22_UpdateTimeToLiveOutput(Amazon.DynamoDBv2.Model.UpdateTimeToLiveResponse value) { - Amazon.DynamoDBv2.Model.TimeToLiveSpecification var_timeToLiveSpecification = value.TimeToLiveSpecification; + Amazon.DynamoDBv2.Model.TimeToLiveSpecification var_timeToLiveSpecification = (Amazon.DynamoDBv2.Model.TimeToLiveSpecification)value.TimeToLiveSpecification; return new software.amazon.cryptography.services.dynamodb.internaldafny.types.UpdateTimeToLiveOutput(ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S22_UpdateTimeToLiveOutput__M23_TimeToLiveSpecification(var_timeToLiveSpecification)); } public static string FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S14_AttributeValue__M1_S(Dafny.ISequence value) @@ -2082,7 +2082,7 @@ public static string FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S14_AttributeV } public static Dafny.ISequence ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S14_AttributeValue__M1_S(string value) { - return ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S20_StringAttributeValue(value); + return ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S20_StringAttributeValue((string)value); } public static string FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S14_AttributeValue__M1_N(Dafny.ISequence value) { @@ -2090,7 +2090,7 @@ public static string FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S14_AttributeV } public static Dafny.ISequence ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S14_AttributeValue__M1_N(string value) { - return ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S20_NumberAttributeValue(value); + return ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S20_NumberAttributeValue((string)value); } public static System.IO.MemoryStream FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S14_AttributeValue__M1_B(Dafny.ISequence value) { @@ -2098,7 +2098,7 @@ public static System.IO.MemoryStream FromDafny_N3_com__N9_amazonaws__N8_dynamodb } public static Dafny.ISequence ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S14_AttributeValue__M1_B(System.IO.MemoryStream value) { - return ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S20_BinaryAttributeValue(value); + return ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S20_BinaryAttributeValue((System.IO.MemoryStream)value); } public static System.Collections.Generic.List FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S14_AttributeValue__M2_SS(Dafny.ISequence> value) { @@ -2106,7 +2106,7 @@ public static System.Collections.Generic.List FromDafny_N3_com__N9_amazo } public static Dafny.ISequence> ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S14_AttributeValue__M2_SS(System.Collections.Generic.List value) { - return ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S23_StringSetAttributeValue(value); + return ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S23_StringSetAttributeValue((System.Collections.Generic.List)value); } public static System.Collections.Generic.List FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S14_AttributeValue__M2_NS(Dafny.ISequence> value) { @@ -2114,7 +2114,7 @@ public static System.Collections.Generic.List FromDafny_N3_com__N9_amazo } public static Dafny.ISequence> ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S14_AttributeValue__M2_NS(System.Collections.Generic.List value) { - return ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S23_NumberSetAttributeValue(value); + return ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S23_NumberSetAttributeValue((System.Collections.Generic.List)value); } public static System.Collections.Generic.List FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S14_AttributeValue__M2_BS(Dafny.ISequence> value) { @@ -2122,7 +2122,7 @@ public static System.Collections.Generic.List FromDafny_N3_com__N9_amazo } public static Dafny.ISequence> ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S14_AttributeValue__M2_BS(System.Collections.Generic.List value) { - return ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S23_BinarySetAttributeValue(value); + return ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S23_BinarySetAttributeValue((System.Collections.Generic.List)value); } public static System.Collections.Generic.Dictionary FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S14_AttributeValue__M1_M(Dafny.IMap, software.amazon.cryptography.services.dynamodb.internaldafny.types._IAttributeValue> value) { @@ -2130,7 +2130,7 @@ public static System.Collections.Generic.List FromDafny_N3_com__N9_amazo } public static Dafny.IMap, software.amazon.cryptography.services.dynamodb.internaldafny.types._IAttributeValue> ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S14_AttributeValue__M1_M(System.Collections.Generic.Dictionary value) { - return ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S17_MapAttributeValue(value); + return ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S17_MapAttributeValue((System.Collections.Generic.Dictionary)value); } public static System.Collections.Generic.List FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S14_AttributeValue__M1_L(Dafny.ISequence value) { @@ -2138,7 +2138,7 @@ public static System.Collections.Generic.List FromDafny_N3_com__N9_amazo } public static Dafny.ISequence ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S14_AttributeValue__M1_L(System.Collections.Generic.List value) { - return ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S18_ListAttributeValue(value); + return ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S18_ListAttributeValue((System.Collections.Generic.List)value); } public static bool FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S14_AttributeValue__M4_NULL(bool value) { @@ -2146,7 +2146,7 @@ public static bool FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S14_AttributeVal } public static bool ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S14_AttributeValue__M4_NULL(bool value) { - return ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S18_NullAttributeValue(value); + return ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S18_NullAttributeValue((bool)value); } public static bool FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S14_AttributeValue__M4_BOOL(bool value) { @@ -2154,7 +2154,7 @@ public static bool FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S14_AttributeVal } public static bool ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S14_AttributeValue__M4_BOOL(bool value) { - return ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S21_BooleanAttributeValue(value); + return ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S21_BooleanAttributeValue((bool)value); } public static string FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S20_BackupInUseException__M7_message(Wrappers_Compile._IOption> value) { @@ -2178,7 +2178,7 @@ public static string FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S23_BackupNotF } public static Dafny.ISequence ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S26_BatchExecuteStatementInput__M10_Statements(System.Collections.Generic.List value) { - return ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S19_PartiQLBatchRequest(value); + return ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S19_PartiQLBatchRequest((System.Collections.Generic.List)value); } public static Amazon.DynamoDBv2.ReturnConsumedCapacity FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S26_BatchExecuteStatementInput__M22_ReturnConsumedCapacity(Wrappers_Compile._IOption value) { @@ -2210,7 +2210,7 @@ public static Amazon.DynamoDBv2.ReturnConsumedCapacity FromDafny_N3_com__N9_amaz } public static Dafny.IMap, software.amazon.cryptography.services.dynamodb.internaldafny.types._IKeysAndAttributes> ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S17_BatchGetItemInput__M12_RequestItems(System.Collections.Generic.Dictionary value) { - return ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S18_BatchGetRequestMap(value); + return ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S18_BatchGetRequestMap((System.Collections.Generic.Dictionary)value); } public static Amazon.DynamoDBv2.ReturnConsumedCapacity FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S17_BatchGetItemInput__M22_ReturnConsumedCapacity(Wrappers_Compile._IOption value) { @@ -2250,7 +2250,7 @@ public static Amazon.DynamoDBv2.ReturnConsumedCapacity FromDafny_N3_com__N9_amaz } public static Dafny.IMap, Dafny.ISequence> ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S19_BatchWriteItemInput__M12_RequestItems(System.Collections.Generic.Dictionary> value) { - return ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S24_BatchWriteItemRequestMap(value); + return ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S24_BatchWriteItemRequestMap((System.Collections.Generic.Dictionary>)value); } public static Amazon.DynamoDBv2.ReturnConsumedCapacity FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S19_BatchWriteItemInput__M22_ReturnConsumedCapacity(Wrappers_Compile._IOption value) { @@ -2322,7 +2322,7 @@ public static string FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S17_CreateBack } public static Dafny.ISequence ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S17_CreateBackupInput__M9_TableName(string value) { - return ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S8_TableArn(value); + return ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S8_TableArn((string)value); } public static string FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S17_CreateBackupInput__M10_BackupName(Dafny.ISequence value) { @@ -2330,7 +2330,7 @@ public static string FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S17_CreateBack } public static Dafny.ISequence ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S17_CreateBackupInput__M10_BackupName(string value) { - return ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S10_BackupName(value); + return ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S10_BackupName((string)value); } public static Amazon.DynamoDBv2.Model.BackupDetails FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S18_CreateBackupOutput__M13_BackupDetails(Wrappers_Compile._IOption value) { @@ -2346,7 +2346,7 @@ public static string FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S22_CreateGlob } public static Dafny.ISequence ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S22_CreateGlobalTableInput__M15_GlobalTableName(string value) { - return ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S9_TableName(value); + return ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S9_TableName((string)value); } public static System.Collections.Generic.List FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S22_CreateGlobalTableInput__M16_ReplicationGroup(Dafny.ISequence value) { @@ -2354,7 +2354,7 @@ public static Dafny.ISequence ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S } public static Dafny.ISequence ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S22_CreateGlobalTableInput__M16_ReplicationGroup(System.Collections.Generic.List value) { - return ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S11_ReplicaList(value); + return ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S11_ReplicaList((System.Collections.Generic.List)value); } public static Amazon.DynamoDBv2.Model.GlobalTableDescription FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S23_CreateGlobalTableOutput__M22_GlobalTableDescription(Wrappers_Compile._IOption value) { @@ -2370,7 +2370,7 @@ public static Amazon.DynamoDBv2.Model.GlobalTableDescription FromDafny_N3_com__N } public static Dafny.ISequence ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S16_CreateTableInput__M20_AttributeDefinitions(System.Collections.Generic.List value) { - return ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S20_AttributeDefinitions(value); + return ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S20_AttributeDefinitions((System.Collections.Generic.List)value); } public static string FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S16_CreateTableInput__M9_TableName(Dafny.ISequence value) { @@ -2378,7 +2378,7 @@ public static string FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S16_CreateTabl } public static Dafny.ISequence ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S16_CreateTableInput__M9_TableName(string value) { - return ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S8_TableArn(value); + return ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S8_TableArn((string)value); } public static System.Collections.Generic.List FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S16_CreateTableInput__M9_KeySchema(Dafny.ISequence value) { @@ -2386,7 +2386,7 @@ public static Dafny.ISequence ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S } public static Dafny.ISequence ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S16_CreateTableInput__M9_KeySchema(System.Collections.Generic.List value) { - return ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S9_KeySchema(value); + return ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S9_KeySchema((System.Collections.Generic.List)value); } public static System.Collections.Generic.List FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S16_CreateTableInput__M21_LocalSecondaryIndexes(Wrappers_Compile._IOption> value) { @@ -2490,7 +2490,7 @@ public static string FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S17_DeleteBack } public static Dafny.ISequence ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S17_DeleteBackupInput__M9_BackupArn(string value) { - return ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S9_BackupArn(value); + return ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S9_BackupArn((string)value); } public static Amazon.DynamoDBv2.Model.BackupDescription FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S18_DeleteBackupOutput__M17_BackupDescription(Wrappers_Compile._IOption value) { @@ -2506,7 +2506,7 @@ public static string FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S15_DeleteItem } public static Dafny.ISequence ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S15_DeleteItemInput__M9_TableName(string value) { - return ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S8_TableArn(value); + return ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S8_TableArn((string)value); } public static System.Collections.Generic.Dictionary FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S15_DeleteItemInput__M3_Key(Dafny.IMap, software.amazon.cryptography.services.dynamodb.internaldafny.types._IAttributeValue> value) { @@ -2514,7 +2514,7 @@ public static Dafny.ISequence ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S } public static Dafny.IMap, software.amazon.cryptography.services.dynamodb.internaldafny.types._IAttributeValue> ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S15_DeleteItemInput__M3_Key(System.Collections.Generic.Dictionary value) { - return ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S3_Key(value); + return ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S3_Key((System.Collections.Generic.Dictionary)value); } public static System.Collections.Generic.Dictionary FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S15_DeleteItemInput__M8_Expected(Wrappers_Compile._IOption, software.amazon.cryptography.services.dynamodb.internaldafny.types._IExpectedAttributeValue>> value) { @@ -2610,7 +2610,7 @@ public static string FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S25_DeleteReso } public static Dafny.ISequence ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S25_DeleteResourcePolicyInput__M11_ResourceArn(string value) { - return ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S17_ResourceArnString(value); + return ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S17_ResourceArnString((string)value); } public static string FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S25_DeleteResourcePolicyInput__M18_ExpectedRevisionId(Wrappers_Compile._IOption> value) { @@ -2634,7 +2634,7 @@ public static string FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S16_DeleteTabl } public static Dafny.ISequence ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S16_DeleteTableInput__M9_TableName(string value) { - return ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S8_TableArn(value); + return ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S8_TableArn((string)value); } public static Amazon.DynamoDBv2.Model.TableDescription FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S17_DeleteTableOutput__M16_TableDescription(Wrappers_Compile._IOption value) { @@ -2650,7 +2650,7 @@ public static string FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S19_DescribeBa } public static Dafny.ISequence ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S19_DescribeBackupInput__M9_BackupArn(string value) { - return ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S9_BackupArn(value); + return ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S9_BackupArn((string)value); } public static Amazon.DynamoDBv2.Model.BackupDescription FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S20_DescribeBackupOutput__M17_BackupDescription(Wrappers_Compile._IOption value) { @@ -2666,7 +2666,7 @@ public static string FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S30_DescribeCo } public static Dafny.ISequence ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S30_DescribeContinuousBackupsInput__M9_TableName(string value) { - return ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S8_TableArn(value); + return ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S8_TableArn((string)value); } public static Amazon.DynamoDBv2.Model.ContinuousBackupsDescription FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S31_DescribeContinuousBackupsOutput__M28_ContinuousBackupsDescription(Wrappers_Compile._IOption value) { @@ -2682,7 +2682,7 @@ public static string FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S32_DescribeCo } public static Dafny.ISequence ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S32_DescribeContributorInsightsInput__M9_TableName(string value) { - return ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S8_TableArn(value); + return ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S8_TableArn((string)value); } public static string FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S32_DescribeContributorInsightsInput__M9_IndexName(Wrappers_Compile._IOption> value) { @@ -2746,7 +2746,7 @@ public static Amazon.DynamoDBv2.Model.FailureException FromDafny_N3_com__N9_amaz } public static Dafny.ISequence ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S25_DescribeEndpointsResponse__M9_Endpoints(System.Collections.Generic.List value) { - return ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S9_Endpoints(value); + return ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S9_Endpoints((System.Collections.Generic.List)value); } public static string FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S19_DescribeExportInput__M9_ExportArn(Dafny.ISequence value) { @@ -2754,7 +2754,7 @@ public static string FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S19_DescribeEx } public static Dafny.ISequence ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S19_DescribeExportInput__M9_ExportArn(string value) { - return ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S9_ExportArn(value); + return ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S9_ExportArn((string)value); } public static Amazon.DynamoDBv2.Model.ExportDescription FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S20_DescribeExportOutput__M17_ExportDescription(Wrappers_Compile._IOption value) { @@ -2770,7 +2770,7 @@ public static string FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S24_DescribeGl } public static Dafny.ISequence ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S24_DescribeGlobalTableInput__M15_GlobalTableName(string value) { - return ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S9_TableName(value); + return ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S9_TableName((string)value); } public static Amazon.DynamoDBv2.Model.GlobalTableDescription FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S25_DescribeGlobalTableOutput__M22_GlobalTableDescription(Wrappers_Compile._IOption value) { @@ -2786,7 +2786,7 @@ public static string FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S32_DescribeGl } public static Dafny.ISequence ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S32_DescribeGlobalTableSettingsInput__M15_GlobalTableName(string value) { - return ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S9_TableName(value); + return ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S9_TableName((string)value); } public static string FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S33_DescribeGlobalTableSettingsOutput__M15_GlobalTableName(Wrappers_Compile._IOption> value) { @@ -2810,7 +2810,7 @@ public static string FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S19_DescribeIm } public static Dafny.ISequence ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S19_DescribeImportInput__M9_ImportArn(string value) { - return ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S9_ImportArn(value); + return ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S9_ImportArn((string)value); } public static Amazon.DynamoDBv2.Model.ImportTableDescription FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S20_DescribeImportOutput__M22_ImportTableDescription(software.amazon.cryptography.services.dynamodb.internaldafny.types._IImportTableDescription value) { @@ -2818,7 +2818,7 @@ public static Amazon.DynamoDBv2.Model.ImportTableDescription FromDafny_N3_com__N } public static software.amazon.cryptography.services.dynamodb.internaldafny.types._IImportTableDescription ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S20_DescribeImportOutput__M22_ImportTableDescription(Amazon.DynamoDBv2.Model.ImportTableDescription value) { - return ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S22_ImportTableDescription(value); + return ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S22_ImportTableDescription((Amazon.DynamoDBv2.Model.ImportTableDescription)value); } public static string FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S40_DescribeKinesisStreamingDestinationInput__M9_TableName(Dafny.ISequence value) { @@ -2826,7 +2826,7 @@ public static string FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S40_DescribeKi } public static Dafny.ISequence ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S40_DescribeKinesisStreamingDestinationInput__M9_TableName(string value) { - return ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S8_TableArn(value); + return ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S8_TableArn((string)value); } public static string FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S41_DescribeKinesisStreamingDestinationOutput__M9_TableName(Wrappers_Compile._IOption> value) { @@ -2882,7 +2882,7 @@ public static string FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S18_DescribeTa } public static Dafny.ISequence ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S18_DescribeTableInput__M9_TableName(string value) { - return ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S8_TableArn(value); + return ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S8_TableArn((string)value); } public static Amazon.DynamoDBv2.Model.TableDescription FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S19_DescribeTableOutput__M5_Table(Wrappers_Compile._IOption value) { @@ -2898,7 +2898,7 @@ public static string FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S36_DescribeTa } public static Dafny.ISequence ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S36_DescribeTableReplicaAutoScalingInput__M9_TableName(string value) { - return ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S8_TableArn(value); + return ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S8_TableArn((string)value); } public static Amazon.DynamoDBv2.Model.TableAutoScalingDescription FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S37_DescribeTableReplicaAutoScalingOutput__M27_TableAutoScalingDescription(Wrappers_Compile._IOption value) { @@ -2914,7 +2914,7 @@ public static string FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S23_DescribeTi } public static Dafny.ISequence ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S23_DescribeTimeToLiveInput__M9_TableName(string value) { - return ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S8_TableArn(value); + return ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S8_TableArn((string)value); } public static Amazon.DynamoDBv2.Model.TimeToLiveDescription FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S24_DescribeTimeToLiveOutput__M21_TimeToLiveDescription(Wrappers_Compile._IOption value) { @@ -2930,7 +2930,7 @@ public static string FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S39_DisableKin } public static Dafny.ISequence ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S39_DisableKinesisStreamingDestinationInput__M9_TableName(string value) { - return ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S8_TableArn(value); + return ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S8_TableArn((string)value); } public static string FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S39_DisableKinesisStreamingDestinationInput__M9_StreamArn(Dafny.ISequence value) { @@ -2938,7 +2938,7 @@ public static string FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S39_DisableKin } public static Dafny.ISequence ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S39_DisableKinesisStreamingDestinationInput__M9_StreamArn(string value) { - return ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S9_StreamArn(value); + return ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S9_StreamArn((string)value); } public static Amazon.DynamoDBv2.Model.EnableKinesisStreamingConfiguration FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S39_DisableKinesisStreamingDestinationInput__M35_EnableKinesisStreamingConfiguration(Wrappers_Compile._IOption value) { @@ -2994,7 +2994,7 @@ public static string FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S38_EnableKine } public static Dafny.ISequence ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S38_EnableKinesisStreamingDestinationInput__M9_TableName(string value) { - return ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S8_TableArn(value); + return ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S8_TableArn((string)value); } public static string FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S38_EnableKinesisStreamingDestinationInput__M9_StreamArn(Dafny.ISequence value) { @@ -3002,7 +3002,7 @@ public static string FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S38_EnableKine } public static Dafny.ISequence ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S38_EnableKinesisStreamingDestinationInput__M9_StreamArn(string value) { - return ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S9_StreamArn(value); + return ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S9_StreamArn((string)value); } public static Amazon.DynamoDBv2.Model.EnableKinesisStreamingConfiguration FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S38_EnableKinesisStreamingDestinationInput__M35_EnableKinesisStreamingConfiguration(Wrappers_Compile._IOption value) { @@ -3050,7 +3050,7 @@ public static string FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S21_ExecuteSta } public static Dafny.ISequence ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S21_ExecuteStatementInput__M9_Statement(string value) { - return ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S16_PartiQLStatement(value); + return ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S16_PartiQLStatement((string)value); } public static System.Collections.Generic.List FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S21_ExecuteStatementInput__M10_Parameters(Wrappers_Compile._IOption> value) { @@ -3130,7 +3130,7 @@ public static Amazon.DynamoDBv2.Model.ConsumedCapacity FromDafny_N3_com__N9_amaz } public static Dafny.ISequence ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S23_ExecuteTransactionInput__M18_TransactStatements(System.Collections.Generic.List value) { - return ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S23_ParameterizedStatements(value); + return ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S23_ParameterizedStatements((System.Collections.Generic.List)value); } public static string FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S23_ExecuteTransactionInput__M18_ClientRequestToken(Wrappers_Compile._IOption> value) { @@ -3186,7 +3186,7 @@ public static string FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S29_ExportTabl } public static Dafny.ISequence ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S29_ExportTableToPointInTimeInput__M8_TableArn(string value) { - return ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S8_TableArn(value); + return ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S8_TableArn((string)value); } public static System.DateTime? FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S29_ExportTableToPointInTimeInput__M10_ExportTime(Wrappers_Compile._IOption> value) { @@ -3210,7 +3210,7 @@ public static string FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S29_ExportTabl } public static Dafny.ISequence ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S29_ExportTableToPointInTimeInput__M8_S3Bucket(string value) { - return ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S8_S3Bucket(value); + return ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S8_S3Bucket((string)value); } public static string FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S29_ExportTableToPointInTimeInput__M13_S3BucketOwner(Wrappers_Compile._IOption> value) { @@ -3282,7 +3282,7 @@ public static string FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S12_GetItemInp } public static Dafny.ISequence ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S12_GetItemInput__M9_TableName(string value) { - return ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S8_TableArn(value); + return ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S8_TableArn((string)value); } public static System.Collections.Generic.Dictionary FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S12_GetItemInput__M3_Key(Dafny.IMap, software.amazon.cryptography.services.dynamodb.internaldafny.types._IAttributeValue> value) { @@ -3290,7 +3290,7 @@ public static Dafny.ISequence ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S } public static Dafny.IMap, software.amazon.cryptography.services.dynamodb.internaldafny.types._IAttributeValue> ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S12_GetItemInput__M3_Key(System.Collections.Generic.Dictionary value) { - return ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S3_Key(value); + return ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S3_Key((System.Collections.Generic.Dictionary)value); } public static System.Collections.Generic.List FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S12_GetItemInput__M15_AttributesToGet(Wrappers_Compile._IOption>> value) { @@ -3354,7 +3354,7 @@ public static string FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S22_GetResourc } public static Dafny.ISequence ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S22_GetResourcePolicyInput__M11_ResourceArn(string value) { - return ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S17_ResourceArnString(value); + return ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S17_ResourceArnString((string)value); } public static string FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S23_GetResourcePolicyOutput__M6_Policy(Wrappers_Compile._IOption> value) { @@ -3426,7 +3426,7 @@ public static Amazon.DynamoDBv2.Model.S3BucketSource FromDafny_N3_com__N9_amazon } public static software.amazon.cryptography.services.dynamodb.internaldafny.types._IS3BucketSource ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S16_ImportTableInput__M14_S3BucketSource(Amazon.DynamoDBv2.Model.S3BucketSource value) { - return ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S14_S3BucketSource(value); + return ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S14_S3BucketSource((Amazon.DynamoDBv2.Model.S3BucketSource)value); } public static Amazon.DynamoDBv2.InputFormat FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S16_ImportTableInput__M11_InputFormat(software.amazon.cryptography.services.dynamodb.internaldafny.types._IInputFormat value) { @@ -3434,7 +3434,7 @@ public static Amazon.DynamoDBv2.InputFormat FromDafny_N3_com__N9_amazonaws__N8_d } public static software.amazon.cryptography.services.dynamodb.internaldafny.types._IInputFormat ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S16_ImportTableInput__M11_InputFormat(Amazon.DynamoDBv2.InputFormat value) { - return ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S11_InputFormat(value); + return ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S11_InputFormat((Amazon.DynamoDBv2.InputFormat)value); } public static Amazon.DynamoDBv2.Model.InputFormatOptions FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S16_ImportTableInput__M18_InputFormatOptions(Wrappers_Compile._IOption value) { @@ -3458,7 +3458,7 @@ public static Amazon.DynamoDBv2.Model.TableCreationParameters FromDafny_N3_com__ } public static software.amazon.cryptography.services.dynamodb.internaldafny.types._ITableCreationParameters ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S16_ImportTableInput__M23_TableCreationParameters(Amazon.DynamoDBv2.Model.TableCreationParameters value) { - return ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S23_TableCreationParameters(value); + return ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S23_TableCreationParameters((Amazon.DynamoDBv2.Model.TableCreationParameters)value); } public static Amazon.DynamoDBv2.Model.ImportTableDescription FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S17_ImportTableOutput__M22_ImportTableDescription(software.amazon.cryptography.services.dynamodb.internaldafny.types._IImportTableDescription value) { @@ -3466,7 +3466,7 @@ public static Amazon.DynamoDBv2.Model.ImportTableDescription FromDafny_N3_com__N } public static software.amazon.cryptography.services.dynamodb.internaldafny.types._IImportTableDescription ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S17_ImportTableOutput__M22_ImportTableDescription(Amazon.DynamoDBv2.Model.ImportTableDescription value) { - return ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S22_ImportTableDescription(value); + return ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S22_ImportTableDescription((Amazon.DynamoDBv2.Model.ImportTableDescription)value); } public static string FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S22_IndexNotFoundException__M7_message(Wrappers_Compile._IOption> value) { @@ -3786,7 +3786,7 @@ public static string FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S23_ListTagsOf } public static Dafny.ISequence ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S23_ListTagsOfResourceInput__M11_ResourceArn(string value) { - return ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S17_ResourceArnString(value); + return ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S17_ResourceArnString((string)value); } public static string FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S23_ListTagsOfResourceInput__M9_NextToken(Wrappers_Compile._IOption> value) { @@ -3842,7 +3842,7 @@ public static string FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S12_PutItemInp } public static Dafny.ISequence ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S12_PutItemInput__M9_TableName(string value) { - return ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S8_TableArn(value); + return ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S8_TableArn((string)value); } public static System.Collections.Generic.Dictionary FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S12_PutItemInput__M4_Item(Dafny.IMap, software.amazon.cryptography.services.dynamodb.internaldafny.types._IAttributeValue> value) { @@ -3850,7 +3850,7 @@ public static Dafny.ISequence ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S } public static Dafny.IMap, software.amazon.cryptography.services.dynamodb.internaldafny.types._IAttributeValue> ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S12_PutItemInput__M4_Item(System.Collections.Generic.Dictionary value) { - return ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S24_PutItemInputAttributeMap(value); + return ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S24_PutItemInputAttributeMap((System.Collections.Generic.Dictionary)value); } public static System.Collections.Generic.Dictionary FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S12_PutItemInput__M8_Expected(Wrappers_Compile._IOption, software.amazon.cryptography.services.dynamodb.internaldafny.types._IExpectedAttributeValue>> value) { @@ -3946,7 +3946,7 @@ public static string FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S22_PutResourc } public static Dafny.ISequence ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S22_PutResourcePolicyInput__M11_ResourceArn(string value) { - return ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S17_ResourceArnString(value); + return ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S17_ResourceArnString((string)value); } public static string FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S22_PutResourcePolicyInput__M6_Policy(Dafny.ISequence value) { @@ -3954,7 +3954,7 @@ public static string FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S22_PutResourc } public static Dafny.ISequence ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S22_PutResourcePolicyInput__M6_Policy(string value) { - return ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S14_ResourcePolicy(value); + return ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S14_ResourcePolicy((string)value); } public static string FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S22_PutResourcePolicyInput__M18_ExpectedRevisionId(Wrappers_Compile._IOption> value) { @@ -3986,7 +3986,7 @@ public static string FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S10_QueryInput } public static Dafny.ISequence ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S10_QueryInput__M9_TableName(string value) { - return ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S8_TableArn(value); + return ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S8_TableArn((string)value); } public static string FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S10_QueryInput__M9_IndexName(Wrappers_Compile._IOption> value) { @@ -4202,7 +4202,7 @@ public static string FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S27_RestoreTab } public static Dafny.ISequence ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S27_RestoreTableFromBackupInput__M15_TargetTableName(string value) { - return ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S9_TableName(value); + return ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S9_TableName((string)value); } public static string FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S27_RestoreTableFromBackupInput__M9_BackupArn(Dafny.ISequence value) { @@ -4210,7 +4210,7 @@ public static string FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S27_RestoreTab } public static Dafny.ISequence ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S27_RestoreTableFromBackupInput__M9_BackupArn(string value) { - return ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S9_BackupArn(value); + return ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S9_BackupArn((string)value); } public static Amazon.DynamoDBv2.BillingMode FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S27_RestoreTableFromBackupInput__M19_BillingModeOverride(Wrappers_Compile._IOption value) { @@ -4290,7 +4290,7 @@ public static string FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S30_RestoreTab } public static Dafny.ISequence ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S30_RestoreTableToPointInTimeInput__M15_TargetTableName(string value) { - return ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S9_TableName(value); + return ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S9_TableName((string)value); } public static bool? FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S30_RestoreTableToPointInTimeInput__M23_UseLatestRestorableTime(Wrappers_Compile._IOption value) { @@ -4370,7 +4370,7 @@ public static string FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S9_ScanInput__ } public static Dafny.ISequence ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S9_ScanInput__M9_TableName(string value) { - return ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S8_TableArn(value); + return ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S8_TableArn((string)value); } public static string FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S9_ScanInput__M9_IndexName(Wrappers_Compile._IOption> value) { @@ -4562,7 +4562,7 @@ public static string FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S16_TagResourc } public static Dafny.ISequence ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S16_TagResourceInput__M11_ResourceArn(string value) { - return ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S17_ResourceArnString(value); + return ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S17_ResourceArnString((string)value); } public static System.Collections.Generic.List FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S16_TagResourceInput__M4_Tags(Dafny.ISequence value) { @@ -4570,7 +4570,7 @@ public static Dafny.ISequence ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S } public static Dafny.ISequence ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S16_TagResourceInput__M4_Tags(System.Collections.Generic.List value) { - return ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S7_TagList(value); + return ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S7_TagList((System.Collections.Generic.List)value); } public static System.Collections.Generic.List FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S21_TransactGetItemsInput__M13_TransactItems(Dafny.ISequence value) { @@ -4578,7 +4578,7 @@ public static Dafny.ISequence ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S } public static Dafny.ISequence ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S21_TransactGetItemsInput__M13_TransactItems(System.Collections.Generic.List value) { - return ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S19_TransactGetItemList(value); + return ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S19_TransactGetItemList((System.Collections.Generic.List)value); } public static Amazon.DynamoDBv2.ReturnConsumedCapacity FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S21_TransactGetItemsInput__M22_ReturnConsumedCapacity(Wrappers_Compile._IOption value) { @@ -4642,7 +4642,7 @@ public static string FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S30_Transactio } public static Dafny.ISequence ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S23_TransactWriteItemsInput__M13_TransactItems(System.Collections.Generic.List value) { - return ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S21_TransactWriteItemList(value); + return ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S21_TransactWriteItemList((System.Collections.Generic.List)value); } public static Amazon.DynamoDBv2.ReturnConsumedCapacity FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S23_TransactWriteItemsInput__M22_ReturnConsumedCapacity(Wrappers_Compile._IOption value) { @@ -4690,7 +4690,7 @@ public static string FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S18_UntagResou } public static Dafny.ISequence ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S18_UntagResourceInput__M11_ResourceArn(string value) { - return ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S17_ResourceArnString(value); + return ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S17_ResourceArnString((string)value); } public static System.Collections.Generic.List FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S18_UntagResourceInput__M7_TagKeys(Dafny.ISequence> value) { @@ -4698,7 +4698,7 @@ public static System.Collections.Generic.List FromDafny_N3_com__N9_amazo } public static Dafny.ISequence> ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S18_UntagResourceInput__M7_TagKeys(System.Collections.Generic.List value) { - return ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S10_TagKeyList(value); + return ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S10_TagKeyList((System.Collections.Generic.List)value); } public static string FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S28_UpdateContinuousBackupsInput__M9_TableName(Dafny.ISequence value) { @@ -4706,7 +4706,7 @@ public static string FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S28_UpdateCont } public static Dafny.ISequence ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S28_UpdateContinuousBackupsInput__M9_TableName(string value) { - return ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S8_TableArn(value); + return ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S8_TableArn((string)value); } public static Amazon.DynamoDBv2.Model.PointInTimeRecoverySpecification FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S28_UpdateContinuousBackupsInput__M32_PointInTimeRecoverySpecification(software.amazon.cryptography.services.dynamodb.internaldafny.types._IPointInTimeRecoverySpecification value) { @@ -4714,7 +4714,7 @@ public static Amazon.DynamoDBv2.Model.PointInTimeRecoverySpecification FromDafny } public static software.amazon.cryptography.services.dynamodb.internaldafny.types._IPointInTimeRecoverySpecification ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S28_UpdateContinuousBackupsInput__M32_PointInTimeRecoverySpecification(Amazon.DynamoDBv2.Model.PointInTimeRecoverySpecification value) { - return ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S32_PointInTimeRecoverySpecification(value); + return ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S32_PointInTimeRecoverySpecification((Amazon.DynamoDBv2.Model.PointInTimeRecoverySpecification)value); } public static Amazon.DynamoDBv2.Model.ContinuousBackupsDescription FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S29_UpdateContinuousBackupsOutput__M28_ContinuousBackupsDescription(Wrappers_Compile._IOption value) { @@ -4730,7 +4730,7 @@ public static string FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S30_UpdateCont } public static Dafny.ISequence ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S30_UpdateContributorInsightsInput__M9_TableName(string value) { - return ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S8_TableArn(value); + return ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S8_TableArn((string)value); } public static string FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S30_UpdateContributorInsightsInput__M9_IndexName(Wrappers_Compile._IOption> value) { @@ -4746,7 +4746,7 @@ public static Amazon.DynamoDBv2.ContributorInsightsAction FromDafny_N3_com__N9_a } public static software.amazon.cryptography.services.dynamodb.internaldafny.types._IContributorInsightsAction ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S30_UpdateContributorInsightsInput__M25_ContributorInsightsAction(Amazon.DynamoDBv2.ContributorInsightsAction value) { - return ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S25_ContributorInsightsAction(value); + return ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S25_ContributorInsightsAction((Amazon.DynamoDBv2.ContributorInsightsAction)value); } public static string FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S31_UpdateContributorInsightsOutput__M9_TableName(Wrappers_Compile._IOption> value) { @@ -4778,7 +4778,7 @@ public static string FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S22_UpdateGlob } public static Dafny.ISequence ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S22_UpdateGlobalTableInput__M15_GlobalTableName(string value) { - return ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S9_TableName(value); + return ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S9_TableName((string)value); } public static System.Collections.Generic.List FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S22_UpdateGlobalTableInput__M14_ReplicaUpdates(Dafny.ISequence value) { @@ -4786,7 +4786,7 @@ public static Dafny.ISequence ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S } public static Dafny.ISequence ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S22_UpdateGlobalTableInput__M14_ReplicaUpdates(System.Collections.Generic.List value) { - return ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S17_ReplicaUpdateList(value); + return ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S17_ReplicaUpdateList((System.Collections.Generic.List)value); } public static Amazon.DynamoDBv2.Model.GlobalTableDescription FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S23_UpdateGlobalTableOutput__M22_GlobalTableDescription(Wrappers_Compile._IOption value) { @@ -4802,7 +4802,7 @@ public static string FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S30_UpdateGlob } public static Dafny.ISequence ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S30_UpdateGlobalTableSettingsInput__M15_GlobalTableName(string value) { - return ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S9_TableName(value); + return ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S9_TableName((string)value); } public static Amazon.DynamoDBv2.BillingMode FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S30_UpdateGlobalTableSettingsInput__M22_GlobalTableBillingMode(Wrappers_Compile._IOption value) { @@ -4866,7 +4866,7 @@ public static string FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S15_UpdateItem } public static Dafny.ISequence ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S15_UpdateItemInput__M9_TableName(string value) { - return ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S8_TableArn(value); + return ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S8_TableArn((string)value); } public static System.Collections.Generic.Dictionary FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S15_UpdateItemInput__M3_Key(Dafny.IMap, software.amazon.cryptography.services.dynamodb.internaldafny.types._IAttributeValue> value) { @@ -4874,7 +4874,7 @@ public static Dafny.ISequence ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S } public static Dafny.IMap, software.amazon.cryptography.services.dynamodb.internaldafny.types._IAttributeValue> ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S15_UpdateItemInput__M3_Key(System.Collections.Generic.Dictionary value) { - return ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S3_Key(value); + return ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S3_Key((System.Collections.Generic.Dictionary)value); } public static System.Collections.Generic.Dictionary FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S15_UpdateItemInput__M16_AttributeUpdates(Wrappers_Compile._IOption, software.amazon.cryptography.services.dynamodb.internaldafny.types._IAttributeValueUpdate>> value) { @@ -4986,7 +4986,7 @@ public static string FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S38_UpdateKine } public static Dafny.ISequence ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S38_UpdateKinesisStreamingDestinationInput__M9_TableName(string value) { - return ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S8_TableArn(value); + return ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S8_TableArn((string)value); } public static string FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S38_UpdateKinesisStreamingDestinationInput__M9_StreamArn(Dafny.ISequence value) { @@ -4994,7 +4994,7 @@ public static string FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S38_UpdateKine } public static Dafny.ISequence ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S38_UpdateKinesisStreamingDestinationInput__M9_StreamArn(string value) { - return ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S9_StreamArn(value); + return ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S9_StreamArn((string)value); } public static Amazon.DynamoDBv2.Model.UpdateKinesisStreamingConfiguration FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S38_UpdateKinesisStreamingDestinationInput__M35_UpdateKinesisStreamingConfiguration(Wrappers_Compile._IOption value) { @@ -5050,7 +5050,7 @@ public static string FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S16_UpdateTabl } public static Dafny.ISequence ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S16_UpdateTableInput__M9_TableName(string value) { - return ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S8_TableArn(value); + return ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S8_TableArn((string)value); } public static Amazon.DynamoDBv2.BillingMode FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S16_UpdateTableInput__M11_BillingMode(Wrappers_Compile._IOption value) { @@ -5146,7 +5146,7 @@ public static string FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S34_UpdateTabl } public static Dafny.ISequence ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S34_UpdateTableReplicaAutoScalingInput__M9_TableName(string value) { - return ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S8_TableArn(value); + return ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S8_TableArn((string)value); } public static Amazon.DynamoDBv2.Model.AutoScalingSettingsUpdate FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S34_UpdateTableReplicaAutoScalingInput__M41_ProvisionedWriteCapacityAutoScalingUpdate(Wrappers_Compile._IOption value) { @@ -5178,7 +5178,7 @@ public static string FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S21_UpdateTime } public static Dafny.ISequence ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S21_UpdateTimeToLiveInput__M9_TableName(string value) { - return ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S8_TableArn(value); + return ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S8_TableArn((string)value); } public static Amazon.DynamoDBv2.Model.TimeToLiveSpecification FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S21_UpdateTimeToLiveInput__M23_TimeToLiveSpecification(software.amazon.cryptography.services.dynamodb.internaldafny.types._ITimeToLiveSpecification value) { @@ -5186,7 +5186,7 @@ public static Amazon.DynamoDBv2.Model.TimeToLiveSpecification FromDafny_N3_com__ } public static software.amazon.cryptography.services.dynamodb.internaldafny.types._ITimeToLiveSpecification ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S21_UpdateTimeToLiveInput__M23_TimeToLiveSpecification(Amazon.DynamoDBv2.Model.TimeToLiveSpecification value) { - return ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S23_TimeToLiveSpecification(value); + return ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S23_TimeToLiveSpecification((Amazon.DynamoDBv2.Model.TimeToLiveSpecification)value); } public static Amazon.DynamoDBv2.Model.TimeToLiveSpecification FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S22_UpdateTimeToLiveOutput__M23_TimeToLiveSpecification(Wrappers_Compile._IOption value) { @@ -5420,8 +5420,8 @@ public static Amazon.DynamoDBv2.Model.BackupDetails FromDafny_N3_com__N9_amazona public static software.amazon.cryptography.services.dynamodb.internaldafny.types._IBackupDetails ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S13_BackupDetails(Amazon.DynamoDBv2.Model.BackupDetails value) { - long? var_backupSizeBytes = value.BackupSizeBytes; - System.DateTime? var_backupExpiryDateTime = value.BackupExpiryDateTime; + long? var_backupSizeBytes = (long?)value.BackupSizeBytes; + System.DateTime? var_backupExpiryDateTime = (System.DateTime?)value.BackupExpiryDateTime; return new software.amazon.cryptography.services.dynamodb.internaldafny.types.BackupDetails(ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S13_BackupDetails__M9_BackupArn(value.BackupArn), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S13_BackupDetails__M10_BackupName(value.BackupName), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S13_BackupDetails__M15_BackupSizeBytes(var_backupSizeBytes), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S13_BackupDetails__M12_BackupStatus(value.BackupStatus), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S13_BackupDetails__M10_BackupType(value.BackupType), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S13_BackupDetails__M22_BackupCreationDateTime(value.BackupCreationDateTime), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S13_BackupDetails__M20_BackupExpiryDateTime(var_backupExpiryDateTime)); } public static string FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S9_TableName(Dafny.ISequence value) @@ -5451,11 +5451,11 @@ public static Amazon.DynamoDBv2.Model.GlobalTableDescription FromDafny_N3_com__N public static software.amazon.cryptography.services.dynamodb.internaldafny.types._IGlobalTableDescription ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S22_GlobalTableDescription(Amazon.DynamoDBv2.Model.GlobalTableDescription value) { - System.Collections.Generic.List var_replicationGroup = value.ReplicationGroup; - string var_globalTableArn = value.GlobalTableArn; - System.DateTime? var_creationDateTime = value.CreationDateTime; - Amazon.DynamoDBv2.GlobalTableStatus var_globalTableStatus = value.GlobalTableStatus; - string var_globalTableName = value.GlobalTableName; + System.Collections.Generic.List var_replicationGroup = (System.Collections.Generic.List)value.ReplicationGroup; + string var_globalTableArn = (string)value.GlobalTableArn; + System.DateTime? var_creationDateTime = (System.DateTime?)value.CreationDateTime; + Amazon.DynamoDBv2.GlobalTableStatus var_globalTableStatus = (Amazon.DynamoDBv2.GlobalTableStatus)value.GlobalTableStatus; + string var_globalTableName = (string)value.GlobalTableName; return new software.amazon.cryptography.services.dynamodb.internaldafny.types.GlobalTableDescription(ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S22_GlobalTableDescription__M16_ReplicationGroup(var_replicationGroup), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S22_GlobalTableDescription__M14_GlobalTableArn(var_globalTableArn), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S22_GlobalTableDescription__M16_CreationDateTime(var_creationDateTime), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S22_GlobalTableDescription__M17_GlobalTableStatus(var_globalTableStatus), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S22_GlobalTableDescription__M15_GlobalTableName(var_globalTableName)); } public static System.Collections.Generic.List FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S20_AttributeDefinitions(Dafny.ISequence value) @@ -5521,7 +5521,7 @@ public static Amazon.DynamoDBv2.Model.StreamSpecification FromDafny_N3_com__N9_a public static software.amazon.cryptography.services.dynamodb.internaldafny.types._IStreamSpecification ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S19_StreamSpecification(Amazon.DynamoDBv2.Model.StreamSpecification value) { - Amazon.DynamoDBv2.StreamViewType var_streamViewType = value.StreamViewType; + Amazon.DynamoDBv2.StreamViewType var_streamViewType = (Amazon.DynamoDBv2.StreamViewType)value.StreamViewType; return new software.amazon.cryptography.services.dynamodb.internaldafny.types.StreamSpecification(ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S19_StreamSpecification__M13_StreamEnabled(value.StreamEnabled), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S19_StreamSpecification__M14_StreamViewType(var_streamViewType)); } public static Amazon.DynamoDBv2.Model.SSESpecification FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S16_SSESpecification(software.amazon.cryptography.services.dynamodb.internaldafny.types._ISSESpecification value) @@ -5533,9 +5533,9 @@ public static Amazon.DynamoDBv2.Model.SSESpecification FromDafny_N3_com__N9_amaz public static software.amazon.cryptography.services.dynamodb.internaldafny.types._ISSESpecification ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S16_SSESpecification(Amazon.DynamoDBv2.Model.SSESpecification value) { - bool? var_enabled = value.Enabled; - Amazon.DynamoDBv2.SSEType var_sSEType = value.SSEType; - string var_kMSMasterKeyId = value.KMSMasterKeyId; + bool? var_enabled = (bool?)value.Enabled; + Amazon.DynamoDBv2.SSEType var_sSEType = (Amazon.DynamoDBv2.SSEType)value.SSEType; + string var_kMSMasterKeyId = (string)value.KMSMasterKeyId; return new software.amazon.cryptography.services.dynamodb.internaldafny.types.SSESpecification(ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S16_SSESpecification__M7_Enabled(var_enabled), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S16_SSESpecification__M7_SSEType(var_sSEType), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S16_SSESpecification__M14_KMSMasterKeyId(var_kMSMasterKeyId)); } public static System.Collections.Generic.List FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S7_TagList(Dafny.ISequence value) @@ -5582,8 +5582,8 @@ public static Amazon.DynamoDBv2.Model.OnDemandThroughput FromDafny_N3_com__N9_am public static software.amazon.cryptography.services.dynamodb.internaldafny.types._IOnDemandThroughput ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S18_OnDemandThroughput(Amazon.DynamoDBv2.Model.OnDemandThroughput value) { - long? var_maxReadRequestUnits = value.MaxReadRequestUnits; - long? var_maxWriteRequestUnits = value.MaxWriteRequestUnits; + long? var_maxReadRequestUnits = (long?)value.MaxReadRequestUnits; + long? var_maxWriteRequestUnits = (long?)value.MaxWriteRequestUnits; return new software.amazon.cryptography.services.dynamodb.internaldafny.types.OnDemandThroughput(ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S18_OnDemandThroughput__M19_MaxReadRequestUnits(var_maxReadRequestUnits), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S18_OnDemandThroughput__M20_MaxWriteRequestUnits(var_maxWriteRequestUnits)); } public static Amazon.DynamoDBv2.Model.TableDescription FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S16_TableDescription(software.amazon.cryptography.services.dynamodb.internaldafny.types._ITableDescription value) @@ -5616,30 +5616,30 @@ public static Amazon.DynamoDBv2.Model.TableDescription FromDafny_N3_com__N9_amaz public static software.amazon.cryptography.services.dynamodb.internaldafny.types._ITableDescription ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S16_TableDescription(Amazon.DynamoDBv2.Model.TableDescription value) { - System.Collections.Generic.List var_attributeDefinitions = value.AttributeDefinitions; - string var_tableName = value.TableName; - System.Collections.Generic.List var_keySchema = value.KeySchema; - Amazon.DynamoDBv2.TableStatus var_tableStatus = value.TableStatus; - System.DateTime? var_creationDateTime = value.CreationDateTime; - Amazon.DynamoDBv2.Model.ProvisionedThroughputDescription var_provisionedThroughput = value.ProvisionedThroughput; - long? var_tableSizeBytes = value.TableSizeBytes; - long? var_itemCount = value.ItemCount; - string var_tableArn = value.TableArn; - string var_tableId = value.TableId; - Amazon.DynamoDBv2.Model.BillingModeSummary var_billingModeSummary = value.BillingModeSummary; - System.Collections.Generic.List var_localSecondaryIndexes = value.LocalSecondaryIndexes; - System.Collections.Generic.List var_globalSecondaryIndexes = value.GlobalSecondaryIndexes; - Amazon.DynamoDBv2.Model.StreamSpecification var_streamSpecification = value.StreamSpecification; - string var_latestStreamLabel = value.LatestStreamLabel; - string var_latestStreamArn = value.LatestStreamArn; - string var_globalTableVersion = value.GlobalTableVersion; - System.Collections.Generic.List var_replicas = value.Replicas; - Amazon.DynamoDBv2.Model.RestoreSummary var_restoreSummary = value.RestoreSummary; - Amazon.DynamoDBv2.Model.SSEDescription var_sSEDescription = value.SSEDescription; - Amazon.DynamoDBv2.Model.ArchivalSummary var_archivalSummary = value.ArchivalSummary; - Amazon.DynamoDBv2.Model.TableClassSummary var_tableClassSummary = value.TableClassSummary; - bool? var_deletionProtectionEnabled = value.DeletionProtectionEnabled; - Amazon.DynamoDBv2.Model.OnDemandThroughput var_onDemandThroughput = value.OnDemandThroughput; + System.Collections.Generic.List var_attributeDefinitions = (System.Collections.Generic.List)value.AttributeDefinitions; + string var_tableName = (string)value.TableName; + System.Collections.Generic.List var_keySchema = (System.Collections.Generic.List)value.KeySchema; + Amazon.DynamoDBv2.TableStatus var_tableStatus = (Amazon.DynamoDBv2.TableStatus)value.TableStatus; + System.DateTime? var_creationDateTime = (System.DateTime?)value.CreationDateTime; + Amazon.DynamoDBv2.Model.ProvisionedThroughputDescription var_provisionedThroughput = (Amazon.DynamoDBv2.Model.ProvisionedThroughputDescription)value.ProvisionedThroughput; + long? var_tableSizeBytes = (long?)value.TableSizeBytes; + long? var_itemCount = (long?)value.ItemCount; + string var_tableArn = (string)value.TableArn; + string var_tableId = (string)value.TableId; + Amazon.DynamoDBv2.Model.BillingModeSummary var_billingModeSummary = (Amazon.DynamoDBv2.Model.BillingModeSummary)value.BillingModeSummary; + System.Collections.Generic.List var_localSecondaryIndexes = (System.Collections.Generic.List)value.LocalSecondaryIndexes; + System.Collections.Generic.List var_globalSecondaryIndexes = (System.Collections.Generic.List)value.GlobalSecondaryIndexes; + Amazon.DynamoDBv2.Model.StreamSpecification var_streamSpecification = (Amazon.DynamoDBv2.Model.StreamSpecification)value.StreamSpecification; + string var_latestStreamLabel = (string)value.LatestStreamLabel; + string var_latestStreamArn = (string)value.LatestStreamArn; + string var_globalTableVersion = (string)value.GlobalTableVersion; + System.Collections.Generic.List var_replicas = (System.Collections.Generic.List)value.Replicas; + Amazon.DynamoDBv2.Model.RestoreSummary var_restoreSummary = (Amazon.DynamoDBv2.Model.RestoreSummary)value.RestoreSummary; + Amazon.DynamoDBv2.Model.SSEDescription var_sSEDescription = (Amazon.DynamoDBv2.Model.SSEDescription)value.SSEDescription; + Amazon.DynamoDBv2.Model.ArchivalSummary var_archivalSummary = (Amazon.DynamoDBv2.Model.ArchivalSummary)value.ArchivalSummary; + Amazon.DynamoDBv2.Model.TableClassSummary var_tableClassSummary = (Amazon.DynamoDBv2.Model.TableClassSummary)value.TableClassSummary; + bool? var_deletionProtectionEnabled = (bool?)value.DeletionProtectionEnabled; + Amazon.DynamoDBv2.Model.OnDemandThroughput var_onDemandThroughput = (Amazon.DynamoDBv2.Model.OnDemandThroughput)value.OnDemandThroughput; return new software.amazon.cryptography.services.dynamodb.internaldafny.types.TableDescription(ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S16_TableDescription__M20_AttributeDefinitions(var_attributeDefinitions), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S16_TableDescription__M9_TableName(var_tableName), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S16_TableDescription__M9_KeySchema(var_keySchema), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S16_TableDescription__M11_TableStatus(var_tableStatus), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S16_TableDescription__M16_CreationDateTime(var_creationDateTime), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S16_TableDescription__M21_ProvisionedThroughput(var_provisionedThroughput), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S16_TableDescription__M14_TableSizeBytes(var_tableSizeBytes), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S16_TableDescription__M9_ItemCount(var_itemCount), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S16_TableDescription__M8_TableArn(var_tableArn), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S16_TableDescription__M7_TableId(var_tableId), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S16_TableDescription__M18_BillingModeSummary(var_billingModeSummary), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S16_TableDescription__M21_LocalSecondaryIndexes(var_localSecondaryIndexes), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S16_TableDescription__M22_GlobalSecondaryIndexes(var_globalSecondaryIndexes), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S16_TableDescription__M19_StreamSpecification(var_streamSpecification), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S16_TableDescription__M17_LatestStreamLabel(var_latestStreamLabel), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S16_TableDescription__M15_LatestStreamArn(var_latestStreamArn), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S16_TableDescription__M18_GlobalTableVersion(var_globalTableVersion), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S16_TableDescription__M8_Replicas(var_replicas), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S16_TableDescription__M14_RestoreSummary(var_restoreSummary), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S16_TableDescription__M14_SSEDescription(var_sSEDescription), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S16_TableDescription__M15_ArchivalSummary(var_archivalSummary), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S16_TableDescription__M17_TableClassSummary(var_tableClassSummary), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S16_TableDescription__M25_DeletionProtectionEnabled(var_deletionProtectionEnabled), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S16_TableDescription__M18_OnDemandThroughput(var_onDemandThroughput)); } public static string FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S9_BackupArn(Dafny.ISequence value) @@ -5659,9 +5659,9 @@ public static Amazon.DynamoDBv2.Model.BackupDescription FromDafny_N3_com__N9_ama public static software.amazon.cryptography.services.dynamodb.internaldafny.types._IBackupDescription ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S17_BackupDescription(Amazon.DynamoDBv2.Model.BackupDescription value) { - Amazon.DynamoDBv2.Model.BackupDetails var_backupDetails = value.BackupDetails; - Amazon.DynamoDBv2.Model.SourceTableDetails var_sourceTableDetails = value.SourceTableDetails; - Amazon.DynamoDBv2.Model.SourceTableFeatureDetails var_sourceTableFeatureDetails = value.SourceTableFeatureDetails; + Amazon.DynamoDBv2.Model.BackupDetails var_backupDetails = (Amazon.DynamoDBv2.Model.BackupDetails)value.BackupDetails; + Amazon.DynamoDBv2.Model.SourceTableDetails var_sourceTableDetails = (Amazon.DynamoDBv2.Model.SourceTableDetails)value.SourceTableDetails; + Amazon.DynamoDBv2.Model.SourceTableFeatureDetails var_sourceTableFeatureDetails = (Amazon.DynamoDBv2.Model.SourceTableFeatureDetails)value.SourceTableFeatureDetails; return new software.amazon.cryptography.services.dynamodb.internaldafny.types.BackupDescription(ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S17_BackupDescription__M13_BackupDetails(var_backupDetails), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S17_BackupDescription__M18_SourceTableDetails(var_sourceTableDetails), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S17_BackupDescription__M25_SourceTableFeatureDetails(var_sourceTableFeatureDetails)); } public static System.Collections.Generic.Dictionary FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S3_Key(Dafny.IMap, software.amazon.cryptography.services.dynamodb.internaldafny.types._IAttributeValue> value) @@ -5755,13 +5755,13 @@ public static Amazon.DynamoDBv2.Model.ConsumedCapacity FromDafny_N3_com__N9_amaz public static software.amazon.cryptography.services.dynamodb.internaldafny.types._IConsumedCapacity ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S16_ConsumedCapacity(Amazon.DynamoDBv2.Model.ConsumedCapacity value) { - string var_tableName = value.TableName; - double? var_capacityUnits = value.CapacityUnits; - double? var_readCapacityUnits = value.ReadCapacityUnits; - double? var_writeCapacityUnits = value.WriteCapacityUnits; - Amazon.DynamoDBv2.Model.Capacity var_table = value.Table; - System.Collections.Generic.Dictionary var_localSecondaryIndexes = value.LocalSecondaryIndexes; - System.Collections.Generic.Dictionary var_globalSecondaryIndexes = value.GlobalSecondaryIndexes; + string var_tableName = (string)value.TableName; + double? var_capacityUnits = (double?)value.CapacityUnits; + double? var_readCapacityUnits = (double?)value.ReadCapacityUnits; + double? var_writeCapacityUnits = (double?)value.WriteCapacityUnits; + Amazon.DynamoDBv2.Model.Capacity var_table = (Amazon.DynamoDBv2.Model.Capacity)value.Table; + System.Collections.Generic.Dictionary var_localSecondaryIndexes = (System.Collections.Generic.Dictionary)value.LocalSecondaryIndexes; + System.Collections.Generic.Dictionary var_globalSecondaryIndexes = (System.Collections.Generic.Dictionary)value.GlobalSecondaryIndexes; return new software.amazon.cryptography.services.dynamodb.internaldafny.types.ConsumedCapacity(ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S16_ConsumedCapacity__M9_TableName(var_tableName), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S16_ConsumedCapacity__M13_CapacityUnits(var_capacityUnits), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S16_ConsumedCapacity__M17_ReadCapacityUnits(var_readCapacityUnits), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S16_ConsumedCapacity__M18_WriteCapacityUnits(var_writeCapacityUnits), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S16_ConsumedCapacity__M5_Table(var_table), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S16_ConsumedCapacity__M21_LocalSecondaryIndexes(var_localSecondaryIndexes), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S16_ConsumedCapacity__M22_GlobalSecondaryIndexes(var_globalSecondaryIndexes)); } public static Amazon.DynamoDBv2.Model.ItemCollectionMetrics FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S21_ItemCollectionMetrics(software.amazon.cryptography.services.dynamodb.internaldafny.types._IItemCollectionMetrics value) @@ -5772,8 +5772,8 @@ public static Amazon.DynamoDBv2.Model.ItemCollectionMetrics FromDafny_N3_com__N9 public static software.amazon.cryptography.services.dynamodb.internaldafny.types._IItemCollectionMetrics ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S21_ItemCollectionMetrics(Amazon.DynamoDBv2.Model.ItemCollectionMetrics value) { - System.Collections.Generic.Dictionary var_itemCollectionKey = value.ItemCollectionKey; - System.Collections.Generic.List var_sizeEstimateRangeGB = value.SizeEstimateRangeGB; + System.Collections.Generic.Dictionary var_itemCollectionKey = (System.Collections.Generic.Dictionary)value.ItemCollectionKey; + System.Collections.Generic.List var_sizeEstimateRangeGB = (System.Collections.Generic.List)value.SizeEstimateRangeGB; return new software.amazon.cryptography.services.dynamodb.internaldafny.types.ItemCollectionMetrics(ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S21_ItemCollectionMetrics__M17_ItemCollectionKey(var_itemCollectionKey), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S21_ItemCollectionMetrics__M19_SizeEstimateRangeGB(var_sizeEstimateRangeGB)); } public static string FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S17_ResourceArnString(Dafny.ISequence value) @@ -5800,7 +5800,7 @@ public static Amazon.DynamoDBv2.Model.ContinuousBackupsDescription FromDafny_N3_ public static software.amazon.cryptography.services.dynamodb.internaldafny.types._IContinuousBackupsDescription ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S28_ContinuousBackupsDescription(Amazon.DynamoDBv2.Model.ContinuousBackupsDescription value) { - Amazon.DynamoDBv2.Model.PointInTimeRecoveryDescription var_pointInTimeRecoveryDescription = value.PointInTimeRecoveryDescription; + Amazon.DynamoDBv2.Model.PointInTimeRecoveryDescription var_pointInTimeRecoveryDescription = (Amazon.DynamoDBv2.Model.PointInTimeRecoveryDescription)value.PointInTimeRecoveryDescription; return new software.amazon.cryptography.services.dynamodb.internaldafny.types.ContinuousBackupsDescription(ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S28_ContinuousBackupsDescription__M23_ContinuousBackupsStatus(value.ContinuousBackupsStatus), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S28_ContinuousBackupsDescription__M30_PointInTimeRecoveryDescription(var_pointInTimeRecoveryDescription)); } public static string FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S9_IndexName(Dafny.ISequence value) @@ -5857,8 +5857,8 @@ public static Amazon.DynamoDBv2.Model.FailureException FromDafny_N3_com__N9_amaz public static software.amazon.cryptography.services.dynamodb.internaldafny.types._IFailureException ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S16_FailureException(Amazon.DynamoDBv2.Model.FailureException value) { - string var_exceptionName = value.ExceptionName; - string var_exceptionDescription = value.ExceptionDescription; + string var_exceptionName = (string)value.ExceptionName; + string var_exceptionDescription = (string)value.ExceptionDescription; return new software.amazon.cryptography.services.dynamodb.internaldafny.types.FailureException(ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S16_FailureException__M13_ExceptionName(var_exceptionName), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S16_FailureException__M20_ExceptionDescription(var_exceptionDescription)); } public static System.Collections.Generic.List FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S9_Endpoints(Dafny.ISequence value) @@ -5904,27 +5904,27 @@ public static Amazon.DynamoDBv2.Model.ExportDescription FromDafny_N3_com__N9_ama public static software.amazon.cryptography.services.dynamodb.internaldafny.types._IExportDescription ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S17_ExportDescription(Amazon.DynamoDBv2.Model.ExportDescription value) { - string var_exportArn = value.ExportArn; - Amazon.DynamoDBv2.ExportStatus var_exportStatus = value.ExportStatus; - System.DateTime? var_startTime = value.StartTime; - System.DateTime? var_endTime = value.EndTime; - string var_exportManifest = value.ExportManifest; - string var_tableArn = value.TableArn; - string var_tableId = value.TableId; - System.DateTime? var_exportTime = value.ExportTime; - string var_clientToken = value.ClientToken; - string var_s3Bucket = value.S3Bucket; - string var_s3BucketOwner = value.S3BucketOwner; - string var_s3Prefix = value.S3Prefix; - Amazon.DynamoDBv2.S3SseAlgorithm var_s3SseAlgorithm = value.S3SseAlgorithm; - string var_s3SseKmsKeyId = value.S3SseKmsKeyId; - string var_failureCode = value.FailureCode; - string var_failureMessage = value.FailureMessage; - Amazon.DynamoDBv2.ExportFormat var_exportFormat = value.ExportFormat; - long? var_billedSizeBytes = value.BilledSizeBytes; - long? var_itemCount = value.ItemCount; - Amazon.DynamoDBv2.ExportType var_exportType = value.ExportType; - Amazon.DynamoDBv2.Model.IncrementalExportSpecification var_incrementalExportSpecification = value.IncrementalExportSpecification; + string var_exportArn = (string)value.ExportArn; + Amazon.DynamoDBv2.ExportStatus var_exportStatus = (Amazon.DynamoDBv2.ExportStatus)value.ExportStatus; + System.DateTime? var_startTime = (System.DateTime?)value.StartTime; + System.DateTime? var_endTime = (System.DateTime?)value.EndTime; + string var_exportManifest = (string)value.ExportManifest; + string var_tableArn = (string)value.TableArn; + string var_tableId = (string)value.TableId; + System.DateTime? var_exportTime = (System.DateTime?)value.ExportTime; + string var_clientToken = (string)value.ClientToken; + string var_s3Bucket = (string)value.S3Bucket; + string var_s3BucketOwner = (string)value.S3BucketOwner; + string var_s3Prefix = (string)value.S3Prefix; + Amazon.DynamoDBv2.S3SseAlgorithm var_s3SseAlgorithm = (Amazon.DynamoDBv2.S3SseAlgorithm)value.S3SseAlgorithm; + string var_s3SseKmsKeyId = (string)value.S3SseKmsKeyId; + string var_failureCode = (string)value.FailureCode; + string var_failureMessage = (string)value.FailureMessage; + Amazon.DynamoDBv2.ExportFormat var_exportFormat = (Amazon.DynamoDBv2.ExportFormat)value.ExportFormat; + long? var_billedSizeBytes = (long?)value.BilledSizeBytes; + long? var_itemCount = (long?)value.ItemCount; + Amazon.DynamoDBv2.ExportType var_exportType = (Amazon.DynamoDBv2.ExportType)value.ExportType; + Amazon.DynamoDBv2.Model.IncrementalExportSpecification var_incrementalExportSpecification = (Amazon.DynamoDBv2.Model.IncrementalExportSpecification)value.IncrementalExportSpecification; return new software.amazon.cryptography.services.dynamodb.internaldafny.types.ExportDescription(ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S17_ExportDescription__M9_ExportArn(var_exportArn), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S17_ExportDescription__M12_ExportStatus(var_exportStatus), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S17_ExportDescription__M9_StartTime(var_startTime), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S17_ExportDescription__M7_EndTime(var_endTime), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S17_ExportDescription__M14_ExportManifest(var_exportManifest), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S17_ExportDescription__M8_TableArn(var_tableArn), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S17_ExportDescription__M7_TableId(var_tableId), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S17_ExportDescription__M10_ExportTime(var_exportTime), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S17_ExportDescription__M11_ClientToken(var_clientToken), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S17_ExportDescription__M8_S3Bucket(var_s3Bucket), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S17_ExportDescription__M13_S3BucketOwner(var_s3BucketOwner), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S17_ExportDescription__M8_S3Prefix(var_s3Prefix), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S17_ExportDescription__M14_S3SseAlgorithm(var_s3SseAlgorithm), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S17_ExportDescription__M13_S3SseKmsKeyId(var_s3SseKmsKeyId), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S17_ExportDescription__M11_FailureCode(var_failureCode), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S17_ExportDescription__M14_FailureMessage(var_failureMessage), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S17_ExportDescription__M12_ExportFormat(var_exportFormat), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S17_ExportDescription__M15_BilledSizeBytes(var_billedSizeBytes), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S17_ExportDescription__M9_ItemCount(var_itemCount), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S17_ExportDescription__M10_ExportType(var_exportType), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S17_ExportDescription__M30_IncrementalExportSpecification(var_incrementalExportSpecification)); } public static System.Collections.Generic.List FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S30_ReplicaSettingsDescriptionList(Dafny.ISequence value) @@ -5968,25 +5968,25 @@ public static Amazon.DynamoDBv2.Model.ImportTableDescription FromDafny_N3_com__N public static software.amazon.cryptography.services.dynamodb.internaldafny.types._IImportTableDescription ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S22_ImportTableDescription(Amazon.DynamoDBv2.Model.ImportTableDescription value) { - string var_importArn = value.ImportArn; - Amazon.DynamoDBv2.ImportStatus var_importStatus = value.ImportStatus; - string var_tableArn = value.TableArn; - string var_tableId = value.TableId; - string var_clientToken = value.ClientToken; - Amazon.DynamoDBv2.Model.S3BucketSource var_s3BucketSource = value.S3BucketSource; - long? var_errorCount = value.ErrorCount; - string var_cloudWatchLogGroupArn = value.CloudWatchLogGroupArn; - Amazon.DynamoDBv2.InputFormat var_inputFormat = value.InputFormat; - Amazon.DynamoDBv2.Model.InputFormatOptions var_inputFormatOptions = value.InputFormatOptions; - Amazon.DynamoDBv2.InputCompressionType var_inputCompressionType = value.InputCompressionType; - Amazon.DynamoDBv2.Model.TableCreationParameters var_tableCreationParameters = value.TableCreationParameters; - System.DateTime? var_startTime = value.StartTime; - System.DateTime? var_endTime = value.EndTime; - long? var_processedSizeBytes = value.ProcessedSizeBytes; - long? var_processedItemCount = value.ProcessedItemCount; - long? var_importedItemCount = value.ImportedItemCount; - string var_failureCode = value.FailureCode; - string var_failureMessage = value.FailureMessage; + string var_importArn = (string)value.ImportArn; + Amazon.DynamoDBv2.ImportStatus var_importStatus = (Amazon.DynamoDBv2.ImportStatus)value.ImportStatus; + string var_tableArn = (string)value.TableArn; + string var_tableId = (string)value.TableId; + string var_clientToken = (string)value.ClientToken; + Amazon.DynamoDBv2.Model.S3BucketSource var_s3BucketSource = (Amazon.DynamoDBv2.Model.S3BucketSource)value.S3BucketSource; + long? var_errorCount = (long?)value.ErrorCount; + string var_cloudWatchLogGroupArn = (string)value.CloudWatchLogGroupArn; + Amazon.DynamoDBv2.InputFormat var_inputFormat = (Amazon.DynamoDBv2.InputFormat)value.InputFormat; + Amazon.DynamoDBv2.Model.InputFormatOptions var_inputFormatOptions = (Amazon.DynamoDBv2.Model.InputFormatOptions)value.InputFormatOptions; + Amazon.DynamoDBv2.InputCompressionType var_inputCompressionType = (Amazon.DynamoDBv2.InputCompressionType)value.InputCompressionType; + Amazon.DynamoDBv2.Model.TableCreationParameters var_tableCreationParameters = (Amazon.DynamoDBv2.Model.TableCreationParameters)value.TableCreationParameters; + System.DateTime? var_startTime = (System.DateTime?)value.StartTime; + System.DateTime? var_endTime = (System.DateTime?)value.EndTime; + long? var_processedSizeBytes = (long?)value.ProcessedSizeBytes; + long? var_processedItemCount = (long?)value.ProcessedItemCount; + long? var_importedItemCount = (long?)value.ImportedItemCount; + string var_failureCode = (string)value.FailureCode; + string var_failureMessage = (string)value.FailureMessage; return new software.amazon.cryptography.services.dynamodb.internaldafny.types.ImportTableDescription(ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S22_ImportTableDescription__M9_ImportArn(var_importArn), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S22_ImportTableDescription__M12_ImportStatus(var_importStatus), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S22_ImportTableDescription__M8_TableArn(var_tableArn), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S22_ImportTableDescription__M7_TableId(var_tableId), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S22_ImportTableDescription__M11_ClientToken(var_clientToken), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S22_ImportTableDescription__M14_S3BucketSource(var_s3BucketSource), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S22_ImportTableDescription__M10_ErrorCount(var_errorCount), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S22_ImportTableDescription__M21_CloudWatchLogGroupArn(var_cloudWatchLogGroupArn), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S22_ImportTableDescription__M11_InputFormat(var_inputFormat), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S22_ImportTableDescription__M18_InputFormatOptions(var_inputFormatOptions), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S22_ImportTableDescription__M20_InputCompressionType(var_inputCompressionType), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S22_ImportTableDescription__M23_TableCreationParameters(var_tableCreationParameters), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S22_ImportTableDescription__M9_StartTime(var_startTime), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S22_ImportTableDescription__M7_EndTime(var_endTime), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S22_ImportTableDescription__M18_ProcessedSizeBytes(var_processedSizeBytes), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S22_ImportTableDescription__M18_ProcessedItemCount(var_processedItemCount), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S22_ImportTableDescription__M17_ImportedItemCount(var_importedItemCount), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S22_ImportTableDescription__M11_FailureCode(var_failureCode), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S22_ImportTableDescription__M14_FailureMessage(var_failureMessage)); } public static System.Collections.Generic.List FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S29_KinesisDataStreamDestinations(Dafny.ISequence value) @@ -6014,9 +6014,9 @@ public static Amazon.DynamoDBv2.Model.TableAutoScalingDescription FromDafny_N3_c public static software.amazon.cryptography.services.dynamodb.internaldafny.types._ITableAutoScalingDescription ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S27_TableAutoScalingDescription(Amazon.DynamoDBv2.Model.TableAutoScalingDescription value) { - string var_tableName = value.TableName; - Amazon.DynamoDBv2.TableStatus var_tableStatus = value.TableStatus; - System.Collections.Generic.List var_replicas = value.Replicas; + string var_tableName = (string)value.TableName; + Amazon.DynamoDBv2.TableStatus var_tableStatus = (Amazon.DynamoDBv2.TableStatus)value.TableStatus; + System.Collections.Generic.List var_replicas = (System.Collections.Generic.List)value.Replicas; return new software.amazon.cryptography.services.dynamodb.internaldafny.types.TableAutoScalingDescription(ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S27_TableAutoScalingDescription__M9_TableName(var_tableName), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S27_TableAutoScalingDescription__M11_TableStatus(var_tableStatus), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S27_TableAutoScalingDescription__M8_Replicas(var_replicas)); } public static Amazon.DynamoDBv2.Model.TimeToLiveDescription FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S21_TimeToLiveDescription(software.amazon.cryptography.services.dynamodb.internaldafny.types._ITimeToLiveDescription value) @@ -6027,8 +6027,8 @@ public static Amazon.DynamoDBv2.Model.TimeToLiveDescription FromDafny_N3_com__N9 public static software.amazon.cryptography.services.dynamodb.internaldafny.types._ITimeToLiveDescription ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S21_TimeToLiveDescription(Amazon.DynamoDBv2.Model.TimeToLiveDescription value) { - Amazon.DynamoDBv2.TimeToLiveStatus var_timeToLiveStatus = value.TimeToLiveStatus; - string var_attributeName = value.AttributeName; + Amazon.DynamoDBv2.TimeToLiveStatus var_timeToLiveStatus = (Amazon.DynamoDBv2.TimeToLiveStatus)value.TimeToLiveStatus; + string var_attributeName = (string)value.AttributeName; return new software.amazon.cryptography.services.dynamodb.internaldafny.types.TimeToLiveDescription(ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S21_TimeToLiveDescription__M16_TimeToLiveStatus(var_timeToLiveStatus), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S21_TimeToLiveDescription__M13_AttributeName(var_attributeName)); } public static string FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S9_StreamArn(Dafny.ISequence value) @@ -6046,7 +6046,7 @@ public static Amazon.DynamoDBv2.Model.EnableKinesisStreamingConfiguration FromDa public static software.amazon.cryptography.services.dynamodb.internaldafny.types._IEnableKinesisStreamingConfiguration ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S35_EnableKinesisStreamingConfiguration(Amazon.DynamoDBv2.Model.EnableKinesisStreamingConfiguration value) { - Amazon.DynamoDBv2.ApproximateCreationDateTimePrecision var_approximateCreationDateTimePrecision = value.ApproximateCreationDateTimePrecision; + Amazon.DynamoDBv2.ApproximateCreationDateTimePrecision var_approximateCreationDateTimePrecision = (Amazon.DynamoDBv2.ApproximateCreationDateTimePrecision)value.ApproximateCreationDateTimePrecision; return new software.amazon.cryptography.services.dynamodb.internaldafny.types.EnableKinesisStreamingConfiguration(ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S35_EnableKinesisStreamingConfiguration__M36_ApproximateCreationDateTimePrecision(var_approximateCreationDateTimePrecision)); } public static Amazon.DynamoDBv2.DestinationStatus FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S17_DestinationStatus(software.amazon.cryptography.services.dynamodb.internaldafny.types._IDestinationStatus value) @@ -6238,9 +6238,9 @@ public static Amazon.DynamoDBv2.Model.IncrementalExportSpecification FromDafny_N public static software.amazon.cryptography.services.dynamodb.internaldafny.types._IIncrementalExportSpecification ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S30_IncrementalExportSpecification(Amazon.DynamoDBv2.Model.IncrementalExportSpecification value) { - System.DateTime? var_exportFromTime = value.ExportFromTime; - System.DateTime? var_exportToTime = value.ExportToTime; - Amazon.DynamoDBv2.ExportViewType var_exportViewType = value.ExportViewType; + System.DateTime? var_exportFromTime = (System.DateTime?)value.ExportFromTime; + System.DateTime? var_exportToTime = (System.DateTime?)value.ExportToTime; + Amazon.DynamoDBv2.ExportViewType var_exportViewType = (Amazon.DynamoDBv2.ExportViewType)value.ExportViewType; return new software.amazon.cryptography.services.dynamodb.internaldafny.types.IncrementalExportSpecification(ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S30_IncrementalExportSpecification__M14_ExportFromTime(var_exportFromTime), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S30_IncrementalExportSpecification__M12_ExportToTime(var_exportToTime), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S30_IncrementalExportSpecification__M14_ExportViewType(var_exportViewType)); } public static System.Collections.Generic.List FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S17_AttributeNameList(Dafny.ISequence> value) @@ -6268,8 +6268,8 @@ public static Amazon.DynamoDBv2.Model.S3BucketSource FromDafny_N3_com__N9_amazon public static software.amazon.cryptography.services.dynamodb.internaldafny.types._IS3BucketSource ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S14_S3BucketSource(Amazon.DynamoDBv2.Model.S3BucketSource value) { - string var_s3BucketOwner = value.S3BucketOwner; - string var_s3KeyPrefix = value.S3KeyPrefix; + string var_s3BucketOwner = (string)value.S3BucketOwner; + string var_s3KeyPrefix = (string)value.S3KeyPrefix; return new software.amazon.cryptography.services.dynamodb.internaldafny.types.S3BucketSource(ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S14_S3BucketSource__M13_S3BucketOwner(var_s3BucketOwner), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S14_S3BucketSource__M8_S3Bucket(value.S3Bucket), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S14_S3BucketSource__M11_S3KeyPrefix(var_s3KeyPrefix)); } public static Amazon.DynamoDBv2.InputFormat FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S11_InputFormat(software.amazon.cryptography.services.dynamodb.internaldafny.types._IInputFormat value) @@ -6293,7 +6293,7 @@ public static Amazon.DynamoDBv2.Model.InputFormatOptions FromDafny_N3_com__N9_am public static software.amazon.cryptography.services.dynamodb.internaldafny.types._IInputFormatOptions ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S18_InputFormatOptions(Amazon.DynamoDBv2.Model.InputFormatOptions value) { - Amazon.DynamoDBv2.Model.CsvOptions var_csv = value.Csv; + Amazon.DynamoDBv2.Model.CsvOptions var_csv = (Amazon.DynamoDBv2.Model.CsvOptions)value.Csv; return new software.amazon.cryptography.services.dynamodb.internaldafny.types.InputFormatOptions(ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S18_InputFormatOptions__M3_Csv(var_csv)); } public static Amazon.DynamoDBv2.InputCompressionType FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S20_InputCompressionType(software.amazon.cryptography.services.dynamodb.internaldafny.types._IInputCompressionType value) @@ -6324,11 +6324,11 @@ public static Amazon.DynamoDBv2.Model.TableCreationParameters FromDafny_N3_com__ public static software.amazon.cryptography.services.dynamodb.internaldafny.types._ITableCreationParameters ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S23_TableCreationParameters(Amazon.DynamoDBv2.Model.TableCreationParameters value) { - Amazon.DynamoDBv2.BillingMode var_billingMode = value.BillingMode; - Amazon.DynamoDBv2.Model.ProvisionedThroughput var_provisionedThroughput = value.ProvisionedThroughput; - Amazon.DynamoDBv2.Model.OnDemandThroughput var_onDemandThroughput = value.OnDemandThroughput; - Amazon.DynamoDBv2.Model.SSESpecification var_sSESpecification = value.SSESpecification; - System.Collections.Generic.List var_globalSecondaryIndexes = value.GlobalSecondaryIndexes; + Amazon.DynamoDBv2.BillingMode var_billingMode = (Amazon.DynamoDBv2.BillingMode)value.BillingMode; + Amazon.DynamoDBv2.Model.ProvisionedThroughput var_provisionedThroughput = (Amazon.DynamoDBv2.Model.ProvisionedThroughput)value.ProvisionedThroughput; + Amazon.DynamoDBv2.Model.OnDemandThroughput var_onDemandThroughput = (Amazon.DynamoDBv2.Model.OnDemandThroughput)value.OnDemandThroughput; + Amazon.DynamoDBv2.Model.SSESpecification var_sSESpecification = (Amazon.DynamoDBv2.Model.SSESpecification)value.SSESpecification; + System.Collections.Generic.List var_globalSecondaryIndexes = (System.Collections.Generic.List)value.GlobalSecondaryIndexes; return new software.amazon.cryptography.services.dynamodb.internaldafny.types.TableCreationParameters(ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S23_TableCreationParameters__M9_TableName(value.TableName), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S23_TableCreationParameters__M20_AttributeDefinitions(value.AttributeDefinitions), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S23_TableCreationParameters__M9_KeySchema(value.KeySchema), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S23_TableCreationParameters__M11_BillingMode(var_billingMode), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S23_TableCreationParameters__M21_ProvisionedThroughput(var_provisionedThroughput), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S23_TableCreationParameters__M18_OnDemandThroughput(var_onDemandThroughput), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S23_TableCreationParameters__M16_SSESpecification(var_sSESpecification), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S23_TableCreationParameters__M22_GlobalSecondaryIndexes(var_globalSecondaryIndexes)); } public static string FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S6_String(Dafny.ISequence value) @@ -6678,11 +6678,11 @@ public static Amazon.DynamoDBv2.Model.AutoScalingSettingsUpdate FromDafny_N3_com public static software.amazon.cryptography.services.dynamodb.internaldafny.types._IAutoScalingSettingsUpdate ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S25_AutoScalingSettingsUpdate(Amazon.DynamoDBv2.Model.AutoScalingSettingsUpdate value) { - long? var_minimumUnits = value.MinimumUnits; - long? var_maximumUnits = value.MaximumUnits; - bool? var_autoScalingDisabled = value.AutoScalingDisabled; - string var_autoScalingRoleArn = value.AutoScalingRoleArn; - Amazon.DynamoDBv2.Model.AutoScalingPolicyUpdate var_scalingPolicyUpdate = value.ScalingPolicyUpdate; + long? var_minimumUnits = (long?)value.MinimumUnits; + long? var_maximumUnits = (long?)value.MaximumUnits; + bool? var_autoScalingDisabled = (bool?)value.AutoScalingDisabled; + string var_autoScalingRoleArn = (string)value.AutoScalingRoleArn; + Amazon.DynamoDBv2.Model.AutoScalingPolicyUpdate var_scalingPolicyUpdate = (Amazon.DynamoDBv2.Model.AutoScalingPolicyUpdate)value.ScalingPolicyUpdate; return new software.amazon.cryptography.services.dynamodb.internaldafny.types.AutoScalingSettingsUpdate(ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S25_AutoScalingSettingsUpdate__M12_MinimumUnits(var_minimumUnits), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S25_AutoScalingSettingsUpdate__M12_MaximumUnits(var_maximumUnits), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S25_AutoScalingSettingsUpdate__M19_AutoScalingDisabled(var_autoScalingDisabled), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S25_AutoScalingSettingsUpdate__M18_AutoScalingRoleArn(var_autoScalingRoleArn), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S25_AutoScalingSettingsUpdate__M19_ScalingPolicyUpdate(var_scalingPolicyUpdate)); } public static System.Collections.Generic.List FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S49_GlobalTableGlobalSecondaryIndexSettingsUpdateList(Dafny.ISequence value) @@ -6726,7 +6726,7 @@ public static Amazon.DynamoDBv2.Model.UpdateKinesisStreamingConfiguration FromDa public static software.amazon.cryptography.services.dynamodb.internaldafny.types._IUpdateKinesisStreamingConfiguration ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S35_UpdateKinesisStreamingConfiguration(Amazon.DynamoDBv2.Model.UpdateKinesisStreamingConfiguration value) { - Amazon.DynamoDBv2.ApproximateCreationDateTimePrecision var_approximateCreationDateTimePrecision = value.ApproximateCreationDateTimePrecision; + Amazon.DynamoDBv2.ApproximateCreationDateTimePrecision var_approximateCreationDateTimePrecision = (Amazon.DynamoDBv2.ApproximateCreationDateTimePrecision)value.ApproximateCreationDateTimePrecision; return new software.amazon.cryptography.services.dynamodb.internaldafny.types.UpdateKinesisStreamingConfiguration(ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S35_UpdateKinesisStreamingConfiguration__M36_ApproximateCreationDateTimePrecision(var_approximateCreationDateTimePrecision)); } public static System.Collections.Generic.List FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S30_GlobalSecondaryIndexUpdateList(Dafny.ISequence value) @@ -6778,7 +6778,7 @@ public static string FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S23_StringSetA } public static Dafny.ISequence ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S23_StringSetAttributeValue__M6_member(string value) { - return ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S20_StringAttributeValue(value); + return ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S20_StringAttributeValue((string)value); } public static string FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S23_NumberSetAttributeValue__M6_member(Dafny.ISequence value) { @@ -6786,7 +6786,7 @@ public static string FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S23_NumberSetA } public static Dafny.ISequence ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S23_NumberSetAttributeValue__M6_member(string value) { - return ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S20_NumberAttributeValue(value); + return ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S20_NumberAttributeValue((string)value); } public static System.IO.MemoryStream FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S23_BinarySetAttributeValue__M6_member(Dafny.ISequence value) { @@ -6794,7 +6794,7 @@ public static System.IO.MemoryStream FromDafny_N3_com__N9_amazonaws__N8_dynamodb } public static Dafny.ISequence ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S23_BinarySetAttributeValue__M6_member(System.IO.MemoryStream value) { - return ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S20_BinaryAttributeValue(value); + return ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S20_BinaryAttributeValue((System.IO.MemoryStream)value); } public static string FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S17_MapAttributeValue__M3_key(Dafny.ISequence value) { @@ -6802,7 +6802,7 @@ public static string FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S17_MapAttribu } public static Dafny.ISequence ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S17_MapAttributeValue__M3_key(string value) { - return ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S13_AttributeName(value); + return ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S13_AttributeName((string)value); } public static Amazon.DynamoDBv2.Model.AttributeValue FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S17_MapAttributeValue__M5_value(software.amazon.cryptography.services.dynamodb.internaldafny.types._IAttributeValue value) { @@ -6810,7 +6810,7 @@ public static Amazon.DynamoDBv2.Model.AttributeValue FromDafny_N3_com__N9_amazon } public static software.amazon.cryptography.services.dynamodb.internaldafny.types._IAttributeValue ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S17_MapAttributeValue__M5_value(Amazon.DynamoDBv2.Model.AttributeValue value) { - return ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S14_AttributeValue(value); + return ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S14_AttributeValue((Amazon.DynamoDBv2.Model.AttributeValue)value); } public static Amazon.DynamoDBv2.Model.AttributeValue FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S18_ListAttributeValue__M6_member(software.amazon.cryptography.services.dynamodb.internaldafny.types._IAttributeValue value) { @@ -6818,7 +6818,7 @@ public static Amazon.DynamoDBv2.Model.AttributeValue FromDafny_N3_com__N9_amazon } public static software.amazon.cryptography.services.dynamodb.internaldafny.types._IAttributeValue ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S18_ListAttributeValue__M6_member(Amazon.DynamoDBv2.Model.AttributeValue value) { - return ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S14_AttributeValue(value); + return ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S14_AttributeValue((Amazon.DynamoDBv2.Model.AttributeValue)value); } public static Amazon.DynamoDBv2.Model.BatchStatementRequest FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S19_PartiQLBatchRequest__M6_member(software.amazon.cryptography.services.dynamodb.internaldafny.types._IBatchStatementRequest value) { @@ -6826,7 +6826,7 @@ public static Amazon.DynamoDBv2.Model.BatchStatementRequest FromDafny_N3_com__N9 } public static software.amazon.cryptography.services.dynamodb.internaldafny.types._IBatchStatementRequest ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S19_PartiQLBatchRequest__M6_member(Amazon.DynamoDBv2.Model.BatchStatementRequest value) { - return ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S21_BatchStatementRequest(value); + return ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S21_BatchStatementRequest((Amazon.DynamoDBv2.Model.BatchStatementRequest)value); } public static Amazon.DynamoDBv2.Model.BatchStatementResponse FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S20_PartiQLBatchResponse__M6_member(software.amazon.cryptography.services.dynamodb.internaldafny.types._IBatchStatementResponse value) { @@ -6834,7 +6834,7 @@ public static Amazon.DynamoDBv2.Model.BatchStatementResponse FromDafny_N3_com__N } public static software.amazon.cryptography.services.dynamodb.internaldafny.types._IBatchStatementResponse ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S20_PartiQLBatchResponse__M6_member(Amazon.DynamoDBv2.Model.BatchStatementResponse value) { - return ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S22_BatchStatementResponse(value); + return ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S22_BatchStatementResponse((Amazon.DynamoDBv2.Model.BatchStatementResponse)value); } public static Amazon.DynamoDBv2.Model.ConsumedCapacity FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S24_ConsumedCapacityMultiple__M6_member(software.amazon.cryptography.services.dynamodb.internaldafny.types._IConsumedCapacity value) { @@ -6842,7 +6842,7 @@ public static Amazon.DynamoDBv2.Model.ConsumedCapacity FromDafny_N3_com__N9_amaz } public static software.amazon.cryptography.services.dynamodb.internaldafny.types._IConsumedCapacity ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S24_ConsumedCapacityMultiple__M6_member(Amazon.DynamoDBv2.Model.ConsumedCapacity value) { - return ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S16_ConsumedCapacity(value); + return ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S16_ConsumedCapacity((Amazon.DynamoDBv2.Model.ConsumedCapacity)value); } public static string FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S18_BatchGetRequestMap__M3_key(Dafny.ISequence value) { @@ -6850,7 +6850,7 @@ public static string FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S18_BatchGetRe } public static Dafny.ISequence ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S18_BatchGetRequestMap__M3_key(string value) { - return ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S8_TableArn(value); + return ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S8_TableArn((string)value); } public static Amazon.DynamoDBv2.Model.KeysAndAttributes FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S18_BatchGetRequestMap__M5_value(software.amazon.cryptography.services.dynamodb.internaldafny.types._IKeysAndAttributes value) { @@ -6858,7 +6858,7 @@ public static Amazon.DynamoDBv2.Model.KeysAndAttributes FromDafny_N3_com__N9_ama } public static software.amazon.cryptography.services.dynamodb.internaldafny.types._IKeysAndAttributes ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S18_BatchGetRequestMap__M5_value(Amazon.DynamoDBv2.Model.KeysAndAttributes value) { - return ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S17_KeysAndAttributes(value); + return ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S17_KeysAndAttributes((Amazon.DynamoDBv2.Model.KeysAndAttributes)value); } public static string FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S19_BatchGetResponseMap__M3_key(Dafny.ISequence value) { @@ -6866,7 +6866,7 @@ public static string FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S19_BatchGetRe } public static Dafny.ISequence ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S19_BatchGetResponseMap__M3_key(string value) { - return ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S8_TableArn(value); + return ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S8_TableArn((string)value); } public static System.Collections.Generic.List> FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S19_BatchGetResponseMap__M5_value(Dafny.ISequence, software.amazon.cryptography.services.dynamodb.internaldafny.types._IAttributeValue>> value) { @@ -6874,7 +6874,7 @@ public static Dafny.ISequence ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S } public static Dafny.ISequence, software.amazon.cryptography.services.dynamodb.internaldafny.types._IAttributeValue>> ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S19_BatchGetResponseMap__M5_value(System.Collections.Generic.List> value) { - return ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S8_ItemList(value); + return ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S8_ItemList((System.Collections.Generic.List>)value); } public static string FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S24_BatchWriteItemRequestMap__M3_key(Dafny.ISequence value) { @@ -6882,7 +6882,7 @@ public static string FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S24_BatchWrite } public static Dafny.ISequence ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S24_BatchWriteItemRequestMap__M3_key(string value) { - return ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S8_TableArn(value); + return ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S8_TableArn((string)value); } public static System.Collections.Generic.List FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S24_BatchWriteItemRequestMap__M5_value(Dafny.ISequence value) { @@ -6890,7 +6890,7 @@ public static Dafny.ISequence ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S } public static Dafny.ISequence ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S24_BatchWriteItemRequestMap__M5_value(System.Collections.Generic.List value) { - return ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S13_WriteRequests(value); + return ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S13_WriteRequests((System.Collections.Generic.List)value); } public static string FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S29_ItemCollectionMetricsPerTable__M3_key(Dafny.ISequence value) { @@ -6898,7 +6898,7 @@ public static string FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S29_ItemCollec } public static Dafny.ISequence ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S29_ItemCollectionMetricsPerTable__M3_key(string value) { - return ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S8_TableArn(value); + return ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S8_TableArn((string)value); } public static System.Collections.Generic.List FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S29_ItemCollectionMetricsPerTable__M5_value(Dafny.ISequence value) { @@ -6906,7 +6906,7 @@ public static Dafny.ISequence ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S } public static Dafny.ISequence ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S29_ItemCollectionMetricsPerTable__M5_value(System.Collections.Generic.List value) { - return ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S29_ItemCollectionMetricsMultiple(value); + return ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S29_ItemCollectionMetricsMultiple((System.Collections.Generic.List)value); } public static string FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S12_AttributeMap__M3_key(Dafny.ISequence value) { @@ -6914,7 +6914,7 @@ public static string FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S12_AttributeM } public static Dafny.ISequence ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S12_AttributeMap__M3_key(string value) { - return ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S13_AttributeName(value); + return ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S13_AttributeName((string)value); } public static Amazon.DynamoDBv2.Model.AttributeValue FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S12_AttributeMap__M5_value(software.amazon.cryptography.services.dynamodb.internaldafny.types._IAttributeValue value) { @@ -6922,7 +6922,7 @@ public static Amazon.DynamoDBv2.Model.AttributeValue FromDafny_N3_com__N9_amazon } public static software.amazon.cryptography.services.dynamodb.internaldafny.types._IAttributeValue ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S12_AttributeMap__M5_value(Amazon.DynamoDBv2.Model.AttributeValue value) { - return ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S14_AttributeValue(value); + return ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S14_AttributeValue((Amazon.DynamoDBv2.Model.AttributeValue)value); } public static string FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S13_BackupDetails__M9_BackupArn(Dafny.ISequence value) { @@ -6930,7 +6930,7 @@ public static string FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S13_BackupDeta } public static Dafny.ISequence ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S13_BackupDetails__M9_BackupArn(string value) { - return ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S9_BackupArn(value); + return ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S9_BackupArn((string)value); } public static string FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S13_BackupDetails__M10_BackupName(Dafny.ISequence value) { @@ -6938,7 +6938,7 @@ public static string FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S13_BackupDeta } public static Dafny.ISequence ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S13_BackupDetails__M10_BackupName(string value) { - return ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S10_BackupName(value); + return ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S10_BackupName((string)value); } public static long? FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S13_BackupDetails__M15_BackupSizeBytes(Wrappers_Compile._IOption value) { @@ -6954,7 +6954,7 @@ public static Amazon.DynamoDBv2.BackupStatus FromDafny_N3_com__N9_amazonaws__N8_ } public static software.amazon.cryptography.services.dynamodb.internaldafny.types._IBackupStatus ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S13_BackupDetails__M12_BackupStatus(Amazon.DynamoDBv2.BackupStatus value) { - return ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S12_BackupStatus(value); + return ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S12_BackupStatus((Amazon.DynamoDBv2.BackupStatus)value); } public static Amazon.DynamoDBv2.BackupType FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S13_BackupDetails__M10_BackupType(software.amazon.cryptography.services.dynamodb.internaldafny.types._IBackupType value) { @@ -6962,7 +6962,7 @@ public static Amazon.DynamoDBv2.BackupType FromDafny_N3_com__N9_amazonaws__N8_dy } public static software.amazon.cryptography.services.dynamodb.internaldafny.types._IBackupType ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S13_BackupDetails__M10_BackupType(Amazon.DynamoDBv2.BackupType value) { - return ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S10_BackupType(value); + return ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S10_BackupType((Amazon.DynamoDBv2.BackupType)value); } public static System.DateTime FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S13_BackupDetails__M22_BackupCreationDateTime(Dafny.ISequence value) { @@ -6970,7 +6970,7 @@ public static System.DateTime FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S13_B } public static Dafny.ISequence ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S13_BackupDetails__M22_BackupCreationDateTime(System.DateTime value) { - return ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S22_BackupCreationDateTime(value); + return ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S22_BackupCreationDateTime((System.DateTime)value); } public static System.DateTime? FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S13_BackupDetails__M20_BackupExpiryDateTime(Wrappers_Compile._IOption> value) { @@ -6986,7 +6986,7 @@ public static Amazon.DynamoDBv2.Model.Replica FromDafny_N3_com__N9_amazonaws__N8 } public static software.amazon.cryptography.services.dynamodb.internaldafny.types._IReplica ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S11_ReplicaList__M6_member(Amazon.DynamoDBv2.Model.Replica value) { - return ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S7_Replica(value); + return ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S7_Replica((Amazon.DynamoDBv2.Model.Replica)value); } public static System.Collections.Generic.List FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S22_GlobalTableDescription__M16_ReplicationGroup(Wrappers_Compile._IOption> value) { @@ -7034,7 +7034,7 @@ public static Amazon.DynamoDBv2.Model.AttributeDefinition FromDafny_N3_com__N9_a } public static software.amazon.cryptography.services.dynamodb.internaldafny.types._IAttributeDefinition ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S20_AttributeDefinitions__M6_member(Amazon.DynamoDBv2.Model.AttributeDefinition value) { - return ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S19_AttributeDefinition(value); + return ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S19_AttributeDefinition((Amazon.DynamoDBv2.Model.AttributeDefinition)value); } public static Amazon.DynamoDBv2.Model.KeySchemaElement FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S9_KeySchema__M6_member(software.amazon.cryptography.services.dynamodb.internaldafny.types._IKeySchemaElement value) { @@ -7042,7 +7042,7 @@ public static Amazon.DynamoDBv2.Model.KeySchemaElement FromDafny_N3_com__N9_amaz } public static software.amazon.cryptography.services.dynamodb.internaldafny.types._IKeySchemaElement ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S9_KeySchema__M6_member(Amazon.DynamoDBv2.Model.KeySchemaElement value) { - return ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S16_KeySchemaElement(value); + return ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S16_KeySchemaElement((Amazon.DynamoDBv2.Model.KeySchemaElement)value); } public static Amazon.DynamoDBv2.Model.LocalSecondaryIndex FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S23_LocalSecondaryIndexList__M6_member(software.amazon.cryptography.services.dynamodb.internaldafny.types._ILocalSecondaryIndex value) { @@ -7050,7 +7050,7 @@ public static Amazon.DynamoDBv2.Model.LocalSecondaryIndex FromDafny_N3_com__N9_a } public static software.amazon.cryptography.services.dynamodb.internaldafny.types._ILocalSecondaryIndex ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S23_LocalSecondaryIndexList__M6_member(Amazon.DynamoDBv2.Model.LocalSecondaryIndex value) { - return ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S19_LocalSecondaryIndex(value); + return ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S19_LocalSecondaryIndex((Amazon.DynamoDBv2.Model.LocalSecondaryIndex)value); } public static Amazon.DynamoDBv2.Model.GlobalSecondaryIndex FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S24_GlobalSecondaryIndexList__M6_member(software.amazon.cryptography.services.dynamodb.internaldafny.types._IGlobalSecondaryIndex value) { @@ -7058,7 +7058,7 @@ public static Amazon.DynamoDBv2.Model.GlobalSecondaryIndex FromDafny_N3_com__N9_ } public static software.amazon.cryptography.services.dynamodb.internaldafny.types._IGlobalSecondaryIndex ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S24_GlobalSecondaryIndexList__M6_member(Amazon.DynamoDBv2.Model.GlobalSecondaryIndex value) { - return ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S20_GlobalSecondaryIndex(value); + return ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S20_GlobalSecondaryIndex((Amazon.DynamoDBv2.Model.GlobalSecondaryIndex)value); } public static long FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S21_ProvisionedThroughput__M17_ReadCapacityUnits(long value) { @@ -7066,7 +7066,7 @@ public static long FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S21_ProvisionedT } public static long ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S21_ProvisionedThroughput__M17_ReadCapacityUnits(long value) { - return ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S18_PositiveLongObject(value); + return ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S18_PositiveLongObject((long)value); } public static long FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S21_ProvisionedThroughput__M18_WriteCapacityUnits(long value) { @@ -7074,7 +7074,7 @@ public static long FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S21_ProvisionedT } public static long ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S21_ProvisionedThroughput__M18_WriteCapacityUnits(long value) { - return ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S18_PositiveLongObject(value); + return ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S18_PositiveLongObject((long)value); } public static bool FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S19_StreamSpecification__M13_StreamEnabled(bool value) { @@ -7082,7 +7082,7 @@ public static bool FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S19_StreamSpecif } public static bool ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S19_StreamSpecification__M13_StreamEnabled(bool value) { - return ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S13_StreamEnabled(value); + return ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S13_StreamEnabled((bool)value); } public static Amazon.DynamoDBv2.StreamViewType FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S19_StreamSpecification__M14_StreamViewType(Wrappers_Compile._IOption value) { @@ -7122,7 +7122,7 @@ public static Amazon.DynamoDBv2.Model.Tag FromDafny_N3_com__N9_amazonaws__N8_dyn } public static software.amazon.cryptography.services.dynamodb.internaldafny.types._ITag ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S7_TagList__M6_member(Amazon.DynamoDBv2.Model.Tag value) { - return ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S3_Tag(value); + return ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S3_Tag((Amazon.DynamoDBv2.Model.Tag)value); } public static long? FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S18_OnDemandThroughput__M19_MaxReadRequestUnits(Wrappers_Compile._IOption value) { @@ -7362,7 +7362,7 @@ public static string FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S3_Key__M3_key } public static Dafny.ISequence ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S3_Key__M3_key(string value) { - return ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S13_AttributeName(value); + return ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S13_AttributeName((string)value); } public static Amazon.DynamoDBv2.Model.AttributeValue FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S3_Key__M5_value(software.amazon.cryptography.services.dynamodb.internaldafny.types._IAttributeValue value) { @@ -7370,7 +7370,7 @@ public static Amazon.DynamoDBv2.Model.AttributeValue FromDafny_N3_com__N9_amazon } public static software.amazon.cryptography.services.dynamodb.internaldafny.types._IAttributeValue ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S3_Key__M5_value(Amazon.DynamoDBv2.Model.AttributeValue value) { - return ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S14_AttributeValue(value); + return ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S14_AttributeValue((Amazon.DynamoDBv2.Model.AttributeValue)value); } public static string FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S20_ExpectedAttributeMap__M3_key(Dafny.ISequence value) { @@ -7378,7 +7378,7 @@ public static string FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S20_ExpectedAt } public static Dafny.ISequence ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S20_ExpectedAttributeMap__M3_key(string value) { - return ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S13_AttributeName(value); + return ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S13_AttributeName((string)value); } public static Amazon.DynamoDBv2.Model.ExpectedAttributeValue FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S20_ExpectedAttributeMap__M5_value(software.amazon.cryptography.services.dynamodb.internaldafny.types._IExpectedAttributeValue value) { @@ -7386,7 +7386,7 @@ public static Amazon.DynamoDBv2.Model.ExpectedAttributeValue FromDafny_N3_com__N } public static software.amazon.cryptography.services.dynamodb.internaldafny.types._IExpectedAttributeValue ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S20_ExpectedAttributeMap__M5_value(Amazon.DynamoDBv2.Model.ExpectedAttributeValue value) { - return ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S22_ExpectedAttributeValue(value); + return ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S22_ExpectedAttributeValue((Amazon.DynamoDBv2.Model.ExpectedAttributeValue)value); } public static string FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S26_ExpressionAttributeNameMap__M3_key(Dafny.ISequence value) { @@ -7394,7 +7394,7 @@ public static string FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S26_Expression } public static Dafny.ISequence ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S26_ExpressionAttributeNameMap__M3_key(string value) { - return ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S31_ExpressionAttributeNameVariable(value); + return ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S31_ExpressionAttributeNameVariable((string)value); } public static string FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S26_ExpressionAttributeNameMap__M5_value(Dafny.ISequence value) { @@ -7402,7 +7402,7 @@ public static string FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S26_Expression } public static Dafny.ISequence ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S26_ExpressionAttributeNameMap__M5_value(string value) { - return ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S13_AttributeName(value); + return ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S13_AttributeName((string)value); } public static string FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S27_ExpressionAttributeValueMap__M3_key(Dafny.ISequence value) { @@ -7410,7 +7410,7 @@ public static string FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S27_Expression } public static Dafny.ISequence ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S27_ExpressionAttributeValueMap__M3_key(string value) { - return ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S32_ExpressionAttributeValueVariable(value); + return ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S32_ExpressionAttributeValueVariable((string)value); } public static Amazon.DynamoDBv2.Model.AttributeValue FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S27_ExpressionAttributeValueMap__M5_value(software.amazon.cryptography.services.dynamodb.internaldafny.types._IAttributeValue value) { @@ -7418,7 +7418,7 @@ public static Amazon.DynamoDBv2.Model.AttributeValue FromDafny_N3_com__N9_amazon } public static software.amazon.cryptography.services.dynamodb.internaldafny.types._IAttributeValue ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S27_ExpressionAttributeValueMap__M5_value(Amazon.DynamoDBv2.Model.AttributeValue value) { - return ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S14_AttributeValue(value); + return ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S14_AttributeValue((Amazon.DynamoDBv2.Model.AttributeValue)value); } public static string FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S16_ConsumedCapacity__M9_TableName(Wrappers_Compile._IOption> value) { @@ -7498,7 +7498,7 @@ public static Amazon.DynamoDBv2.ContinuousBackupsStatus FromDafny_N3_com__N9_ama } public static software.amazon.cryptography.services.dynamodb.internaldafny.types._IContinuousBackupsStatus ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S28_ContinuousBackupsDescription__M23_ContinuousBackupsStatus(Amazon.DynamoDBv2.ContinuousBackupsStatus value) { - return ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S23_ContinuousBackupsStatus(value); + return ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S23_ContinuousBackupsStatus((Amazon.DynamoDBv2.ContinuousBackupsStatus)value); } public static Amazon.DynamoDBv2.Model.PointInTimeRecoveryDescription FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S28_ContinuousBackupsDescription__M30_PointInTimeRecoveryDescription(Wrappers_Compile._IOption value) { @@ -7514,7 +7514,7 @@ public static string FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S27_Contributo } public static Dafny.ISequence ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S27_ContributorInsightsRuleList__M6_member(string value) { - return ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S23_ContributorInsightsRule(value); + return ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S23_ContributorInsightsRule((string)value); } public static string FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S16_FailureException__M13_ExceptionName(Wrappers_Compile._IOption> value) { @@ -7538,7 +7538,7 @@ public static Amazon.DynamoDBv2.Model.Endpoint FromDafny_N3_com__N9_amazonaws__N } public static software.amazon.cryptography.services.dynamodb.internaldafny.types._IEndpoint ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S9_Endpoints__M6_member(Amazon.DynamoDBv2.Model.Endpoint value) { - return ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S8_Endpoint(value); + return ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S8_Endpoint((Amazon.DynamoDBv2.Model.Endpoint)value); } public static string FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S17_ExportDescription__M9_ExportArn(Wrappers_Compile._IOption> value) { @@ -7714,7 +7714,7 @@ public static Amazon.DynamoDBv2.Model.ReplicaSettingsDescription FromDafny_N3_co } public static software.amazon.cryptography.services.dynamodb.internaldafny.types._IReplicaSettingsDescription ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S30_ReplicaSettingsDescriptionList__M6_member(Amazon.DynamoDBv2.Model.ReplicaSettingsDescription value) { - return ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S26_ReplicaSettingsDescription(value); + return ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S26_ReplicaSettingsDescription((Amazon.DynamoDBv2.Model.ReplicaSettingsDescription)value); } public static string FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S22_ImportTableDescription__M9_ImportArn(Wrappers_Compile._IOption> value) { @@ -7874,7 +7874,7 @@ public static Amazon.DynamoDBv2.Model.KinesisDataStreamDestination FromDafny_N3_ } public static software.amazon.cryptography.services.dynamodb.internaldafny.types._IKinesisDataStreamDestination ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S29_KinesisDataStreamDestinations__M6_member(Amazon.DynamoDBv2.Model.KinesisDataStreamDestination value) { - return ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S28_KinesisDataStreamDestination(value); + return ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S28_KinesisDataStreamDestination((Amazon.DynamoDBv2.Model.KinesisDataStreamDestination)value); } public static string FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S27_TableAutoScalingDescription__M9_TableName(Wrappers_Compile._IOption> value) { @@ -7930,7 +7930,7 @@ public static Amazon.DynamoDBv2.Model.AttributeValue FromDafny_N3_com__N9_amazon } public static software.amazon.cryptography.services.dynamodb.internaldafny.types._IAttributeValue ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S27_PreparedStatementParameters__M6_member(Amazon.DynamoDBv2.Model.AttributeValue value) { - return ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S14_AttributeValue(value); + return ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S14_AttributeValue((Amazon.DynamoDBv2.Model.AttributeValue)value); } public static System.Collections.Generic.Dictionary FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S8_ItemList__M6_member(Dafny.IMap, software.amazon.cryptography.services.dynamodb.internaldafny.types._IAttributeValue> value) { @@ -7938,7 +7938,7 @@ public static software.amazon.cryptography.services.dynamodb.internaldafny.types } public static Dafny.IMap, software.amazon.cryptography.services.dynamodb.internaldafny.types._IAttributeValue> ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S8_ItemList__M6_member(System.Collections.Generic.Dictionary value) { - return ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S12_AttributeMap(value); + return ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S12_AttributeMap((System.Collections.Generic.Dictionary)value); } public static Amazon.DynamoDBv2.Model.ParameterizedStatement FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S23_ParameterizedStatements__M6_member(software.amazon.cryptography.services.dynamodb.internaldafny.types._IParameterizedStatement value) { @@ -7946,7 +7946,7 @@ public static Amazon.DynamoDBv2.Model.ParameterizedStatement FromDafny_N3_com__N } public static software.amazon.cryptography.services.dynamodb.internaldafny.types._IParameterizedStatement ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S23_ParameterizedStatements__M6_member(Amazon.DynamoDBv2.Model.ParameterizedStatement value) { - return ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S22_ParameterizedStatement(value); + return ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S22_ParameterizedStatement((Amazon.DynamoDBv2.Model.ParameterizedStatement)value); } public static Amazon.DynamoDBv2.Model.ItemResponse FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S16_ItemResponseList__M6_member(software.amazon.cryptography.services.dynamodb.internaldafny.types._IItemResponse value) { @@ -7954,7 +7954,7 @@ public static Amazon.DynamoDBv2.Model.ItemResponse FromDafny_N3_com__N9_amazonaw } public static software.amazon.cryptography.services.dynamodb.internaldafny.types._IItemResponse ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S16_ItemResponseList__M6_member(Amazon.DynamoDBv2.Model.ItemResponse value) { - return ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S12_ItemResponse(value); + return ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S12_ItemResponse((Amazon.DynamoDBv2.Model.ItemResponse)value); } public static System.DateTime? FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S30_IncrementalExportSpecification__M14_ExportFromTime(Wrappers_Compile._IOption> value) { @@ -7986,7 +7986,7 @@ public static string FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S17_AttributeN } public static Dafny.ISequence ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S17_AttributeNameList__M6_member(string value) { - return ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S13_AttributeName(value); + return ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S13_AttributeName((string)value); } public static string FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S14_S3BucketSource__M13_S3BucketOwner(Wrappers_Compile._IOption> value) { @@ -8002,7 +8002,7 @@ public static string FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S14_S3BucketSo } public static Dafny.ISequence ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S14_S3BucketSource__M8_S3Bucket(string value) { - return ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S8_S3Bucket(value); + return ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S8_S3Bucket((string)value); } public static string FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S14_S3BucketSource__M11_S3KeyPrefix(Wrappers_Compile._IOption> value) { @@ -8026,7 +8026,7 @@ public static string FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S23_TableCreat } public static Dafny.ISequence ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S23_TableCreationParameters__M9_TableName(string value) { - return ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S9_TableName(value); + return ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S9_TableName((string)value); } public static System.Collections.Generic.List FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S23_TableCreationParameters__M20_AttributeDefinitions(Dafny.ISequence value) { @@ -8034,7 +8034,7 @@ public static Dafny.ISequence ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S } public static Dafny.ISequence ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S23_TableCreationParameters__M20_AttributeDefinitions(System.Collections.Generic.List value) { - return ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S20_AttributeDefinitions(value); + return ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S20_AttributeDefinitions((System.Collections.Generic.List)value); } public static System.Collections.Generic.List FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S23_TableCreationParameters__M9_KeySchema(Dafny.ISequence value) { @@ -8042,7 +8042,7 @@ public static Dafny.ISequence ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S } public static Dafny.ISequence ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S23_TableCreationParameters__M9_KeySchema(System.Collections.Generic.List value) { - return ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S9_KeySchema(value); + return ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S9_KeySchema((System.Collections.Generic.List)value); } public static Amazon.DynamoDBv2.BillingMode FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S23_TableCreationParameters__M11_BillingMode(Wrappers_Compile._IOption value) { @@ -8090,7 +8090,7 @@ public static Amazon.DynamoDBv2.Model.BackupSummary FromDafny_N3_com__N9_amazona } public static software.amazon.cryptography.services.dynamodb.internaldafny.types._IBackupSummary ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S15_BackupSummaries__M6_member(Amazon.DynamoDBv2.Model.BackupSummary value) { - return ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S13_BackupSummary(value); + return ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S13_BackupSummary((Amazon.DynamoDBv2.Model.BackupSummary)value); } public static Amazon.DynamoDBv2.Model.ContributorInsightsSummary FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S28_ContributorInsightsSummaries__M6_member(software.amazon.cryptography.services.dynamodb.internaldafny.types._IContributorInsightsSummary value) { @@ -8098,7 +8098,7 @@ public static Amazon.DynamoDBv2.Model.ContributorInsightsSummary FromDafny_N3_co } public static software.amazon.cryptography.services.dynamodb.internaldafny.types._IContributorInsightsSummary ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S28_ContributorInsightsSummaries__M6_member(Amazon.DynamoDBv2.Model.ContributorInsightsSummary value) { - return ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S26_ContributorInsightsSummary(value); + return ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S26_ContributorInsightsSummary((Amazon.DynamoDBv2.Model.ContributorInsightsSummary)value); } public static Amazon.DynamoDBv2.Model.ExportSummary FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S15_ExportSummaries__M6_member(software.amazon.cryptography.services.dynamodb.internaldafny.types._IExportSummary value) { @@ -8106,7 +8106,7 @@ public static Amazon.DynamoDBv2.Model.ExportSummary FromDafny_N3_com__N9_amazona } public static software.amazon.cryptography.services.dynamodb.internaldafny.types._IExportSummary ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S15_ExportSummaries__M6_member(Amazon.DynamoDBv2.Model.ExportSummary value) { - return ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S13_ExportSummary(value); + return ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S13_ExportSummary((Amazon.DynamoDBv2.Model.ExportSummary)value); } public static Amazon.DynamoDBv2.Model.GlobalTable FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S15_GlobalTableList__M6_member(software.amazon.cryptography.services.dynamodb.internaldafny.types._IGlobalTable value) { @@ -8114,7 +8114,7 @@ public static Amazon.DynamoDBv2.Model.GlobalTable FromDafny_N3_com__N9_amazonaws } public static software.amazon.cryptography.services.dynamodb.internaldafny.types._IGlobalTable ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S15_GlobalTableList__M6_member(Amazon.DynamoDBv2.Model.GlobalTable value) { - return ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S11_GlobalTable(value); + return ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S11_GlobalTable((Amazon.DynamoDBv2.Model.GlobalTable)value); } public static Amazon.DynamoDBv2.Model.ImportSummary FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S17_ImportSummaryList__M6_member(software.amazon.cryptography.services.dynamodb.internaldafny.types._IImportSummary value) { @@ -8122,7 +8122,7 @@ public static Amazon.DynamoDBv2.Model.ImportSummary FromDafny_N3_com__N9_amazona } public static software.amazon.cryptography.services.dynamodb.internaldafny.types._IImportSummary ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S17_ImportSummaryList__M6_member(Amazon.DynamoDBv2.Model.ImportSummary value) { - return ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S13_ImportSummary(value); + return ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S13_ImportSummary((Amazon.DynamoDBv2.Model.ImportSummary)value); } public static string FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S13_TableNameList__M6_member(Dafny.ISequence value) { @@ -8130,7 +8130,7 @@ public static string FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S13_TableNameL } public static Dafny.ISequence ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S13_TableNameList__M6_member(string value) { - return ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S9_TableName(value); + return ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S9_TableName((string)value); } public static string FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S24_PutItemInputAttributeMap__M3_key(Dafny.ISequence value) { @@ -8138,7 +8138,7 @@ public static string FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S24_PutItemInp } public static Dafny.ISequence ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S24_PutItemInputAttributeMap__M3_key(string value) { - return ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S13_AttributeName(value); + return ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S13_AttributeName((string)value); } public static Amazon.DynamoDBv2.Model.AttributeValue FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S24_PutItemInputAttributeMap__M5_value(software.amazon.cryptography.services.dynamodb.internaldafny.types._IAttributeValue value) { @@ -8146,7 +8146,7 @@ public static Amazon.DynamoDBv2.Model.AttributeValue FromDafny_N3_com__N9_amazon } public static software.amazon.cryptography.services.dynamodb.internaldafny.types._IAttributeValue ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S24_PutItemInputAttributeMap__M5_value(Amazon.DynamoDBv2.Model.AttributeValue value) { - return ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S14_AttributeValue(value); + return ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S14_AttributeValue((Amazon.DynamoDBv2.Model.AttributeValue)value); } public static string FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S13_KeyConditions__M3_key(Dafny.ISequence value) { @@ -8154,7 +8154,7 @@ public static string FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S13_KeyConditi } public static Dafny.ISequence ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S13_KeyConditions__M3_key(string value) { - return ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S13_AttributeName(value); + return ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S13_AttributeName((string)value); } public static Amazon.DynamoDBv2.Model.Condition FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S13_KeyConditions__M5_value(software.amazon.cryptography.services.dynamodb.internaldafny.types._ICondition value) { @@ -8162,7 +8162,7 @@ public static Amazon.DynamoDBv2.Model.Condition FromDafny_N3_com__N9_amazonaws__ } public static software.amazon.cryptography.services.dynamodb.internaldafny.types._ICondition ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S13_KeyConditions__M5_value(Amazon.DynamoDBv2.Model.Condition value) { - return ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S9_Condition(value); + return ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S9_Condition((Amazon.DynamoDBv2.Model.Condition)value); } public static string FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S18_FilterConditionMap__M3_key(Dafny.ISequence value) { @@ -8170,7 +8170,7 @@ public static string FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S18_FilterCond } public static Dafny.ISequence ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S18_FilterConditionMap__M3_key(string value) { - return ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S13_AttributeName(value); + return ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S13_AttributeName((string)value); } public static Amazon.DynamoDBv2.Model.Condition FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S18_FilterConditionMap__M5_value(software.amazon.cryptography.services.dynamodb.internaldafny.types._ICondition value) { @@ -8178,7 +8178,7 @@ public static Amazon.DynamoDBv2.Model.Condition FromDafny_N3_com__N9_amazonaws__ } public static software.amazon.cryptography.services.dynamodb.internaldafny.types._ICondition ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S18_FilterConditionMap__M5_value(Amazon.DynamoDBv2.Model.Condition value) { - return ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S9_Condition(value); + return ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S9_Condition((Amazon.DynamoDBv2.Model.Condition)value); } public static Amazon.DynamoDBv2.Model.TransactGetItem FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S19_TransactGetItemList__M6_member(software.amazon.cryptography.services.dynamodb.internaldafny.types._ITransactGetItem value) { @@ -8186,7 +8186,7 @@ public static Amazon.DynamoDBv2.Model.TransactGetItem FromDafny_N3_com__N9_amazo } public static software.amazon.cryptography.services.dynamodb.internaldafny.types._ITransactGetItem ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S19_TransactGetItemList__M6_member(Amazon.DynamoDBv2.Model.TransactGetItem value) { - return ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S15_TransactGetItem(value); + return ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S15_TransactGetItem((Amazon.DynamoDBv2.Model.TransactGetItem)value); } public static Amazon.DynamoDBv2.Model.CancellationReason FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S22_CancellationReasonList__M6_member(software.amazon.cryptography.services.dynamodb.internaldafny.types._ICancellationReason value) { @@ -8194,7 +8194,7 @@ public static Amazon.DynamoDBv2.Model.CancellationReason FromDafny_N3_com__N9_am } public static software.amazon.cryptography.services.dynamodb.internaldafny.types._ICancellationReason ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S22_CancellationReasonList__M6_member(Amazon.DynamoDBv2.Model.CancellationReason value) { - return ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S18_CancellationReason(value); + return ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S18_CancellationReason((Amazon.DynamoDBv2.Model.CancellationReason)value); } public static Amazon.DynamoDBv2.Model.TransactWriteItem FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S21_TransactWriteItemList__M6_member(software.amazon.cryptography.services.dynamodb.internaldafny.types._ITransactWriteItem value) { @@ -8202,7 +8202,7 @@ public static Amazon.DynamoDBv2.Model.TransactWriteItem FromDafny_N3_com__N9_ama } public static software.amazon.cryptography.services.dynamodb.internaldafny.types._ITransactWriteItem ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S21_TransactWriteItemList__M6_member(Amazon.DynamoDBv2.Model.TransactWriteItem value) { - return ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S17_TransactWriteItem(value); + return ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S17_TransactWriteItem((Amazon.DynamoDBv2.Model.TransactWriteItem)value); } public static string FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S10_TagKeyList__M6_member(Dafny.ISequence value) { @@ -8210,7 +8210,7 @@ public static string FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S10_TagKeyList } public static Dafny.ISequence ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S10_TagKeyList__M6_member(string value) { - return ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S12_TagKeyString(value); + return ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S12_TagKeyString((string)value); } public static bool FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S32_PointInTimeRecoverySpecification__M26_PointInTimeRecoveryEnabled(bool value) { @@ -8218,7 +8218,7 @@ public static bool FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S32_PointInTimeR } public static bool ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S32_PointInTimeRecoverySpecification__M26_PointInTimeRecoveryEnabled(bool value) { - return ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S13_BooleanObject(value); + return ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S13_BooleanObject((bool)value); } public static Amazon.DynamoDBv2.Model.ReplicaUpdate FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S17_ReplicaUpdateList__M6_member(software.amazon.cryptography.services.dynamodb.internaldafny.types._IReplicaUpdate value) { @@ -8226,7 +8226,7 @@ public static Amazon.DynamoDBv2.Model.ReplicaUpdate FromDafny_N3_com__N9_amazona } public static software.amazon.cryptography.services.dynamodb.internaldafny.types._IReplicaUpdate ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S17_ReplicaUpdateList__M6_member(Amazon.DynamoDBv2.Model.ReplicaUpdate value) { - return ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S13_ReplicaUpdate(value); + return ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S13_ReplicaUpdate((Amazon.DynamoDBv2.Model.ReplicaUpdate)value); } public static long? FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S25_AutoScalingSettingsUpdate__M12_MinimumUnits(Wrappers_Compile._IOption value) { @@ -8274,7 +8274,7 @@ public static Amazon.DynamoDBv2.Model.GlobalTableGlobalSecondaryIndexSettingsUpd } public static software.amazon.cryptography.services.dynamodb.internaldafny.types._IGlobalTableGlobalSecondaryIndexSettingsUpdate ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S49_GlobalTableGlobalSecondaryIndexSettingsUpdateList__M6_member(Amazon.DynamoDBv2.Model.GlobalTableGlobalSecondaryIndexSettingsUpdate value) { - return ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S45_GlobalTableGlobalSecondaryIndexSettingsUpdate(value); + return ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S45_GlobalTableGlobalSecondaryIndexSettingsUpdate((Amazon.DynamoDBv2.Model.GlobalTableGlobalSecondaryIndexSettingsUpdate)value); } public static Amazon.DynamoDBv2.Model.ReplicaSettingsUpdate FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S25_ReplicaSettingsUpdateList__M6_member(software.amazon.cryptography.services.dynamodb.internaldafny.types._IReplicaSettingsUpdate value) { @@ -8282,7 +8282,7 @@ public static Amazon.DynamoDBv2.Model.ReplicaSettingsUpdate FromDafny_N3_com__N9 } public static software.amazon.cryptography.services.dynamodb.internaldafny.types._IReplicaSettingsUpdate ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S25_ReplicaSettingsUpdateList__M6_member(Amazon.DynamoDBv2.Model.ReplicaSettingsUpdate value) { - return ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S21_ReplicaSettingsUpdate(value); + return ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S21_ReplicaSettingsUpdate((Amazon.DynamoDBv2.Model.ReplicaSettingsUpdate)value); } public static string FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S16_AttributeUpdates__M3_key(Dafny.ISequence value) { @@ -8290,7 +8290,7 @@ public static string FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S16_AttributeU } public static Dafny.ISequence ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S16_AttributeUpdates__M3_key(string value) { - return ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S13_AttributeName(value); + return ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S13_AttributeName((string)value); } public static Amazon.DynamoDBv2.Model.AttributeValueUpdate FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S16_AttributeUpdates__M5_value(software.amazon.cryptography.services.dynamodb.internaldafny.types._IAttributeValueUpdate value) { @@ -8298,7 +8298,7 @@ public static Amazon.DynamoDBv2.Model.AttributeValueUpdate FromDafny_N3_com__N9_ } public static software.amazon.cryptography.services.dynamodb.internaldafny.types._IAttributeValueUpdate ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S16_AttributeUpdates__M5_value(Amazon.DynamoDBv2.Model.AttributeValueUpdate value) { - return ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S20_AttributeValueUpdate(value); + return ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S20_AttributeValueUpdate((Amazon.DynamoDBv2.Model.AttributeValueUpdate)value); } public static Amazon.DynamoDBv2.ApproximateCreationDateTimePrecision FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S35_UpdateKinesisStreamingConfiguration__M36_ApproximateCreationDateTimePrecision(Wrappers_Compile._IOption value) { @@ -8314,7 +8314,7 @@ public static Amazon.DynamoDBv2.Model.GlobalSecondaryIndexUpdate FromDafny_N3_co } public static software.amazon.cryptography.services.dynamodb.internaldafny.types._IGlobalSecondaryIndexUpdate ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S30_GlobalSecondaryIndexUpdateList__M6_member(Amazon.DynamoDBv2.Model.GlobalSecondaryIndexUpdate value) { - return ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S26_GlobalSecondaryIndexUpdate(value); + return ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S26_GlobalSecondaryIndexUpdate((Amazon.DynamoDBv2.Model.GlobalSecondaryIndexUpdate)value); } public static Amazon.DynamoDBv2.Model.ReplicationGroupUpdate FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S26_ReplicationGroupUpdateList__M6_member(software.amazon.cryptography.services.dynamodb.internaldafny.types._IReplicationGroupUpdate value) { @@ -8322,7 +8322,7 @@ public static Amazon.DynamoDBv2.Model.ReplicationGroupUpdate FromDafny_N3_com__N } public static software.amazon.cryptography.services.dynamodb.internaldafny.types._IReplicationGroupUpdate ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S26_ReplicationGroupUpdateList__M6_member(Amazon.DynamoDBv2.Model.ReplicationGroupUpdate value) { - return ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S22_ReplicationGroupUpdate(value); + return ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S22_ReplicationGroupUpdate((Amazon.DynamoDBv2.Model.ReplicationGroupUpdate)value); } public static Amazon.DynamoDBv2.Model.GlobalSecondaryIndexAutoScalingUpdate FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S41_GlobalSecondaryIndexAutoScalingUpdateList__M6_member(software.amazon.cryptography.services.dynamodb.internaldafny.types._IGlobalSecondaryIndexAutoScalingUpdate value) { @@ -8330,7 +8330,7 @@ public static Amazon.DynamoDBv2.Model.GlobalSecondaryIndexAutoScalingUpdate From } public static software.amazon.cryptography.services.dynamodb.internaldafny.types._IGlobalSecondaryIndexAutoScalingUpdate ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S41_GlobalSecondaryIndexAutoScalingUpdateList__M6_member(Amazon.DynamoDBv2.Model.GlobalSecondaryIndexAutoScalingUpdate value) { - return ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S37_GlobalSecondaryIndexAutoScalingUpdate(value); + return ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S37_GlobalSecondaryIndexAutoScalingUpdate((Amazon.DynamoDBv2.Model.GlobalSecondaryIndexAutoScalingUpdate)value); } public static Amazon.DynamoDBv2.Model.ReplicaAutoScalingUpdate FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S28_ReplicaAutoScalingUpdateList__M6_member(software.amazon.cryptography.services.dynamodb.internaldafny.types._IReplicaAutoScalingUpdate value) { @@ -8338,7 +8338,7 @@ public static Amazon.DynamoDBv2.Model.ReplicaAutoScalingUpdate FromDafny_N3_com_ } public static software.amazon.cryptography.services.dynamodb.internaldafny.types._IReplicaAutoScalingUpdate ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S28_ReplicaAutoScalingUpdateList__M6_member(Amazon.DynamoDBv2.Model.ReplicaAutoScalingUpdate value) { - return ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S24_ReplicaAutoScalingUpdate(value); + return ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S24_ReplicaAutoScalingUpdate((Amazon.DynamoDBv2.Model.ReplicaAutoScalingUpdate)value); } public static bool FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S23_TimeToLiveSpecification__M7_Enabled(bool value) { @@ -8346,7 +8346,7 @@ public static bool FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S23_TimeToLiveSp } public static bool ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S23_TimeToLiveSpecification__M7_Enabled(bool value) { - return ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S17_TimeToLiveEnabled(value); + return ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S17_TimeToLiveEnabled((bool)value); } public static string FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S23_TimeToLiveSpecification__M13_AttributeName(Dafny.ISequence value) { @@ -8354,7 +8354,7 @@ public static string FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S23_TimeToLive } public static Dafny.ISequence ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S23_TimeToLiveSpecification__M13_AttributeName(string value) { - return ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S23_TimeToLiveAttributeName(value); + return ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S23_TimeToLiveAttributeName((string)value); } public static string FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S13_AttributeName(Dafny.ISequence value) { @@ -8373,8 +8373,8 @@ public static Amazon.DynamoDBv2.Model.BatchStatementRequest FromDafny_N3_com__N9 public static software.amazon.cryptography.services.dynamodb.internaldafny.types._IBatchStatementRequest ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S21_BatchStatementRequest(Amazon.DynamoDBv2.Model.BatchStatementRequest value) { - System.Collections.Generic.List var_parameters = value.Parameters; - bool? var_consistentRead = value.ConsistentRead; + System.Collections.Generic.List var_parameters = (System.Collections.Generic.List)value.Parameters; + bool? var_consistentRead = (bool?)value.ConsistentRead; return new software.amazon.cryptography.services.dynamodb.internaldafny.types.BatchStatementRequest(ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S21_BatchStatementRequest__M9_Statement(value.Statement), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S21_BatchStatementRequest__M10_Parameters(var_parameters), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S21_BatchStatementRequest__M14_ConsistentRead(var_consistentRead)); } public static Amazon.DynamoDBv2.Model.BatchStatementResponse FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S22_BatchStatementResponse(software.amazon.cryptography.services.dynamodb.internaldafny.types._IBatchStatementResponse value) @@ -8386,9 +8386,9 @@ public static Amazon.DynamoDBv2.Model.BatchStatementResponse FromDafny_N3_com__N public static software.amazon.cryptography.services.dynamodb.internaldafny.types._IBatchStatementResponse ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S22_BatchStatementResponse(Amazon.DynamoDBv2.Model.BatchStatementResponse value) { - Amazon.DynamoDBv2.Model.BatchStatementError var_error = value.Error; - string var_tableName = value.TableName; - System.Collections.Generic.Dictionary var_item = value.Item; + Amazon.DynamoDBv2.Model.BatchStatementError var_error = (Amazon.DynamoDBv2.Model.BatchStatementError)value.Error; + string var_tableName = (string)value.TableName; + System.Collections.Generic.Dictionary var_item = (System.Collections.Generic.Dictionary)value.Item; return new software.amazon.cryptography.services.dynamodb.internaldafny.types.BatchStatementResponse(ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S22_BatchStatementResponse__M5_Error(var_error), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S22_BatchStatementResponse__M9_TableName(var_tableName), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S22_BatchStatementResponse__M4_Item(var_item)); } public static Amazon.DynamoDBv2.Model.KeysAndAttributes FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S17_KeysAndAttributes(software.amazon.cryptography.services.dynamodb.internaldafny.types._IKeysAndAttributes value) @@ -8402,10 +8402,10 @@ public static Amazon.DynamoDBv2.Model.KeysAndAttributes FromDafny_N3_com__N9_ama public static software.amazon.cryptography.services.dynamodb.internaldafny.types._IKeysAndAttributes ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S17_KeysAndAttributes(Amazon.DynamoDBv2.Model.KeysAndAttributes value) { - System.Collections.Generic.List var_attributesToGet = value.AttributesToGet; - bool? var_consistentRead = value.ConsistentRead; - string var_projectionExpression = value.ProjectionExpression; - System.Collections.Generic.Dictionary var_expressionAttributeNames = value.ExpressionAttributeNames; + System.Collections.Generic.List var_attributesToGet = (System.Collections.Generic.List)value.AttributesToGet; + bool? var_consistentRead = (bool?)value.ConsistentRead; + string var_projectionExpression = (string)value.ProjectionExpression; + System.Collections.Generic.Dictionary var_expressionAttributeNames = (System.Collections.Generic.Dictionary)value.ExpressionAttributeNames; return new software.amazon.cryptography.services.dynamodb.internaldafny.types.KeysAndAttributes(ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S17_KeysAndAttributes__M4_Keys(value.Keys), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S17_KeysAndAttributes__M15_AttributesToGet(var_attributesToGet), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S17_KeysAndAttributes__M14_ConsistentRead(var_consistentRead), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S17_KeysAndAttributes__M20_ProjectionExpression(var_projectionExpression), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S17_KeysAndAttributes__M24_ExpressionAttributeNames(var_expressionAttributeNames)); } public static System.Collections.Generic.List FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S13_WriteRequests(Dafny.ISequence value) @@ -8479,7 +8479,7 @@ public static Amazon.DynamoDBv2.Model.Replica FromDafny_N3_com__N9_amazonaws__N8 public static software.amazon.cryptography.services.dynamodb.internaldafny.types._IReplica ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S7_Replica(Amazon.DynamoDBv2.Model.Replica value) { - string var_regionName = value.RegionName; + string var_regionName = (string)value.RegionName; return new software.amazon.cryptography.services.dynamodb.internaldafny.types.Replica(ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S7_Replica__M10_RegionName(var_regionName)); } public static System.Collections.Generic.List FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S22_ReplicaDescriptionList(Dafny.ISequence value) @@ -8559,8 +8559,8 @@ public static Amazon.DynamoDBv2.Model.GlobalSecondaryIndex FromDafny_N3_com__N9_ public static software.amazon.cryptography.services.dynamodb.internaldafny.types._IGlobalSecondaryIndex ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S20_GlobalSecondaryIndex(Amazon.DynamoDBv2.Model.GlobalSecondaryIndex value) { - Amazon.DynamoDBv2.Model.ProvisionedThroughput var_provisionedThroughput = value.ProvisionedThroughput; - Amazon.DynamoDBv2.Model.OnDemandThroughput var_onDemandThroughput = value.OnDemandThroughput; + Amazon.DynamoDBv2.Model.ProvisionedThroughput var_provisionedThroughput = (Amazon.DynamoDBv2.Model.ProvisionedThroughput)value.ProvisionedThroughput; + Amazon.DynamoDBv2.Model.OnDemandThroughput var_onDemandThroughput = (Amazon.DynamoDBv2.Model.OnDemandThroughput)value.OnDemandThroughput; return new software.amazon.cryptography.services.dynamodb.internaldafny.types.GlobalSecondaryIndex(ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S20_GlobalSecondaryIndex__M9_IndexName(value.IndexName), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S20_GlobalSecondaryIndex__M9_KeySchema(value.KeySchema), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S20_GlobalSecondaryIndex__M10_Projection(value.Projection), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S20_GlobalSecondaryIndex__M21_ProvisionedThroughput(var_provisionedThroughput), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S20_GlobalSecondaryIndex__M18_OnDemandThroughput(var_onDemandThroughput)); } public static bool FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S13_StreamEnabled(bool value) @@ -8667,11 +8667,11 @@ public static Amazon.DynamoDBv2.Model.ProvisionedThroughputDescription FromDafny public static software.amazon.cryptography.services.dynamodb.internaldafny.types._IProvisionedThroughputDescription ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S32_ProvisionedThroughputDescription(Amazon.DynamoDBv2.Model.ProvisionedThroughputDescription value) { - System.DateTime? var_lastIncreaseDateTime = value.LastIncreaseDateTime; - System.DateTime? var_lastDecreaseDateTime = value.LastDecreaseDateTime; - long? var_numberOfDecreasesToday = value.NumberOfDecreasesToday; - long? var_readCapacityUnits = value.ReadCapacityUnits; - long? var_writeCapacityUnits = value.WriteCapacityUnits; + System.DateTime? var_lastIncreaseDateTime = (System.DateTime?)value.LastIncreaseDateTime; + System.DateTime? var_lastDecreaseDateTime = (System.DateTime?)value.LastDecreaseDateTime; + long? var_numberOfDecreasesToday = (long?)value.NumberOfDecreasesToday; + long? var_readCapacityUnits = (long?)value.ReadCapacityUnits; + long? var_writeCapacityUnits = (long?)value.WriteCapacityUnits; return new software.amazon.cryptography.services.dynamodb.internaldafny.types.ProvisionedThroughputDescription(ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S32_ProvisionedThroughputDescription__M20_LastIncreaseDateTime(var_lastIncreaseDateTime), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S32_ProvisionedThroughputDescription__M20_LastDecreaseDateTime(var_lastDecreaseDateTime), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S32_ProvisionedThroughputDescription__M22_NumberOfDecreasesToday(var_numberOfDecreasesToday), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S32_ProvisionedThroughputDescription__M17_ReadCapacityUnits(var_readCapacityUnits), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S32_ProvisionedThroughputDescription__M18_WriteCapacityUnits(var_writeCapacityUnits)); } public static string FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S7_TableId(Dafny.ISequence value) @@ -8690,8 +8690,8 @@ public static Amazon.DynamoDBv2.Model.BillingModeSummary FromDafny_N3_com__N9_am public static software.amazon.cryptography.services.dynamodb.internaldafny.types._IBillingModeSummary ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S18_BillingModeSummary(Amazon.DynamoDBv2.Model.BillingModeSummary value) { - Amazon.DynamoDBv2.BillingMode var_billingMode = value.BillingMode; - System.DateTime? var_lastUpdateToPayPerRequestDateTime = value.LastUpdateToPayPerRequestDateTime; + Amazon.DynamoDBv2.BillingMode var_billingMode = (Amazon.DynamoDBv2.BillingMode)value.BillingMode; + System.DateTime? var_lastUpdateToPayPerRequestDateTime = (System.DateTime?)value.LastUpdateToPayPerRequestDateTime; return new software.amazon.cryptography.services.dynamodb.internaldafny.types.BillingModeSummary(ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S18_BillingModeSummary__M11_BillingMode(var_billingMode), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S18_BillingModeSummary__M33_LastUpdateToPayPerRequestDateTime(var_lastUpdateToPayPerRequestDateTime)); } public static System.Collections.Generic.List FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S34_LocalSecondaryIndexDescriptionList(Dafny.ISequence value) @@ -8720,8 +8720,8 @@ public static Amazon.DynamoDBv2.Model.RestoreSummary FromDafny_N3_com__N9_amazon public static software.amazon.cryptography.services.dynamodb.internaldafny.types._IRestoreSummary ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S14_RestoreSummary(Amazon.DynamoDBv2.Model.RestoreSummary value) { - string var_sourceBackupArn = value.SourceBackupArn; - string var_sourceTableArn = value.SourceTableArn; + string var_sourceBackupArn = (string)value.SourceBackupArn; + string var_sourceTableArn = (string)value.SourceTableArn; return new software.amazon.cryptography.services.dynamodb.internaldafny.types.RestoreSummary(ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S14_RestoreSummary__M15_SourceBackupArn(var_sourceBackupArn), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S14_RestoreSummary__M14_SourceTableArn(var_sourceTableArn), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S14_RestoreSummary__M15_RestoreDateTime(value.RestoreDateTime), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S14_RestoreSummary__M17_RestoreInProgress(value.RestoreInProgress)); } public static Amazon.DynamoDBv2.Model.SSEDescription FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S14_SSEDescription(software.amazon.cryptography.services.dynamodb.internaldafny.types._ISSEDescription value) @@ -8734,10 +8734,10 @@ public static Amazon.DynamoDBv2.Model.SSEDescription FromDafny_N3_com__N9_amazon public static software.amazon.cryptography.services.dynamodb.internaldafny.types._ISSEDescription ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S14_SSEDescription(Amazon.DynamoDBv2.Model.SSEDescription value) { - Amazon.DynamoDBv2.SSEStatus var_status = value.Status; - Amazon.DynamoDBv2.SSEType var_sSEType = value.SSEType; - string var_kMSMasterKeyArn = value.KMSMasterKeyArn; - System.DateTime? var_inaccessibleEncryptionDateTime = value.InaccessibleEncryptionDateTime; + Amazon.DynamoDBv2.SSEStatus var_status = (Amazon.DynamoDBv2.SSEStatus)value.Status; + Amazon.DynamoDBv2.SSEType var_sSEType = (Amazon.DynamoDBv2.SSEType)value.SSEType; + string var_kMSMasterKeyArn = (string)value.KMSMasterKeyArn; + System.DateTime? var_inaccessibleEncryptionDateTime = (System.DateTime?)value.InaccessibleEncryptionDateTime; return new software.amazon.cryptography.services.dynamodb.internaldafny.types.SSEDescription(ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S14_SSEDescription__M6_Status(var_status), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S14_SSEDescription__M7_SSEType(var_sSEType), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S14_SSEDescription__M15_KMSMasterKeyArn(var_kMSMasterKeyArn), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S14_SSEDescription__M30_InaccessibleEncryptionDateTime(var_inaccessibleEncryptionDateTime)); } public static Amazon.DynamoDBv2.Model.ArchivalSummary FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S15_ArchivalSummary(software.amazon.cryptography.services.dynamodb.internaldafny.types._IArchivalSummary value) @@ -8749,9 +8749,9 @@ public static Amazon.DynamoDBv2.Model.ArchivalSummary FromDafny_N3_com__N9_amazo public static software.amazon.cryptography.services.dynamodb.internaldafny.types._IArchivalSummary ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S15_ArchivalSummary(Amazon.DynamoDBv2.Model.ArchivalSummary value) { - System.DateTime? var_archivalDateTime = value.ArchivalDateTime; - string var_archivalReason = value.ArchivalReason; - string var_archivalBackupArn = value.ArchivalBackupArn; + System.DateTime? var_archivalDateTime = (System.DateTime?)value.ArchivalDateTime; + string var_archivalReason = (string)value.ArchivalReason; + string var_archivalBackupArn = (string)value.ArchivalBackupArn; return new software.amazon.cryptography.services.dynamodb.internaldafny.types.ArchivalSummary(ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S15_ArchivalSummary__M16_ArchivalDateTime(var_archivalDateTime), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S15_ArchivalSummary__M14_ArchivalReason(var_archivalReason), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S15_ArchivalSummary__M17_ArchivalBackupArn(var_archivalBackupArn)); } public static Amazon.DynamoDBv2.Model.TableClassSummary FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S17_TableClassSummary(software.amazon.cryptography.services.dynamodb.internaldafny.types._ITableClassSummary value) @@ -8762,8 +8762,8 @@ public static Amazon.DynamoDBv2.Model.TableClassSummary FromDafny_N3_com__N9_ama public static software.amazon.cryptography.services.dynamodb.internaldafny.types._ITableClassSummary ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S17_TableClassSummary(Amazon.DynamoDBv2.Model.TableClassSummary value) { - Amazon.DynamoDBv2.TableClass var_tableClass = value.TableClass; - System.DateTime? var_lastUpdateDateTime = value.LastUpdateDateTime; + Amazon.DynamoDBv2.TableClass var_tableClass = (Amazon.DynamoDBv2.TableClass)value.TableClass; + System.DateTime? var_lastUpdateDateTime = (System.DateTime?)value.LastUpdateDateTime; return new software.amazon.cryptography.services.dynamodb.internaldafny.types.TableClassSummary(ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S17_TableClassSummary__M10_TableClass(var_tableClass), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S17_TableClassSummary__M18_LastUpdateDateTime(var_lastUpdateDateTime)); } public static Amazon.DynamoDBv2.Model.SourceTableDetails FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S18_SourceTableDetails(software.amazon.cryptography.services.dynamodb.internaldafny.types._ISourceTableDetails value) @@ -8782,11 +8782,11 @@ public static Amazon.DynamoDBv2.Model.SourceTableDetails FromDafny_N3_com__N9_am public static software.amazon.cryptography.services.dynamodb.internaldafny.types._ISourceTableDetails ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S18_SourceTableDetails(Amazon.DynamoDBv2.Model.SourceTableDetails value) { - string var_tableArn = value.TableArn; - long? var_tableSizeBytes = value.TableSizeBytes; - Amazon.DynamoDBv2.Model.OnDemandThroughput var_onDemandThroughput = value.OnDemandThroughput; - long? var_itemCount = value.ItemCount; - Amazon.DynamoDBv2.BillingMode var_billingMode = value.BillingMode; + string var_tableArn = (string)value.TableArn; + long? var_tableSizeBytes = (long?)value.TableSizeBytes; + Amazon.DynamoDBv2.Model.OnDemandThroughput var_onDemandThroughput = (Amazon.DynamoDBv2.Model.OnDemandThroughput)value.OnDemandThroughput; + long? var_itemCount = (long?)value.ItemCount; + Amazon.DynamoDBv2.BillingMode var_billingMode = (Amazon.DynamoDBv2.BillingMode)value.BillingMode; return new software.amazon.cryptography.services.dynamodb.internaldafny.types.SourceTableDetails(ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S18_SourceTableDetails__M9_TableName(value.TableName), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S18_SourceTableDetails__M7_TableId(value.TableId), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S18_SourceTableDetails__M8_TableArn(var_tableArn), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S18_SourceTableDetails__M14_TableSizeBytes(var_tableSizeBytes), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S18_SourceTableDetails__M9_KeySchema(value.KeySchema), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S18_SourceTableDetails__M21_TableCreationDateTime(value.TableCreationDateTime), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S18_SourceTableDetails__M21_ProvisionedThroughput(value.ProvisionedThroughput), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S18_SourceTableDetails__M18_OnDemandThroughput(var_onDemandThroughput), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S18_SourceTableDetails__M9_ItemCount(var_itemCount), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S18_SourceTableDetails__M11_BillingMode(var_billingMode)); } public static Amazon.DynamoDBv2.Model.SourceTableFeatureDetails FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S25_SourceTableFeatureDetails(software.amazon.cryptography.services.dynamodb.internaldafny.types._ISourceTableFeatureDetails value) @@ -8800,11 +8800,11 @@ public static Amazon.DynamoDBv2.Model.SourceTableFeatureDetails FromDafny_N3_com public static software.amazon.cryptography.services.dynamodb.internaldafny.types._ISourceTableFeatureDetails ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S25_SourceTableFeatureDetails(Amazon.DynamoDBv2.Model.SourceTableFeatureDetails value) { - System.Collections.Generic.List var_localSecondaryIndexes = value.LocalSecondaryIndexes; - System.Collections.Generic.List var_globalSecondaryIndexes = value.GlobalSecondaryIndexes; - Amazon.DynamoDBv2.Model.StreamSpecification var_streamDescription = value.StreamDescription; - Amazon.DynamoDBv2.Model.TimeToLiveDescription var_timeToLiveDescription = value.TimeToLiveDescription; - Amazon.DynamoDBv2.Model.SSEDescription var_sSEDescription = value.SSEDescription; + System.Collections.Generic.List var_localSecondaryIndexes = (System.Collections.Generic.List)value.LocalSecondaryIndexes; + System.Collections.Generic.List var_globalSecondaryIndexes = (System.Collections.Generic.List)value.GlobalSecondaryIndexes; + Amazon.DynamoDBv2.Model.StreamSpecification var_streamDescription = (Amazon.DynamoDBv2.Model.StreamSpecification)value.StreamDescription; + Amazon.DynamoDBv2.Model.TimeToLiveDescription var_timeToLiveDescription = (Amazon.DynamoDBv2.Model.TimeToLiveDescription)value.TimeToLiveDescription; + Amazon.DynamoDBv2.Model.SSEDescription var_sSEDescription = (Amazon.DynamoDBv2.Model.SSEDescription)value.SSEDescription; return new software.amazon.cryptography.services.dynamodb.internaldafny.types.SourceTableFeatureDetails(ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S25_SourceTableFeatureDetails__M21_LocalSecondaryIndexes(var_localSecondaryIndexes), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S25_SourceTableFeatureDetails__M22_GlobalSecondaryIndexes(var_globalSecondaryIndexes), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S25_SourceTableFeatureDetails__M17_StreamDescription(var_streamDescription), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S25_SourceTableFeatureDetails__M21_TimeToLiveDescription(var_timeToLiveDescription), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S25_SourceTableFeatureDetails__M14_SSEDescription(var_sSEDescription)); } public static Amazon.DynamoDBv2.Model.ExpectedAttributeValue FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S22_ExpectedAttributeValue(software.amazon.cryptography.services.dynamodb.internaldafny.types._IExpectedAttributeValue value) @@ -8817,10 +8817,10 @@ public static Amazon.DynamoDBv2.Model.ExpectedAttributeValue FromDafny_N3_com__N public static software.amazon.cryptography.services.dynamodb.internaldafny.types._IExpectedAttributeValue ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S22_ExpectedAttributeValue(Amazon.DynamoDBv2.Model.ExpectedAttributeValue value) { - Amazon.DynamoDBv2.Model.AttributeValue var_value = value.Value; - bool? var_exists = value.Exists; - Amazon.DynamoDBv2.ComparisonOperator var_comparisonOperator = value.ComparisonOperator; - System.Collections.Generic.List var_attributeValueList = value.AttributeValueList; + Amazon.DynamoDBv2.Model.AttributeValue var_value = (Amazon.DynamoDBv2.Model.AttributeValue)value.Value; + bool? var_exists = (bool?)value.Exists; + Amazon.DynamoDBv2.ComparisonOperator var_comparisonOperator = (Amazon.DynamoDBv2.ComparisonOperator)value.ComparisonOperator; + System.Collections.Generic.List var_attributeValueList = (System.Collections.Generic.List)value.AttributeValueList; return new software.amazon.cryptography.services.dynamodb.internaldafny.types.ExpectedAttributeValue(ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S22_ExpectedAttributeValue__M5_Value(var_value), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S22_ExpectedAttributeValue__M6_Exists(var_exists), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S22_ExpectedAttributeValue__M18_ComparisonOperator(var_comparisonOperator), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S22_ExpectedAttributeValue__M18_AttributeValueList(var_attributeValueList)); } public static string FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S31_ExpressionAttributeNameVariable(Dafny.ISequence value) @@ -8856,9 +8856,9 @@ public static Amazon.DynamoDBv2.Model.Capacity FromDafny_N3_com__N9_amazonaws__N public static software.amazon.cryptography.services.dynamodb.internaldafny.types._ICapacity ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S8_Capacity(Amazon.DynamoDBv2.Model.Capacity value) { - double? var_readCapacityUnits = value.ReadCapacityUnits; - double? var_writeCapacityUnits = value.WriteCapacityUnits; - double? var_capacityUnits = value.CapacityUnits; + double? var_readCapacityUnits = (double?)value.ReadCapacityUnits; + double? var_writeCapacityUnits = (double?)value.WriteCapacityUnits; + double? var_capacityUnits = (double?)value.CapacityUnits; return new software.amazon.cryptography.services.dynamodb.internaldafny.types.Capacity(ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S8_Capacity__M17_ReadCapacityUnits(var_readCapacityUnits), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S8_Capacity__M18_WriteCapacityUnits(var_writeCapacityUnits), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S8_Capacity__M13_CapacityUnits(var_capacityUnits)); } public static System.Collections.Generic.Dictionary FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S27_SecondaryIndexesCapacityMap(Dafny.IMap, software.amazon.cryptography.services.dynamodb.internaldafny.types._ICapacity> value) @@ -8910,9 +8910,9 @@ public static Amazon.DynamoDBv2.Model.PointInTimeRecoveryDescription FromDafny_N public static software.amazon.cryptography.services.dynamodb.internaldafny.types._IPointInTimeRecoveryDescription ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S30_PointInTimeRecoveryDescription(Amazon.DynamoDBv2.Model.PointInTimeRecoveryDescription value) { - Amazon.DynamoDBv2.PointInTimeRecoveryStatus var_pointInTimeRecoveryStatus = value.PointInTimeRecoveryStatus; - System.DateTime? var_earliestRestorableDateTime = value.EarliestRestorableDateTime; - System.DateTime? var_latestRestorableDateTime = value.LatestRestorableDateTime; + Amazon.DynamoDBv2.PointInTimeRecoveryStatus var_pointInTimeRecoveryStatus = (Amazon.DynamoDBv2.PointInTimeRecoveryStatus)value.PointInTimeRecoveryStatus; + System.DateTime? var_earliestRestorableDateTime = (System.DateTime?)value.EarliestRestorableDateTime; + System.DateTime? var_latestRestorableDateTime = (System.DateTime?)value.LatestRestorableDateTime; return new software.amazon.cryptography.services.dynamodb.internaldafny.types.PointInTimeRecoveryDescription(ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S30_PointInTimeRecoveryDescription__M25_PointInTimeRecoveryStatus(var_pointInTimeRecoveryStatus), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S30_PointInTimeRecoveryDescription__M26_EarliestRestorableDateTime(var_earliestRestorableDateTime), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S30_PointInTimeRecoveryDescription__M24_LatestRestorableDateTime(var_latestRestorableDateTime)); } public static string FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S23_ContributorInsightsRule(Dafny.ISequence value) @@ -9043,14 +9043,14 @@ public static Amazon.DynamoDBv2.Model.ReplicaSettingsDescription FromDafny_N3_co public static software.amazon.cryptography.services.dynamodb.internaldafny.types._IReplicaSettingsDescription ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S26_ReplicaSettingsDescription(Amazon.DynamoDBv2.Model.ReplicaSettingsDescription value) { - Amazon.DynamoDBv2.ReplicaStatus var_replicaStatus = value.ReplicaStatus; - Amazon.DynamoDBv2.Model.BillingModeSummary var_replicaBillingModeSummary = value.ReplicaBillingModeSummary; - long? var_replicaProvisionedReadCapacityUnits = value.ReplicaProvisionedReadCapacityUnits; - Amazon.DynamoDBv2.Model.AutoScalingSettingsDescription var_replicaProvisionedReadCapacityAutoScalingSettings = value.ReplicaProvisionedReadCapacityAutoScalingSettings; - long? var_replicaProvisionedWriteCapacityUnits = value.ReplicaProvisionedWriteCapacityUnits; - Amazon.DynamoDBv2.Model.AutoScalingSettingsDescription var_replicaProvisionedWriteCapacityAutoScalingSettings = value.ReplicaProvisionedWriteCapacityAutoScalingSettings; - System.Collections.Generic.List var_replicaGlobalSecondaryIndexSettings = value.ReplicaGlobalSecondaryIndexSettings; - Amazon.DynamoDBv2.Model.TableClassSummary var_replicaTableClassSummary = value.ReplicaTableClassSummary; + Amazon.DynamoDBv2.ReplicaStatus var_replicaStatus = (Amazon.DynamoDBv2.ReplicaStatus)value.ReplicaStatus; + Amazon.DynamoDBv2.Model.BillingModeSummary var_replicaBillingModeSummary = (Amazon.DynamoDBv2.Model.BillingModeSummary)value.ReplicaBillingModeSummary; + long? var_replicaProvisionedReadCapacityUnits = (long?)value.ReplicaProvisionedReadCapacityUnits; + Amazon.DynamoDBv2.Model.AutoScalingSettingsDescription var_replicaProvisionedReadCapacityAutoScalingSettings = (Amazon.DynamoDBv2.Model.AutoScalingSettingsDescription)value.ReplicaProvisionedReadCapacityAutoScalingSettings; + long? var_replicaProvisionedWriteCapacityUnits = (long?)value.ReplicaProvisionedWriteCapacityUnits; + Amazon.DynamoDBv2.Model.AutoScalingSettingsDescription var_replicaProvisionedWriteCapacityAutoScalingSettings = (Amazon.DynamoDBv2.Model.AutoScalingSettingsDescription)value.ReplicaProvisionedWriteCapacityAutoScalingSettings; + System.Collections.Generic.List var_replicaGlobalSecondaryIndexSettings = (System.Collections.Generic.List)value.ReplicaGlobalSecondaryIndexSettings; + Amazon.DynamoDBv2.Model.TableClassSummary var_replicaTableClassSummary = (Amazon.DynamoDBv2.Model.TableClassSummary)value.ReplicaTableClassSummary; return new software.amazon.cryptography.services.dynamodb.internaldafny.types.ReplicaSettingsDescription(ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S26_ReplicaSettingsDescription__M10_RegionName(value.RegionName), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S26_ReplicaSettingsDescription__M13_ReplicaStatus(var_replicaStatus), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S26_ReplicaSettingsDescription__M25_ReplicaBillingModeSummary(var_replicaBillingModeSummary), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S26_ReplicaSettingsDescription__M35_ReplicaProvisionedReadCapacityUnits(var_replicaProvisionedReadCapacityUnits), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S26_ReplicaSettingsDescription__M49_ReplicaProvisionedReadCapacityAutoScalingSettings(var_replicaProvisionedReadCapacityAutoScalingSettings), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S26_ReplicaSettingsDescription__M36_ReplicaProvisionedWriteCapacityUnits(var_replicaProvisionedWriteCapacityUnits), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S26_ReplicaSettingsDescription__M50_ReplicaProvisionedWriteCapacityAutoScalingSettings(var_replicaProvisionedWriteCapacityAutoScalingSettings), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S26_ReplicaSettingsDescription__M35_ReplicaGlobalSecondaryIndexSettings(var_replicaGlobalSecondaryIndexSettings), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S26_ReplicaSettingsDescription__M24_ReplicaTableClassSummary(var_replicaTableClassSummary)); } public static Amazon.DynamoDBv2.ImportStatus FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S12_ImportStatus(software.amazon.cryptography.services.dynamodb.internaldafny.types._IImportStatus value) @@ -9137,10 +9137,10 @@ public static Amazon.DynamoDBv2.Model.KinesisDataStreamDestination FromDafny_N3_ public static software.amazon.cryptography.services.dynamodb.internaldafny.types._IKinesisDataStreamDestination ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S28_KinesisDataStreamDestination(Amazon.DynamoDBv2.Model.KinesisDataStreamDestination value) { - string var_streamArn = value.StreamArn; - Amazon.DynamoDBv2.DestinationStatus var_destinationStatus = value.DestinationStatus; - string var_destinationStatusDescription = value.DestinationStatusDescription; - Amazon.DynamoDBv2.ApproximateCreationDateTimePrecision var_approximateCreationDateTimePrecision = value.ApproximateCreationDateTimePrecision; + string var_streamArn = (string)value.StreamArn; + Amazon.DynamoDBv2.DestinationStatus var_destinationStatus = (Amazon.DynamoDBv2.DestinationStatus)value.DestinationStatus; + string var_destinationStatusDescription = (string)value.DestinationStatusDescription; + Amazon.DynamoDBv2.ApproximateCreationDateTimePrecision var_approximateCreationDateTimePrecision = (Amazon.DynamoDBv2.ApproximateCreationDateTimePrecision)value.ApproximateCreationDateTimePrecision; return new software.amazon.cryptography.services.dynamodb.internaldafny.types.KinesisDataStreamDestination(ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S28_KinesisDataStreamDestination__M9_StreamArn(var_streamArn), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S28_KinesisDataStreamDestination__M17_DestinationStatus(var_destinationStatus), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S28_KinesisDataStreamDestination__M28_DestinationStatusDescription(var_destinationStatusDescription), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S28_KinesisDataStreamDestination__M36_ApproximateCreationDateTimePrecision(var_approximateCreationDateTimePrecision)); } public static System.Collections.Generic.List FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S33_ReplicaAutoScalingDescriptionList(Dafny.ISequence value) @@ -9195,7 +9195,7 @@ public static Amazon.DynamoDBv2.Model.ParameterizedStatement FromDafny_N3_com__N public static software.amazon.cryptography.services.dynamodb.internaldafny.types._IParameterizedStatement ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S22_ParameterizedStatement(Amazon.DynamoDBv2.Model.ParameterizedStatement value) { - System.Collections.Generic.List var_parameters = value.Parameters; + System.Collections.Generic.List var_parameters = (System.Collections.Generic.List)value.Parameters; return new software.amazon.cryptography.services.dynamodb.internaldafny.types.ParameterizedStatement(ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S22_ParameterizedStatement__M9_Statement(value.Statement), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S22_ParameterizedStatement__M10_Parameters(var_parameters)); } public static Amazon.DynamoDBv2.Model.ItemResponse FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S12_ItemResponse(software.amazon.cryptography.services.dynamodb.internaldafny.types._IItemResponse value) @@ -9205,7 +9205,7 @@ public static Amazon.DynamoDBv2.Model.ItemResponse FromDafny_N3_com__N9_amazonaw public static software.amazon.cryptography.services.dynamodb.internaldafny.types._IItemResponse ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S12_ItemResponse(Amazon.DynamoDBv2.Model.ItemResponse value) { - System.Collections.Generic.Dictionary var_item = value.Item; + System.Collections.Generic.Dictionary var_item = (System.Collections.Generic.Dictionary)value.Item; return new software.amazon.cryptography.services.dynamodb.internaldafny.types.ItemResponse(ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S12_ItemResponse__M4_Item(var_item)); } public static System.DateTime FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S14_ExportFromTime(Dafny.ISequence value) @@ -9252,8 +9252,8 @@ public static Amazon.DynamoDBv2.Model.CsvOptions FromDafny_N3_com__N9_amazonaws_ public static software.amazon.cryptography.services.dynamodb.internaldafny.types._ICsvOptions ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S10_CsvOptions(Amazon.DynamoDBv2.Model.CsvOptions value) { - string var_delimiter = value.Delimiter; - System.Collections.Generic.List var_headerList = value.HeaderList; + string var_delimiter = (string)value.Delimiter; + System.Collections.Generic.List var_headerList = (System.Collections.Generic.List)value.HeaderList; return new software.amazon.cryptography.services.dynamodb.internaldafny.types.CsvOptions(ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S10_CsvOptions__M9_Delimiter(var_delimiter), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S10_CsvOptions__M10_HeaderList(var_headerList)); } public static Amazon.DynamoDBv2.Model.BackupSummary FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S13_BackupSummary(software.amazon.cryptography.services.dynamodb.internaldafny.types._IBackupSummary value) @@ -9272,16 +9272,16 @@ public static Amazon.DynamoDBv2.Model.BackupSummary FromDafny_N3_com__N9_amazona public static software.amazon.cryptography.services.dynamodb.internaldafny.types._IBackupSummary ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S13_BackupSummary(Amazon.DynamoDBv2.Model.BackupSummary value) { - string var_tableName = value.TableName; - string var_tableId = value.TableId; - string var_tableArn = value.TableArn; - string var_backupArn = value.BackupArn; - string var_backupName = value.BackupName; - System.DateTime? var_backupCreationDateTime = value.BackupCreationDateTime; - System.DateTime? var_backupExpiryDateTime = value.BackupExpiryDateTime; - Amazon.DynamoDBv2.BackupStatus var_backupStatus = value.BackupStatus; - Amazon.DynamoDBv2.BackupType var_backupType = value.BackupType; - long? var_backupSizeBytes = value.BackupSizeBytes; + string var_tableName = (string)value.TableName; + string var_tableId = (string)value.TableId; + string var_tableArn = (string)value.TableArn; + string var_backupArn = (string)value.BackupArn; + string var_backupName = (string)value.BackupName; + System.DateTime? var_backupCreationDateTime = (System.DateTime?)value.BackupCreationDateTime; + System.DateTime? var_backupExpiryDateTime = (System.DateTime?)value.BackupExpiryDateTime; + Amazon.DynamoDBv2.BackupStatus var_backupStatus = (Amazon.DynamoDBv2.BackupStatus)value.BackupStatus; + Amazon.DynamoDBv2.BackupType var_backupType = (Amazon.DynamoDBv2.BackupType)value.BackupType; + long? var_backupSizeBytes = (long?)value.BackupSizeBytes; return new software.amazon.cryptography.services.dynamodb.internaldafny.types.BackupSummary(ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S13_BackupSummary__M9_TableName(var_tableName), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S13_BackupSummary__M7_TableId(var_tableId), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S13_BackupSummary__M8_TableArn(var_tableArn), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S13_BackupSummary__M9_BackupArn(var_backupArn), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S13_BackupSummary__M10_BackupName(var_backupName), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S13_BackupSummary__M22_BackupCreationDateTime(var_backupCreationDateTime), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S13_BackupSummary__M20_BackupExpiryDateTime(var_backupExpiryDateTime), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S13_BackupSummary__M12_BackupStatus(var_backupStatus), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S13_BackupSummary__M10_BackupType(var_backupType), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S13_BackupSummary__M15_BackupSizeBytes(var_backupSizeBytes)); } public static Amazon.DynamoDBv2.Model.ContributorInsightsSummary FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S26_ContributorInsightsSummary(software.amazon.cryptography.services.dynamodb.internaldafny.types._IContributorInsightsSummary value) @@ -9293,9 +9293,9 @@ public static Amazon.DynamoDBv2.Model.ContributorInsightsSummary FromDafny_N3_co public static software.amazon.cryptography.services.dynamodb.internaldafny.types._IContributorInsightsSummary ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S26_ContributorInsightsSummary(Amazon.DynamoDBv2.Model.ContributorInsightsSummary value) { - string var_tableName = value.TableName; - string var_indexName = value.IndexName; - Amazon.DynamoDBv2.ContributorInsightsStatus var_contributorInsightsStatus = value.ContributorInsightsStatus; + string var_tableName = (string)value.TableName; + string var_indexName = (string)value.IndexName; + Amazon.DynamoDBv2.ContributorInsightsStatus var_contributorInsightsStatus = (Amazon.DynamoDBv2.ContributorInsightsStatus)value.ContributorInsightsStatus; return new software.amazon.cryptography.services.dynamodb.internaldafny.types.ContributorInsightsSummary(ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S26_ContributorInsightsSummary__M9_TableName(var_tableName), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S26_ContributorInsightsSummary__M9_IndexName(var_indexName), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S26_ContributorInsightsSummary__M25_ContributorInsightsStatus(var_contributorInsightsStatus)); } public static Amazon.DynamoDBv2.Model.ExportSummary FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S13_ExportSummary(software.amazon.cryptography.services.dynamodb.internaldafny.types._IExportSummary value) @@ -9307,9 +9307,9 @@ public static Amazon.DynamoDBv2.Model.ExportSummary FromDafny_N3_com__N9_amazona public static software.amazon.cryptography.services.dynamodb.internaldafny.types._IExportSummary ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S13_ExportSummary(Amazon.DynamoDBv2.Model.ExportSummary value) { - string var_exportArn = value.ExportArn; - Amazon.DynamoDBv2.ExportStatus var_exportStatus = value.ExportStatus; - Amazon.DynamoDBv2.ExportType var_exportType = value.ExportType; + string var_exportArn = (string)value.ExportArn; + Amazon.DynamoDBv2.ExportStatus var_exportStatus = (Amazon.DynamoDBv2.ExportStatus)value.ExportStatus; + Amazon.DynamoDBv2.ExportType var_exportType = (Amazon.DynamoDBv2.ExportType)value.ExportType; return new software.amazon.cryptography.services.dynamodb.internaldafny.types.ExportSummary(ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S13_ExportSummary__M9_ExportArn(var_exportArn), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S13_ExportSummary__M12_ExportStatus(var_exportStatus), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S13_ExportSummary__M10_ExportType(var_exportType)); } public static Amazon.DynamoDBv2.Model.GlobalTable FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S11_GlobalTable(software.amazon.cryptography.services.dynamodb.internaldafny.types._IGlobalTable value) @@ -9320,8 +9320,8 @@ public static Amazon.DynamoDBv2.Model.GlobalTable FromDafny_N3_com__N9_amazonaws public static software.amazon.cryptography.services.dynamodb.internaldafny.types._IGlobalTable ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S11_GlobalTable(Amazon.DynamoDBv2.Model.GlobalTable value) { - string var_globalTableName = value.GlobalTableName; - System.Collections.Generic.List var_replicationGroup = value.ReplicationGroup; + string var_globalTableName = (string)value.GlobalTableName; + System.Collections.Generic.List var_replicationGroup = (System.Collections.Generic.List)value.ReplicationGroup; return new software.amazon.cryptography.services.dynamodb.internaldafny.types.GlobalTable(ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S11_GlobalTable__M15_GlobalTableName(var_globalTableName), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S11_GlobalTable__M16_ReplicationGroup(var_replicationGroup)); } public static Amazon.DynamoDBv2.Model.ImportSummary FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S13_ImportSummary(software.amazon.cryptography.services.dynamodb.internaldafny.types._IImportSummary value) @@ -9338,14 +9338,14 @@ public static Amazon.DynamoDBv2.Model.ImportSummary FromDafny_N3_com__N9_amazona public static software.amazon.cryptography.services.dynamodb.internaldafny.types._IImportSummary ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S13_ImportSummary(Amazon.DynamoDBv2.Model.ImportSummary value) { - string var_importArn = value.ImportArn; - Amazon.DynamoDBv2.ImportStatus var_importStatus = value.ImportStatus; - string var_tableArn = value.TableArn; - Amazon.DynamoDBv2.Model.S3BucketSource var_s3BucketSource = value.S3BucketSource; - string var_cloudWatchLogGroupArn = value.CloudWatchLogGroupArn; - Amazon.DynamoDBv2.InputFormat var_inputFormat = value.InputFormat; - System.DateTime? var_startTime = value.StartTime; - System.DateTime? var_endTime = value.EndTime; + string var_importArn = (string)value.ImportArn; + Amazon.DynamoDBv2.ImportStatus var_importStatus = (Amazon.DynamoDBv2.ImportStatus)value.ImportStatus; + string var_tableArn = (string)value.TableArn; + Amazon.DynamoDBv2.Model.S3BucketSource var_s3BucketSource = (Amazon.DynamoDBv2.Model.S3BucketSource)value.S3BucketSource; + string var_cloudWatchLogGroupArn = (string)value.CloudWatchLogGroupArn; + Amazon.DynamoDBv2.InputFormat var_inputFormat = (Amazon.DynamoDBv2.InputFormat)value.InputFormat; + System.DateTime? var_startTime = (System.DateTime?)value.StartTime; + System.DateTime? var_endTime = (System.DateTime?)value.EndTime; return new software.amazon.cryptography.services.dynamodb.internaldafny.types.ImportSummary(ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S13_ImportSummary__M9_ImportArn(var_importArn), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S13_ImportSummary__M12_ImportStatus(var_importStatus), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S13_ImportSummary__M8_TableArn(var_tableArn), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S13_ImportSummary__M14_S3BucketSource(var_s3BucketSource), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S13_ImportSummary__M21_CloudWatchLogGroupArn(var_cloudWatchLogGroupArn), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S13_ImportSummary__M11_InputFormat(var_inputFormat), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S13_ImportSummary__M9_StartTime(var_startTime), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S13_ImportSummary__M7_EndTime(var_endTime)); } public static Amazon.DynamoDBv2.Model.Condition FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S9_Condition(software.amazon.cryptography.services.dynamodb.internaldafny.types._ICondition value) @@ -9356,7 +9356,7 @@ public static Amazon.DynamoDBv2.Model.Condition FromDafny_N3_com__N9_amazonaws__ public static software.amazon.cryptography.services.dynamodb.internaldafny.types._ICondition ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S9_Condition(Amazon.DynamoDBv2.Model.Condition value) { - System.Collections.Generic.List var_attributeValueList = value.AttributeValueList; + System.Collections.Generic.List var_attributeValueList = (System.Collections.Generic.List)value.AttributeValueList; return new software.amazon.cryptography.services.dynamodb.internaldafny.types.Condition(ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S9_Condition__M18_AttributeValueList(var_attributeValueList), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S9_Condition__M18_ComparisonOperator(value.ComparisonOperator)); } public static Amazon.DynamoDBv2.Model.TransactGetItem FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S15_TransactGetItem(software.amazon.cryptography.services.dynamodb.internaldafny.types._ITransactGetItem value) @@ -9378,9 +9378,9 @@ public static Amazon.DynamoDBv2.Model.CancellationReason FromDafny_N3_com__N9_am public static software.amazon.cryptography.services.dynamodb.internaldafny.types._ICancellationReason ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S18_CancellationReason(Amazon.DynamoDBv2.Model.CancellationReason value) { - System.Collections.Generic.Dictionary var_item = value.Item; - string var_code = value.Code; - string var_message = value.Message; + System.Collections.Generic.Dictionary var_item = (System.Collections.Generic.Dictionary)value.Item; + string var_code = (string)value.Code; + string var_message = (string)value.Message; return new software.amazon.cryptography.services.dynamodb.internaldafny.types.CancellationReason(ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S18_CancellationReason__M4_Item(var_item), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S18_CancellationReason__M4_Code(var_code), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S18_CancellationReason__M7_Message(var_message)); } public static Amazon.DynamoDBv2.Model.TransactWriteItem FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S17_TransactWriteItem(software.amazon.cryptography.services.dynamodb.internaldafny.types._ITransactWriteItem value) @@ -9393,10 +9393,10 @@ public static Amazon.DynamoDBv2.Model.TransactWriteItem FromDafny_N3_com__N9_ama public static software.amazon.cryptography.services.dynamodb.internaldafny.types._ITransactWriteItem ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S17_TransactWriteItem(Amazon.DynamoDBv2.Model.TransactWriteItem value) { - Amazon.DynamoDBv2.Model.ConditionCheck var_conditionCheck = value.ConditionCheck; - Amazon.DynamoDBv2.Model.Put var_put = value.Put; - Amazon.DynamoDBv2.Model.Delete var_delete = value.Delete; - Amazon.DynamoDBv2.Model.Update var_update = value.Update; + Amazon.DynamoDBv2.Model.ConditionCheck var_conditionCheck = (Amazon.DynamoDBv2.Model.ConditionCheck)value.ConditionCheck; + Amazon.DynamoDBv2.Model.Put var_put = (Amazon.DynamoDBv2.Model.Put)value.Put; + Amazon.DynamoDBv2.Model.Delete var_delete = (Amazon.DynamoDBv2.Model.Delete)value.Delete; + Amazon.DynamoDBv2.Model.Update var_update = (Amazon.DynamoDBv2.Model.Update)value.Update; return new software.amazon.cryptography.services.dynamodb.internaldafny.types.TransactWriteItem(ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S17_TransactWriteItem__M14_ConditionCheck(var_conditionCheck), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S17_TransactWriteItem__M3_Put(var_put), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S17_TransactWriteItem__M6_Delete(var_delete), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S17_TransactWriteItem__M6_Update(var_update)); } public static string FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S12_TagKeyString(Dafny.ISequence value) @@ -9415,8 +9415,8 @@ public static Amazon.DynamoDBv2.Model.ReplicaUpdate FromDafny_N3_com__N9_amazona public static software.amazon.cryptography.services.dynamodb.internaldafny.types._IReplicaUpdate ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S13_ReplicaUpdate(Amazon.DynamoDBv2.Model.ReplicaUpdate value) { - Amazon.DynamoDBv2.Model.CreateReplicaAction var_create = value.Create; - Amazon.DynamoDBv2.Model.DeleteReplicaAction var_delete = value.Delete; + Amazon.DynamoDBv2.Model.CreateReplicaAction var_create = (Amazon.DynamoDBv2.Model.CreateReplicaAction)value.Create; + Amazon.DynamoDBv2.Model.DeleteReplicaAction var_delete = (Amazon.DynamoDBv2.Model.DeleteReplicaAction)value.Delete; return new software.amazon.cryptography.services.dynamodb.internaldafny.types.ReplicaUpdate(ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S13_ReplicaUpdate__M6_Create(var_create), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S13_ReplicaUpdate__M6_Delete(var_delete)); } public static string FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S18_AutoScalingRoleArn(Dafny.ISequence value) @@ -9435,7 +9435,7 @@ public static Amazon.DynamoDBv2.Model.AutoScalingPolicyUpdate FromDafny_N3_com__ public static software.amazon.cryptography.services.dynamodb.internaldafny.types._IAutoScalingPolicyUpdate ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S23_AutoScalingPolicyUpdate(Amazon.DynamoDBv2.Model.AutoScalingPolicyUpdate value) { - string var_policyName = value.PolicyName; + string var_policyName = (string)value.PolicyName; return new software.amazon.cryptography.services.dynamodb.internaldafny.types.AutoScalingPolicyUpdate(ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S23_AutoScalingPolicyUpdate__M10_PolicyName(var_policyName), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S23_AutoScalingPolicyUpdate__M40_TargetTrackingScalingPolicyConfiguration(value.TargetTrackingScalingPolicyConfiguration)); } public static Amazon.DynamoDBv2.Model.GlobalTableGlobalSecondaryIndexSettingsUpdate FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S45_GlobalTableGlobalSecondaryIndexSettingsUpdate(software.amazon.cryptography.services.dynamodb.internaldafny.types._IGlobalTableGlobalSecondaryIndexSettingsUpdate value) @@ -9447,8 +9447,8 @@ public static Amazon.DynamoDBv2.Model.GlobalTableGlobalSecondaryIndexSettingsUpd public static software.amazon.cryptography.services.dynamodb.internaldafny.types._IGlobalTableGlobalSecondaryIndexSettingsUpdate ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S45_GlobalTableGlobalSecondaryIndexSettingsUpdate(Amazon.DynamoDBv2.Model.GlobalTableGlobalSecondaryIndexSettingsUpdate value) { - long? var_provisionedWriteCapacityUnits = value.ProvisionedWriteCapacityUnits; - Amazon.DynamoDBv2.Model.AutoScalingSettingsUpdate var_provisionedWriteCapacityAutoScalingSettingsUpdate = value.ProvisionedWriteCapacityAutoScalingSettingsUpdate; + long? var_provisionedWriteCapacityUnits = (long?)value.ProvisionedWriteCapacityUnits; + Amazon.DynamoDBv2.Model.AutoScalingSettingsUpdate var_provisionedWriteCapacityAutoScalingSettingsUpdate = (Amazon.DynamoDBv2.Model.AutoScalingSettingsUpdate)value.ProvisionedWriteCapacityAutoScalingSettingsUpdate; return new software.amazon.cryptography.services.dynamodb.internaldafny.types.GlobalTableGlobalSecondaryIndexSettingsUpdate(ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S45_GlobalTableGlobalSecondaryIndexSettingsUpdate__M9_IndexName(value.IndexName), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S45_GlobalTableGlobalSecondaryIndexSettingsUpdate__M29_ProvisionedWriteCapacityUnits(var_provisionedWriteCapacityUnits), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S45_GlobalTableGlobalSecondaryIndexSettingsUpdate__M49_ProvisionedWriteCapacityAutoScalingSettingsUpdate(var_provisionedWriteCapacityAutoScalingSettingsUpdate)); } public static Amazon.DynamoDBv2.Model.ReplicaSettingsUpdate FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S21_ReplicaSettingsUpdate(software.amazon.cryptography.services.dynamodb.internaldafny.types._IReplicaSettingsUpdate value) @@ -9462,10 +9462,10 @@ public static Amazon.DynamoDBv2.Model.ReplicaSettingsUpdate FromDafny_N3_com__N9 public static software.amazon.cryptography.services.dynamodb.internaldafny.types._IReplicaSettingsUpdate ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S21_ReplicaSettingsUpdate(Amazon.DynamoDBv2.Model.ReplicaSettingsUpdate value) { - long? var_replicaProvisionedReadCapacityUnits = value.ReplicaProvisionedReadCapacityUnits; - Amazon.DynamoDBv2.Model.AutoScalingSettingsUpdate var_replicaProvisionedReadCapacityAutoScalingSettingsUpdate = value.ReplicaProvisionedReadCapacityAutoScalingSettingsUpdate; - System.Collections.Generic.List var_replicaGlobalSecondaryIndexSettingsUpdate = value.ReplicaGlobalSecondaryIndexSettingsUpdate; - Amazon.DynamoDBv2.TableClass var_replicaTableClass = value.ReplicaTableClass; + long? var_replicaProvisionedReadCapacityUnits = (long?)value.ReplicaProvisionedReadCapacityUnits; + Amazon.DynamoDBv2.Model.AutoScalingSettingsUpdate var_replicaProvisionedReadCapacityAutoScalingSettingsUpdate = (Amazon.DynamoDBv2.Model.AutoScalingSettingsUpdate)value.ReplicaProvisionedReadCapacityAutoScalingSettingsUpdate; + System.Collections.Generic.List var_replicaGlobalSecondaryIndexSettingsUpdate = (System.Collections.Generic.List)value.ReplicaGlobalSecondaryIndexSettingsUpdate; + Amazon.DynamoDBv2.TableClass var_replicaTableClass = (Amazon.DynamoDBv2.TableClass)value.ReplicaTableClass; return new software.amazon.cryptography.services.dynamodb.internaldafny.types.ReplicaSettingsUpdate(ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S21_ReplicaSettingsUpdate__M10_RegionName(value.RegionName), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S21_ReplicaSettingsUpdate__M35_ReplicaProvisionedReadCapacityUnits(var_replicaProvisionedReadCapacityUnits), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S21_ReplicaSettingsUpdate__M55_ReplicaProvisionedReadCapacityAutoScalingSettingsUpdate(var_replicaProvisionedReadCapacityAutoScalingSettingsUpdate), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S21_ReplicaSettingsUpdate__M41_ReplicaGlobalSecondaryIndexSettingsUpdate(var_replicaGlobalSecondaryIndexSettingsUpdate), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S21_ReplicaSettingsUpdate__M17_ReplicaTableClass(var_replicaTableClass)); } public static Amazon.DynamoDBv2.Model.AttributeValueUpdate FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S20_AttributeValueUpdate(software.amazon.cryptography.services.dynamodb.internaldafny.types._IAttributeValueUpdate value) @@ -9476,8 +9476,8 @@ public static Amazon.DynamoDBv2.Model.AttributeValueUpdate FromDafny_N3_com__N9_ public static software.amazon.cryptography.services.dynamodb.internaldafny.types._IAttributeValueUpdate ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S20_AttributeValueUpdate(Amazon.DynamoDBv2.Model.AttributeValueUpdate value) { - Amazon.DynamoDBv2.Model.AttributeValue var_value = value.Value; - Amazon.DynamoDBv2.AttributeAction var_action = value.Action; + Amazon.DynamoDBv2.Model.AttributeValue var_value = (Amazon.DynamoDBv2.Model.AttributeValue)value.Value; + Amazon.DynamoDBv2.AttributeAction var_action = (Amazon.DynamoDBv2.AttributeAction)value.Action; return new software.amazon.cryptography.services.dynamodb.internaldafny.types.AttributeValueUpdate(ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S20_AttributeValueUpdate__M5_Value(var_value), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S20_AttributeValueUpdate__M6_Action(var_action)); } public static Amazon.DynamoDBv2.Model.GlobalSecondaryIndexUpdate FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S26_GlobalSecondaryIndexUpdate(software.amazon.cryptography.services.dynamodb.internaldafny.types._IGlobalSecondaryIndexUpdate value) @@ -9489,9 +9489,9 @@ public static Amazon.DynamoDBv2.Model.GlobalSecondaryIndexUpdate FromDafny_N3_co public static software.amazon.cryptography.services.dynamodb.internaldafny.types._IGlobalSecondaryIndexUpdate ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S26_GlobalSecondaryIndexUpdate(Amazon.DynamoDBv2.Model.GlobalSecondaryIndexUpdate value) { - Amazon.DynamoDBv2.Model.UpdateGlobalSecondaryIndexAction var_update = value.Update; - Amazon.DynamoDBv2.Model.CreateGlobalSecondaryIndexAction var_create = value.Create; - Amazon.DynamoDBv2.Model.DeleteGlobalSecondaryIndexAction var_delete = value.Delete; + Amazon.DynamoDBv2.Model.UpdateGlobalSecondaryIndexAction var_update = (Amazon.DynamoDBv2.Model.UpdateGlobalSecondaryIndexAction)value.Update; + Amazon.DynamoDBv2.Model.CreateGlobalSecondaryIndexAction var_create = (Amazon.DynamoDBv2.Model.CreateGlobalSecondaryIndexAction)value.Create; + Amazon.DynamoDBv2.Model.DeleteGlobalSecondaryIndexAction var_delete = (Amazon.DynamoDBv2.Model.DeleteGlobalSecondaryIndexAction)value.Delete; return new software.amazon.cryptography.services.dynamodb.internaldafny.types.GlobalSecondaryIndexUpdate(ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S26_GlobalSecondaryIndexUpdate__M6_Update(var_update), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S26_GlobalSecondaryIndexUpdate__M6_Create(var_create), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S26_GlobalSecondaryIndexUpdate__M6_Delete(var_delete)); } public static Amazon.DynamoDBv2.Model.ReplicationGroupUpdate FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S22_ReplicationGroupUpdate(software.amazon.cryptography.services.dynamodb.internaldafny.types._IReplicationGroupUpdate value) @@ -9503,9 +9503,9 @@ public static Amazon.DynamoDBv2.Model.ReplicationGroupUpdate FromDafny_N3_com__N public static software.amazon.cryptography.services.dynamodb.internaldafny.types._IReplicationGroupUpdate ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S22_ReplicationGroupUpdate(Amazon.DynamoDBv2.Model.ReplicationGroupUpdate value) { - Amazon.DynamoDBv2.Model.CreateReplicationGroupMemberAction var_create = value.Create; - Amazon.DynamoDBv2.Model.UpdateReplicationGroupMemberAction var_update = value.Update; - Amazon.DynamoDBv2.Model.DeleteReplicationGroupMemberAction var_delete = value.Delete; + Amazon.DynamoDBv2.Model.CreateReplicationGroupMemberAction var_create = (Amazon.DynamoDBv2.Model.CreateReplicationGroupMemberAction)value.Create; + Amazon.DynamoDBv2.Model.UpdateReplicationGroupMemberAction var_update = (Amazon.DynamoDBv2.Model.UpdateReplicationGroupMemberAction)value.Update; + Amazon.DynamoDBv2.Model.DeleteReplicationGroupMemberAction var_delete = (Amazon.DynamoDBv2.Model.DeleteReplicationGroupMemberAction)value.Delete; return new software.amazon.cryptography.services.dynamodb.internaldafny.types.ReplicationGroupUpdate(ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S22_ReplicationGroupUpdate__M6_Create(var_create), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S22_ReplicationGroupUpdate__M6_Update(var_update), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S22_ReplicationGroupUpdate__M6_Delete(var_delete)); } public static Amazon.DynamoDBv2.Model.GlobalSecondaryIndexAutoScalingUpdate FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S37_GlobalSecondaryIndexAutoScalingUpdate(software.amazon.cryptography.services.dynamodb.internaldafny.types._IGlobalSecondaryIndexAutoScalingUpdate value) @@ -9516,8 +9516,8 @@ public static Amazon.DynamoDBv2.Model.GlobalSecondaryIndexAutoScalingUpdate From public static software.amazon.cryptography.services.dynamodb.internaldafny.types._IGlobalSecondaryIndexAutoScalingUpdate ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S37_GlobalSecondaryIndexAutoScalingUpdate(Amazon.DynamoDBv2.Model.GlobalSecondaryIndexAutoScalingUpdate value) { - string var_indexName = value.IndexName; - Amazon.DynamoDBv2.Model.AutoScalingSettingsUpdate var_provisionedWriteCapacityAutoScalingUpdate = value.ProvisionedWriteCapacityAutoScalingUpdate; + string var_indexName = (string)value.IndexName; + Amazon.DynamoDBv2.Model.AutoScalingSettingsUpdate var_provisionedWriteCapacityAutoScalingUpdate = (Amazon.DynamoDBv2.Model.AutoScalingSettingsUpdate)value.ProvisionedWriteCapacityAutoScalingUpdate; return new software.amazon.cryptography.services.dynamodb.internaldafny.types.GlobalSecondaryIndexAutoScalingUpdate(ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S37_GlobalSecondaryIndexAutoScalingUpdate__M9_IndexName(var_indexName), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S37_GlobalSecondaryIndexAutoScalingUpdate__M41_ProvisionedWriteCapacityAutoScalingUpdate(var_provisionedWriteCapacityAutoScalingUpdate)); } public static Amazon.DynamoDBv2.Model.ReplicaAutoScalingUpdate FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S24_ReplicaAutoScalingUpdate(software.amazon.cryptography.services.dynamodb.internaldafny.types._IReplicaAutoScalingUpdate value) @@ -9529,8 +9529,8 @@ public static Amazon.DynamoDBv2.Model.ReplicaAutoScalingUpdate FromDafny_N3_com_ public static software.amazon.cryptography.services.dynamodb.internaldafny.types._IReplicaAutoScalingUpdate ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S24_ReplicaAutoScalingUpdate(Amazon.DynamoDBv2.Model.ReplicaAutoScalingUpdate value) { - System.Collections.Generic.List var_replicaGlobalSecondaryIndexUpdates = value.ReplicaGlobalSecondaryIndexUpdates; - Amazon.DynamoDBv2.Model.AutoScalingSettingsUpdate var_replicaProvisionedReadCapacityAutoScalingUpdate = value.ReplicaProvisionedReadCapacityAutoScalingUpdate; + System.Collections.Generic.List var_replicaGlobalSecondaryIndexUpdates = (System.Collections.Generic.List)value.ReplicaGlobalSecondaryIndexUpdates; + Amazon.DynamoDBv2.Model.AutoScalingSettingsUpdate var_replicaProvisionedReadCapacityAutoScalingUpdate = (Amazon.DynamoDBv2.Model.AutoScalingSettingsUpdate)value.ReplicaProvisionedReadCapacityAutoScalingUpdate; return new software.amazon.cryptography.services.dynamodb.internaldafny.types.ReplicaAutoScalingUpdate(ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S24_ReplicaAutoScalingUpdate__M10_RegionName(value.RegionName), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S24_ReplicaAutoScalingUpdate__M34_ReplicaGlobalSecondaryIndexUpdates(var_replicaGlobalSecondaryIndexUpdates), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S24_ReplicaAutoScalingUpdate__M47_ReplicaProvisionedReadCapacityAutoScalingUpdate(var_replicaProvisionedReadCapacityAutoScalingUpdate)); } public static bool FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S17_TimeToLiveEnabled(bool value) @@ -9547,7 +9547,7 @@ public static string FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S21_BatchState } public static Dafny.ISequence ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S21_BatchStatementRequest__M9_Statement(string value) { - return ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S16_PartiQLStatement(value); + return ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S16_PartiQLStatement((string)value); } public static System.Collections.Generic.List FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S21_BatchStatementRequest__M10_Parameters(Wrappers_Compile._IOption> value) { @@ -9595,7 +9595,7 @@ public static string FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S22_BatchState } public static Dafny.ISequence, software.amazon.cryptography.services.dynamodb.internaldafny.types._IAttributeValue>> ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S17_KeysAndAttributes__M4_Keys(System.Collections.Generic.List> value) { - return ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S7_KeyList(value); + return ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S7_KeyList((System.Collections.Generic.List>)value); } public static System.Collections.Generic.List FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S17_KeysAndAttributes__M15_AttributesToGet(Wrappers_Compile._IOption>> value) { @@ -9635,7 +9635,7 @@ public static Amazon.DynamoDBv2.Model.WriteRequest FromDafny_N3_com__N9_amazonaw } public static software.amazon.cryptography.services.dynamodb.internaldafny.types._IWriteRequest ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S13_WriteRequests__M6_member(Amazon.DynamoDBv2.Model.WriteRequest value) { - return ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S12_WriteRequest(value); + return ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S12_WriteRequest((Amazon.DynamoDBv2.Model.WriteRequest)value); } public static Amazon.DynamoDBv2.Model.ItemCollectionMetrics FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S29_ItemCollectionMetricsMultiple__M6_member(software.amazon.cryptography.services.dynamodb.internaldafny.types._IItemCollectionMetrics value) { @@ -9643,7 +9643,7 @@ public static Amazon.DynamoDBv2.Model.ItemCollectionMetrics FromDafny_N3_com__N9 } public static software.amazon.cryptography.services.dynamodb.internaldafny.types._IItemCollectionMetrics ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S29_ItemCollectionMetricsMultiple__M6_member(Amazon.DynamoDBv2.Model.ItemCollectionMetrics value) { - return ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S21_ItemCollectionMetrics(value); + return ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S21_ItemCollectionMetrics((Amazon.DynamoDBv2.Model.ItemCollectionMetrics)value); } public static string FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S7_Replica__M10_RegionName(Wrappers_Compile._IOption> value) { @@ -9659,7 +9659,7 @@ public static Amazon.DynamoDBv2.Model.ReplicaDescription FromDafny_N3_com__N9_am } public static software.amazon.cryptography.services.dynamodb.internaldafny.types._IReplicaDescription ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S22_ReplicaDescriptionList__M6_member(Amazon.DynamoDBv2.Model.ReplicaDescription value) { - return ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S18_ReplicaDescription(value); + return ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S18_ReplicaDescription((Amazon.DynamoDBv2.Model.ReplicaDescription)value); } public static string FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S19_AttributeDefinition__M13_AttributeName(Dafny.ISequence value) { @@ -9667,7 +9667,7 @@ public static string FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S19_AttributeD } public static Dafny.ISequence ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S19_AttributeDefinition__M13_AttributeName(string value) { - return ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S22_KeySchemaAttributeName(value); + return ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S22_KeySchemaAttributeName((string)value); } public static Amazon.DynamoDBv2.ScalarAttributeType FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S19_AttributeDefinition__M13_AttributeType(software.amazon.cryptography.services.dynamodb.internaldafny.types._IScalarAttributeType value) { @@ -9675,7 +9675,7 @@ public static Amazon.DynamoDBv2.ScalarAttributeType FromDafny_N3_com__N9_amazona } public static software.amazon.cryptography.services.dynamodb.internaldafny.types._IScalarAttributeType ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S19_AttributeDefinition__M13_AttributeType(Amazon.DynamoDBv2.ScalarAttributeType value) { - return ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S19_ScalarAttributeType(value); + return ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S19_ScalarAttributeType((Amazon.DynamoDBv2.ScalarAttributeType)value); } public static string FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S16_KeySchemaElement__M13_AttributeName(Dafny.ISequence value) { @@ -9683,7 +9683,7 @@ public static string FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S16_KeySchemaE } public static Dafny.ISequence ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S16_KeySchemaElement__M13_AttributeName(string value) { - return ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S22_KeySchemaAttributeName(value); + return ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S22_KeySchemaAttributeName((string)value); } public static Amazon.DynamoDBv2.KeyType FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S16_KeySchemaElement__M7_KeyType(software.amazon.cryptography.services.dynamodb.internaldafny.types._IKeyType value) { @@ -9691,7 +9691,7 @@ public static Amazon.DynamoDBv2.KeyType FromDafny_N3_com__N9_amazonaws__N8_dynam } public static software.amazon.cryptography.services.dynamodb.internaldafny.types._IKeyType ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S16_KeySchemaElement__M7_KeyType(Amazon.DynamoDBv2.KeyType value) { - return ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S7_KeyType(value); + return ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S7_KeyType((Amazon.DynamoDBv2.KeyType)value); } public static string FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S19_LocalSecondaryIndex__M9_IndexName(Dafny.ISequence value) { @@ -9699,7 +9699,7 @@ public static string FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S19_LocalSecon } public static Dafny.ISequence ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S19_LocalSecondaryIndex__M9_IndexName(string value) { - return ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S9_IndexName(value); + return ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S9_IndexName((string)value); } public static System.Collections.Generic.List FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S19_LocalSecondaryIndex__M9_KeySchema(Dafny.ISequence value) { @@ -9707,7 +9707,7 @@ public static Dafny.ISequence ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S } public static Dafny.ISequence ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S19_LocalSecondaryIndex__M9_KeySchema(System.Collections.Generic.List value) { - return ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S9_KeySchema(value); + return ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S9_KeySchema((System.Collections.Generic.List)value); } public static Amazon.DynamoDBv2.Model.Projection FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S19_LocalSecondaryIndex__M10_Projection(software.amazon.cryptography.services.dynamodb.internaldafny.types._IProjection value) { @@ -9715,7 +9715,7 @@ public static Amazon.DynamoDBv2.Model.Projection FromDafny_N3_com__N9_amazonaws_ } public static software.amazon.cryptography.services.dynamodb.internaldafny.types._IProjection ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S19_LocalSecondaryIndex__M10_Projection(Amazon.DynamoDBv2.Model.Projection value) { - return ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S10_Projection(value); + return ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S10_Projection((Amazon.DynamoDBv2.Model.Projection)value); } public static string FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S20_GlobalSecondaryIndex__M9_IndexName(Dafny.ISequence value) { @@ -9723,7 +9723,7 @@ public static string FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S20_GlobalSeco } public static Dafny.ISequence ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S20_GlobalSecondaryIndex__M9_IndexName(string value) { - return ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S9_IndexName(value); + return ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S9_IndexName((string)value); } public static System.Collections.Generic.List FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S20_GlobalSecondaryIndex__M9_KeySchema(Dafny.ISequence value) { @@ -9731,7 +9731,7 @@ public static Dafny.ISequence ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S } public static Dafny.ISequence ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S20_GlobalSecondaryIndex__M9_KeySchema(System.Collections.Generic.List value) { - return ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S9_KeySchema(value); + return ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S9_KeySchema((System.Collections.Generic.List)value); } public static Amazon.DynamoDBv2.Model.Projection FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S20_GlobalSecondaryIndex__M10_Projection(software.amazon.cryptography.services.dynamodb.internaldafny.types._IProjection value) { @@ -9739,7 +9739,7 @@ public static Amazon.DynamoDBv2.Model.Projection FromDafny_N3_com__N9_amazonaws_ } public static software.amazon.cryptography.services.dynamodb.internaldafny.types._IProjection ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S20_GlobalSecondaryIndex__M10_Projection(Amazon.DynamoDBv2.Model.Projection value) { - return ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S10_Projection(value); + return ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S10_Projection((Amazon.DynamoDBv2.Model.Projection)value); } public static Amazon.DynamoDBv2.Model.ProvisionedThroughput FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S20_GlobalSecondaryIndex__M21_ProvisionedThroughput(Wrappers_Compile._IOption value) { @@ -9763,7 +9763,7 @@ public static string FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S3_Tag__M3_Key } public static Dafny.ISequence ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S3_Tag__M3_Key(string value) { - return ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S12_TagKeyString(value); + return ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S12_TagKeyString((string)value); } public static string FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S3_Tag__M5_Value(Dafny.ISequence value) { @@ -9771,7 +9771,7 @@ public static string FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S3_Tag__M5_Val } public static Dafny.ISequence ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S3_Tag__M5_Value(string value) { - return ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S14_TagValueString(value); + return ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S14_TagValueString((string)value); } public static System.DateTime? FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S32_ProvisionedThroughputDescription__M20_LastIncreaseDateTime(Wrappers_Compile._IOption> value) { @@ -9835,7 +9835,7 @@ public static Amazon.DynamoDBv2.Model.LocalSecondaryIndexDescription FromDafny_N } public static software.amazon.cryptography.services.dynamodb.internaldafny.types._ILocalSecondaryIndexDescription ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S34_LocalSecondaryIndexDescriptionList__M6_member(Amazon.DynamoDBv2.Model.LocalSecondaryIndexDescription value) { - return ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S30_LocalSecondaryIndexDescription(value); + return ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S30_LocalSecondaryIndexDescription((Amazon.DynamoDBv2.Model.LocalSecondaryIndexDescription)value); } public static Amazon.DynamoDBv2.Model.GlobalSecondaryIndexDescription FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S35_GlobalSecondaryIndexDescriptionList__M6_member(software.amazon.cryptography.services.dynamodb.internaldafny.types._IGlobalSecondaryIndexDescription value) { @@ -9843,7 +9843,7 @@ public static Amazon.DynamoDBv2.Model.GlobalSecondaryIndexDescription FromDafny_ } public static software.amazon.cryptography.services.dynamodb.internaldafny.types._IGlobalSecondaryIndexDescription ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S35_GlobalSecondaryIndexDescriptionList__M6_member(Amazon.DynamoDBv2.Model.GlobalSecondaryIndexDescription value) { - return ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S31_GlobalSecondaryIndexDescription(value); + return ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S31_GlobalSecondaryIndexDescription((Amazon.DynamoDBv2.Model.GlobalSecondaryIndexDescription)value); } public static string FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S14_RestoreSummary__M15_SourceBackupArn(Wrappers_Compile._IOption> value) { @@ -9867,7 +9867,7 @@ public static System.DateTime FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S14_R } public static Dafny.ISequence ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S14_RestoreSummary__M15_RestoreDateTime(System.DateTime value) { - return ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S4_Date(value); + return ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S4_Date((System.DateTime)value); } public static bool FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S14_RestoreSummary__M17_RestoreInProgress(bool value) { @@ -9875,7 +9875,7 @@ public static bool FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S14_RestoreSumma } public static bool ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S14_RestoreSummary__M17_RestoreInProgress(bool value) { - return ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S17_RestoreInProgress(value); + return ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S17_RestoreInProgress((bool)value); } public static Amazon.DynamoDBv2.SSEStatus FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S14_SSEDescription__M6_Status(Wrappers_Compile._IOption value) { @@ -9955,7 +9955,7 @@ public static string FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S18_SourceTabl } public static Dafny.ISequence ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S18_SourceTableDetails__M9_TableName(string value) { - return ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S9_TableName(value); + return ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S9_TableName((string)value); } public static string FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S18_SourceTableDetails__M7_TableId(Dafny.ISequence value) { @@ -9963,7 +9963,7 @@ public static string FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S18_SourceTabl } public static Dafny.ISequence ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S18_SourceTableDetails__M7_TableId(string value) { - return ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S7_TableId(value); + return ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S7_TableId((string)value); } public static string FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S18_SourceTableDetails__M8_TableArn(Wrappers_Compile._IOption> value) { @@ -9987,7 +9987,7 @@ public static Wrappers_Compile._IOption ToDafny_N3_com__N9_amazonaws__N8_d } public static Dafny.ISequence ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S18_SourceTableDetails__M9_KeySchema(System.Collections.Generic.List value) { - return ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S9_KeySchema(value); + return ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S9_KeySchema((System.Collections.Generic.List)value); } public static System.DateTime FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S18_SourceTableDetails__M21_TableCreationDateTime(Dafny.ISequence value) { @@ -9995,7 +9995,7 @@ public static System.DateTime FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S18_S } public static Dafny.ISequence ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S18_SourceTableDetails__M21_TableCreationDateTime(System.DateTime value) { - return ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S21_TableCreationDateTime(value); + return ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S21_TableCreationDateTime((System.DateTime)value); } public static Amazon.DynamoDBv2.Model.ProvisionedThroughput FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S18_SourceTableDetails__M21_ProvisionedThroughput(software.amazon.cryptography.services.dynamodb.internaldafny.types._IProvisionedThroughput value) { @@ -10003,7 +10003,7 @@ public static Amazon.DynamoDBv2.Model.ProvisionedThroughput FromDafny_N3_com__N9 } public static software.amazon.cryptography.services.dynamodb.internaldafny.types._IProvisionedThroughput ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S18_SourceTableDetails__M21_ProvisionedThroughput(Amazon.DynamoDBv2.Model.ProvisionedThroughput value) { - return ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S21_ProvisionedThroughput(value); + return ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S21_ProvisionedThroughput((Amazon.DynamoDBv2.Model.ProvisionedThroughput)value); } public static Amazon.DynamoDBv2.Model.OnDemandThroughput FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S18_SourceTableDetails__M18_OnDemandThroughput(Wrappers_Compile._IOption value) { @@ -10131,7 +10131,7 @@ public static string FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S27_SecondaryI } public static Dafny.ISequence ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S27_SecondaryIndexesCapacityMap__M3_key(string value) { - return ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S9_IndexName(value); + return ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S9_IndexName((string)value); } public static Amazon.DynamoDBv2.Model.Capacity FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S27_SecondaryIndexesCapacityMap__M5_value(software.amazon.cryptography.services.dynamodb.internaldafny.types._ICapacity value) { @@ -10139,7 +10139,7 @@ public static Amazon.DynamoDBv2.Model.Capacity FromDafny_N3_com__N9_amazonaws__N } public static software.amazon.cryptography.services.dynamodb.internaldafny.types._ICapacity ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S27_SecondaryIndexesCapacityMap__M5_value(Amazon.DynamoDBv2.Model.Capacity value) { - return ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S8_Capacity(value); + return ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S8_Capacity((Amazon.DynamoDBv2.Model.Capacity)value); } public static string FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S29_ItemCollectionKeyAttributeMap__M3_key(Dafny.ISequence value) { @@ -10147,7 +10147,7 @@ public static string FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S29_ItemCollec } public static Dafny.ISequence ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S29_ItemCollectionKeyAttributeMap__M3_key(string value) { - return ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S13_AttributeName(value); + return ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S13_AttributeName((string)value); } public static Amazon.DynamoDBv2.Model.AttributeValue FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S29_ItemCollectionKeyAttributeMap__M5_value(software.amazon.cryptography.services.dynamodb.internaldafny.types._IAttributeValue value) { @@ -10155,7 +10155,7 @@ public static Amazon.DynamoDBv2.Model.AttributeValue FromDafny_N3_com__N9_amazon } public static software.amazon.cryptography.services.dynamodb.internaldafny.types._IAttributeValue ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S29_ItemCollectionKeyAttributeMap__M5_value(Amazon.DynamoDBv2.Model.AttributeValue value) { - return ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S14_AttributeValue(value); + return ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S14_AttributeValue((Amazon.DynamoDBv2.Model.AttributeValue)value); } public static double FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S31_ItemCollectionSizeEstimateRange__M6_member(Dafny.ISequence value) { @@ -10163,7 +10163,7 @@ public static double FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S31_ItemCollec } public static Dafny.ISequence ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S31_ItemCollectionSizeEstimateRange__M6_member(double value) { - return ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S31_ItemCollectionSizeEstimateBound(value); + return ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S31_ItemCollectionSizeEstimateBound((double)value); } public static Amazon.DynamoDBv2.PointInTimeRecoveryStatus FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S30_PointInTimeRecoveryDescription__M25_PointInTimeRecoveryStatus(Wrappers_Compile._IOption value) { @@ -10195,7 +10195,7 @@ public static string FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S8_Endpoint__M } public static Dafny.ISequence ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S8_Endpoint__M7_Address(string value) { - return ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S6_String(value); + return ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S6_String((string)value); } public static long FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S8_Endpoint__M20_CachePeriodInMinutes(long value) { @@ -10203,7 +10203,7 @@ public static long FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S8_Endpoint__M20 } public static long ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S8_Endpoint__M20_CachePeriodInMinutes(long value) { - return ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S4_Long(value); + return ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S4_Long((long)value); } public static string FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S26_ReplicaSettingsDescription__M10_RegionName(Dafny.ISequence value) { @@ -10211,7 +10211,7 @@ public static string FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S26_ReplicaSet } public static Dafny.ISequence ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S26_ReplicaSettingsDescription__M10_RegionName(string value) { - return ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S10_RegionName(value); + return ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S10_RegionName((string)value); } public static Amazon.DynamoDBv2.ReplicaStatus FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S26_ReplicaSettingsDescription__M13_ReplicaStatus(Wrappers_Compile._IOption value) { @@ -10315,7 +10315,7 @@ public static Amazon.DynamoDBv2.Model.ReplicaAutoScalingDescription FromDafny_N3 } public static software.amazon.cryptography.services.dynamodb.internaldafny.types._IReplicaAutoScalingDescription ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S33_ReplicaAutoScalingDescriptionList__M6_member(Amazon.DynamoDBv2.Model.ReplicaAutoScalingDescription value) { - return ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S29_ReplicaAutoScalingDescription(value); + return ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S29_ReplicaAutoScalingDescription((Amazon.DynamoDBv2.Model.ReplicaAutoScalingDescription)value); } public static string FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S22_ParameterizedStatement__M9_Statement(Dafny.ISequence value) { @@ -10323,7 +10323,7 @@ public static string FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S22_Parameteri } public static Dafny.ISequence ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S22_ParameterizedStatement__M9_Statement(string value) { - return ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S16_PartiQLStatement(value); + return ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S16_PartiQLStatement((string)value); } public static System.Collections.Generic.List FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S22_ParameterizedStatement__M10_Parameters(Wrappers_Compile._IOption> value) { @@ -10579,7 +10579,7 @@ public static Amazon.DynamoDBv2.ComparisonOperator FromDafny_N3_com__N9_amazonaw } public static software.amazon.cryptography.services.dynamodb.internaldafny.types._IComparisonOperator ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S9_Condition__M18_ComparisonOperator(Amazon.DynamoDBv2.ComparisonOperator value) { - return ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S18_ComparisonOperator(value); + return ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S18_ComparisonOperator((Amazon.DynamoDBv2.ComparisonOperator)value); } public static Amazon.DynamoDBv2.Model.Get FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S15_TransactGetItem__M3_Get(software.amazon.cryptography.services.dynamodb.internaldafny.types._IGet value) { @@ -10587,7 +10587,7 @@ public static Amazon.DynamoDBv2.Model.Get FromDafny_N3_com__N9_amazonaws__N8_dyn } public static software.amazon.cryptography.services.dynamodb.internaldafny.types._IGet ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S15_TransactGetItem__M3_Get(Amazon.DynamoDBv2.Model.Get value) { - return ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S3_Get(value); + return ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S3_Get((Amazon.DynamoDBv2.Model.Get)value); } public static System.Collections.Generic.Dictionary FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S18_CancellationReason__M4_Item(Wrappers_Compile._IOption, software.amazon.cryptography.services.dynamodb.internaldafny.types._IAttributeValue>> value) { @@ -10675,7 +10675,7 @@ public static Amazon.DynamoDBv2.Model.AutoScalingTargetTrackingScalingPolicyConf } public static software.amazon.cryptography.services.dynamodb.internaldafny.types._IAutoScalingTargetTrackingScalingPolicyConfigurationUpdate ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S23_AutoScalingPolicyUpdate__M40_TargetTrackingScalingPolicyConfiguration(Amazon.DynamoDBv2.Model.AutoScalingTargetTrackingScalingPolicyConfigurationUpdate value) { - return ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S57_AutoScalingTargetTrackingScalingPolicyConfigurationUpdate(value); + return ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S57_AutoScalingTargetTrackingScalingPolicyConfigurationUpdate((Amazon.DynamoDBv2.Model.AutoScalingTargetTrackingScalingPolicyConfigurationUpdate)value); } public static string FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S45_GlobalTableGlobalSecondaryIndexSettingsUpdate__M9_IndexName(Dafny.ISequence value) { @@ -10683,7 +10683,7 @@ public static string FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S45_GlobalTabl } public static Dafny.ISequence ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S45_GlobalTableGlobalSecondaryIndexSettingsUpdate__M9_IndexName(string value) { - return ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S9_IndexName(value); + return ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S9_IndexName((string)value); } public static long? FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S45_GlobalTableGlobalSecondaryIndexSettingsUpdate__M29_ProvisionedWriteCapacityUnits(Wrappers_Compile._IOption value) { @@ -10707,7 +10707,7 @@ public static string FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S21_ReplicaSet } public static Dafny.ISequence ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S21_ReplicaSettingsUpdate__M10_RegionName(string value) { - return ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S10_RegionName(value); + return ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S10_RegionName((string)value); } public static long? FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S21_ReplicaSettingsUpdate__M35_ReplicaProvisionedReadCapacityUnits(Wrappers_Compile._IOption value) { @@ -10827,7 +10827,7 @@ public static string FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S24_ReplicaAut } public static Dafny.ISequence ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S24_ReplicaAutoScalingUpdate__M10_RegionName(string value) { - return ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S10_RegionName(value); + return ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S10_RegionName((string)value); } public static System.Collections.Generic.List FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S24_ReplicaAutoScalingUpdate__M34_ReplicaGlobalSecondaryIndexUpdates(Wrappers_Compile._IOption> value) { @@ -10853,8 +10853,8 @@ public static Amazon.DynamoDBv2.Model.BatchStatementError FromDafny_N3_com__N9_a public static software.amazon.cryptography.services.dynamodb.internaldafny.types._IBatchStatementError ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S19_BatchStatementError(Amazon.DynamoDBv2.Model.BatchStatementError value) { - Amazon.DynamoDBv2.BatchStatementErrorCodeEnum var_code = value.Code; - string var_message = value.Message; + Amazon.DynamoDBv2.BatchStatementErrorCodeEnum var_code = (Amazon.DynamoDBv2.BatchStatementErrorCodeEnum)value.Code; + string var_message = (string)value.Message; return new software.amazon.cryptography.services.dynamodb.internaldafny.types.BatchStatementError(ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S19_BatchStatementError__M4_Code(var_code), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S19_BatchStatementError__M7_Message(var_message)); } public static System.Collections.Generic.List> FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S7_KeyList(Dafny.ISequence, software.amazon.cryptography.services.dynamodb.internaldafny.types._IAttributeValue>> value) @@ -10873,8 +10873,8 @@ public static Amazon.DynamoDBv2.Model.WriteRequest FromDafny_N3_com__N9_amazonaw public static software.amazon.cryptography.services.dynamodb.internaldafny.types._IWriteRequest ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S12_WriteRequest(Amazon.DynamoDBv2.Model.WriteRequest value) { - Amazon.DynamoDBv2.Model.PutRequest var_putRequest = value.PutRequest; - Amazon.DynamoDBv2.Model.DeleteRequest var_deleteRequest = value.DeleteRequest; + Amazon.DynamoDBv2.Model.PutRequest var_putRequest = (Amazon.DynamoDBv2.Model.PutRequest)value.PutRequest; + Amazon.DynamoDBv2.Model.DeleteRequest var_deleteRequest = (Amazon.DynamoDBv2.Model.DeleteRequest)value.DeleteRequest; return new software.amazon.cryptography.services.dynamodb.internaldafny.types.WriteRequest(ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S12_WriteRequest__M10_PutRequest(var_putRequest), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S12_WriteRequest__M13_DeleteRequest(var_deleteRequest)); } public static Amazon.DynamoDBv2.Model.ReplicaDescription FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S18_ReplicaDescription(software.amazon.cryptography.services.dynamodb.internaldafny.types._IReplicaDescription value) @@ -10893,16 +10893,16 @@ public static Amazon.DynamoDBv2.Model.ReplicaDescription FromDafny_N3_com__N9_am public static software.amazon.cryptography.services.dynamodb.internaldafny.types._IReplicaDescription ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S18_ReplicaDescription(Amazon.DynamoDBv2.Model.ReplicaDescription value) { - string var_regionName = value.RegionName; - Amazon.DynamoDBv2.ReplicaStatus var_replicaStatus = value.ReplicaStatus; - string var_replicaStatusDescription = value.ReplicaStatusDescription; - string var_replicaStatusPercentProgress = value.ReplicaStatusPercentProgress; - string var_kMSMasterKeyId = value.KMSMasterKeyId; - Amazon.DynamoDBv2.Model.ProvisionedThroughputOverride var_provisionedThroughputOverride = value.ProvisionedThroughputOverride; - Amazon.DynamoDBv2.Model.OnDemandThroughputOverride var_onDemandThroughputOverride = value.OnDemandThroughputOverride; - System.Collections.Generic.List var_globalSecondaryIndexes = value.GlobalSecondaryIndexes; - System.DateTime? var_replicaInaccessibleDateTime = value.ReplicaInaccessibleDateTime; - Amazon.DynamoDBv2.Model.TableClassSummary var_replicaTableClassSummary = value.ReplicaTableClassSummary; + string var_regionName = (string)value.RegionName; + Amazon.DynamoDBv2.ReplicaStatus var_replicaStatus = (Amazon.DynamoDBv2.ReplicaStatus)value.ReplicaStatus; + string var_replicaStatusDescription = (string)value.ReplicaStatusDescription; + string var_replicaStatusPercentProgress = (string)value.ReplicaStatusPercentProgress; + string var_kMSMasterKeyId = (string)value.KMSMasterKeyId; + Amazon.DynamoDBv2.Model.ProvisionedThroughputOverride var_provisionedThroughputOverride = (Amazon.DynamoDBv2.Model.ProvisionedThroughputOverride)value.ProvisionedThroughputOverride; + Amazon.DynamoDBv2.Model.OnDemandThroughputOverride var_onDemandThroughputOverride = (Amazon.DynamoDBv2.Model.OnDemandThroughputOverride)value.OnDemandThroughputOverride; + System.Collections.Generic.List var_globalSecondaryIndexes = (System.Collections.Generic.List)value.GlobalSecondaryIndexes; + System.DateTime? var_replicaInaccessibleDateTime = (System.DateTime?)value.ReplicaInaccessibleDateTime; + Amazon.DynamoDBv2.Model.TableClassSummary var_replicaTableClassSummary = (Amazon.DynamoDBv2.Model.TableClassSummary)value.ReplicaTableClassSummary; return new software.amazon.cryptography.services.dynamodb.internaldafny.types.ReplicaDescription(ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S18_ReplicaDescription__M10_RegionName(var_regionName), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S18_ReplicaDescription__M13_ReplicaStatus(var_replicaStatus), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S18_ReplicaDescription__M24_ReplicaStatusDescription(var_replicaStatusDescription), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S18_ReplicaDescription__M28_ReplicaStatusPercentProgress(var_replicaStatusPercentProgress), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S18_ReplicaDescription__M14_KMSMasterKeyId(var_kMSMasterKeyId), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S18_ReplicaDescription__M29_ProvisionedThroughputOverride(var_provisionedThroughputOverride), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S18_ReplicaDescription__M26_OnDemandThroughputOverride(var_onDemandThroughputOverride), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S18_ReplicaDescription__M22_GlobalSecondaryIndexes(var_globalSecondaryIndexes), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S18_ReplicaDescription__M27_ReplicaInaccessibleDateTime(var_replicaInaccessibleDateTime), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S18_ReplicaDescription__M24_ReplicaTableClassSummary(var_replicaTableClassSummary)); } public static string FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S22_KeySchemaAttributeName(Dafny.ISequence value) @@ -10947,8 +10947,8 @@ public static Amazon.DynamoDBv2.Model.Projection FromDafny_N3_com__N9_amazonaws_ public static software.amazon.cryptography.services.dynamodb.internaldafny.types._IProjection ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S10_Projection(Amazon.DynamoDBv2.Model.Projection value) { - Amazon.DynamoDBv2.ProjectionType var_projectionType = value.ProjectionType; - System.Collections.Generic.List var_nonKeyAttributes = value.NonKeyAttributes; + Amazon.DynamoDBv2.ProjectionType var_projectionType = (Amazon.DynamoDBv2.ProjectionType)value.ProjectionType; + System.Collections.Generic.List var_nonKeyAttributes = (System.Collections.Generic.List)value.NonKeyAttributes; return new software.amazon.cryptography.services.dynamodb.internaldafny.types.Projection(ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S10_Projection__M14_ProjectionType(var_projectionType), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S10_Projection__M16_NonKeyAttributes(var_nonKeyAttributes)); } public static string FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S14_TagValueString(Dafny.ISequence value) @@ -10979,12 +10979,12 @@ public static Amazon.DynamoDBv2.Model.LocalSecondaryIndexDescription FromDafny_N public static software.amazon.cryptography.services.dynamodb.internaldafny.types._ILocalSecondaryIndexDescription ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S30_LocalSecondaryIndexDescription(Amazon.DynamoDBv2.Model.LocalSecondaryIndexDescription value) { - string var_indexName = value.IndexName; - System.Collections.Generic.List var_keySchema = value.KeySchema; - Amazon.DynamoDBv2.Model.Projection var_projection = value.Projection; - long? var_indexSizeBytes = value.IndexSizeBytes; - long? var_itemCount = value.ItemCount; - string var_indexArn = value.IndexArn; + string var_indexName = (string)value.IndexName; + System.Collections.Generic.List var_keySchema = (System.Collections.Generic.List)value.KeySchema; + Amazon.DynamoDBv2.Model.Projection var_projection = (Amazon.DynamoDBv2.Model.Projection)value.Projection; + long? var_indexSizeBytes = (long?)value.IndexSizeBytes; + long? var_itemCount = (long?)value.ItemCount; + string var_indexArn = (string)value.IndexArn; return new software.amazon.cryptography.services.dynamodb.internaldafny.types.LocalSecondaryIndexDescription(ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S30_LocalSecondaryIndexDescription__M9_IndexName(var_indexName), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S30_LocalSecondaryIndexDescription__M9_KeySchema(var_keySchema), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S30_LocalSecondaryIndexDescription__M10_Projection(var_projection), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S30_LocalSecondaryIndexDescription__M14_IndexSizeBytes(var_indexSizeBytes), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S30_LocalSecondaryIndexDescription__M9_ItemCount(var_itemCount), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S30_LocalSecondaryIndexDescription__M8_IndexArn(var_indexArn)); } public static Amazon.DynamoDBv2.Model.GlobalSecondaryIndexDescription FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S31_GlobalSecondaryIndexDescription(software.amazon.cryptography.services.dynamodb.internaldafny.types._IGlobalSecondaryIndexDescription value) @@ -11003,16 +11003,16 @@ public static Amazon.DynamoDBv2.Model.GlobalSecondaryIndexDescription FromDafny_ public static software.amazon.cryptography.services.dynamodb.internaldafny.types._IGlobalSecondaryIndexDescription ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S31_GlobalSecondaryIndexDescription(Amazon.DynamoDBv2.Model.GlobalSecondaryIndexDescription value) { - string var_indexName = value.IndexName; - System.Collections.Generic.List var_keySchema = value.KeySchema; - Amazon.DynamoDBv2.Model.Projection var_projection = value.Projection; - Amazon.DynamoDBv2.IndexStatus var_indexStatus = value.IndexStatus; - bool? var_backfilling = value.Backfilling; - Amazon.DynamoDBv2.Model.ProvisionedThroughputDescription var_provisionedThroughput = value.ProvisionedThroughput; - long? var_indexSizeBytes = value.IndexSizeBytes; - long? var_itemCount = value.ItemCount; - string var_indexArn = value.IndexArn; - Amazon.DynamoDBv2.Model.OnDemandThroughput var_onDemandThroughput = value.OnDemandThroughput; + string var_indexName = (string)value.IndexName; + System.Collections.Generic.List var_keySchema = (System.Collections.Generic.List)value.KeySchema; + Amazon.DynamoDBv2.Model.Projection var_projection = (Amazon.DynamoDBv2.Model.Projection)value.Projection; + Amazon.DynamoDBv2.IndexStatus var_indexStatus = (Amazon.DynamoDBv2.IndexStatus)value.IndexStatus; + bool? var_backfilling = (bool?)value.Backfilling; + Amazon.DynamoDBv2.Model.ProvisionedThroughputDescription var_provisionedThroughput = (Amazon.DynamoDBv2.Model.ProvisionedThroughputDescription)value.ProvisionedThroughput; + long? var_indexSizeBytes = (long?)value.IndexSizeBytes; + long? var_itemCount = (long?)value.ItemCount; + string var_indexArn = (string)value.IndexArn; + Amazon.DynamoDBv2.Model.OnDemandThroughput var_onDemandThroughput = (Amazon.DynamoDBv2.Model.OnDemandThroughput)value.OnDemandThroughput; return new software.amazon.cryptography.services.dynamodb.internaldafny.types.GlobalSecondaryIndexDescription(ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S31_GlobalSecondaryIndexDescription__M9_IndexName(var_indexName), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S31_GlobalSecondaryIndexDescription__M9_KeySchema(var_keySchema), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S31_GlobalSecondaryIndexDescription__M10_Projection(var_projection), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S31_GlobalSecondaryIndexDescription__M11_IndexStatus(var_indexStatus), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S31_GlobalSecondaryIndexDescription__M11_Backfilling(var_backfilling), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S31_GlobalSecondaryIndexDescription__M21_ProvisionedThroughput(var_provisionedThroughput), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S31_GlobalSecondaryIndexDescription__M14_IndexSizeBytes(var_indexSizeBytes), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S31_GlobalSecondaryIndexDescription__M9_ItemCount(var_itemCount), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S31_GlobalSecondaryIndexDescription__M8_IndexArn(var_indexArn), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S31_GlobalSecondaryIndexDescription__M18_OnDemandThroughput(var_onDemandThroughput)); } public static bool FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S17_RestoreInProgress(bool value) @@ -11188,11 +11188,11 @@ public static Amazon.DynamoDBv2.Model.AutoScalingSettingsDescription FromDafny_N public static software.amazon.cryptography.services.dynamodb.internaldafny.types._IAutoScalingSettingsDescription ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S30_AutoScalingSettingsDescription(Amazon.DynamoDBv2.Model.AutoScalingSettingsDescription value) { - long? var_minimumUnits = value.MinimumUnits; - long? var_maximumUnits = value.MaximumUnits; - bool? var_autoScalingDisabled = value.AutoScalingDisabled; - string var_autoScalingRoleArn = value.AutoScalingRoleArn; - System.Collections.Generic.List var_scalingPolicies = value.ScalingPolicies; + long? var_minimumUnits = (long?)value.MinimumUnits; + long? var_maximumUnits = (long?)value.MaximumUnits; + bool? var_autoScalingDisabled = (bool?)value.AutoScalingDisabled; + string var_autoScalingRoleArn = (string)value.AutoScalingRoleArn; + System.Collections.Generic.List var_scalingPolicies = (System.Collections.Generic.List)value.ScalingPolicies; return new software.amazon.cryptography.services.dynamodb.internaldafny.types.AutoScalingSettingsDescription(ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S30_AutoScalingSettingsDescription__M12_MinimumUnits(var_minimumUnits), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S30_AutoScalingSettingsDescription__M12_MaximumUnits(var_maximumUnits), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S30_AutoScalingSettingsDescription__M19_AutoScalingDisabled(var_autoScalingDisabled), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S30_AutoScalingSettingsDescription__M18_AutoScalingRoleArn(var_autoScalingRoleArn), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S30_AutoScalingSettingsDescription__M15_ScalingPolicies(var_scalingPolicies)); } public static System.Collections.Generic.List FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S50_ReplicaGlobalSecondaryIndexSettingsDescriptionList(Dafny.ISequence value) @@ -11214,11 +11214,11 @@ public static Amazon.DynamoDBv2.Model.ReplicaAutoScalingDescription FromDafny_N3 public static software.amazon.cryptography.services.dynamodb.internaldafny.types._IReplicaAutoScalingDescription ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S29_ReplicaAutoScalingDescription(Amazon.DynamoDBv2.Model.ReplicaAutoScalingDescription value) { - string var_regionName = value.RegionName; - System.Collections.Generic.List var_globalSecondaryIndexes = value.GlobalSecondaryIndexes; - Amazon.DynamoDBv2.Model.AutoScalingSettingsDescription var_replicaProvisionedReadCapacityAutoScalingSettings = value.ReplicaProvisionedReadCapacityAutoScalingSettings; - Amazon.DynamoDBv2.Model.AutoScalingSettingsDescription var_replicaProvisionedWriteCapacityAutoScalingSettings = value.ReplicaProvisionedWriteCapacityAutoScalingSettings; - Amazon.DynamoDBv2.ReplicaStatus var_replicaStatus = value.ReplicaStatus; + string var_regionName = (string)value.RegionName; + System.Collections.Generic.List var_globalSecondaryIndexes = (System.Collections.Generic.List)value.GlobalSecondaryIndexes; + Amazon.DynamoDBv2.Model.AutoScalingSettingsDescription var_replicaProvisionedReadCapacityAutoScalingSettings = (Amazon.DynamoDBv2.Model.AutoScalingSettingsDescription)value.ReplicaProvisionedReadCapacityAutoScalingSettings; + Amazon.DynamoDBv2.Model.AutoScalingSettingsDescription var_replicaProvisionedWriteCapacityAutoScalingSettings = (Amazon.DynamoDBv2.Model.AutoScalingSettingsDescription)value.ReplicaProvisionedWriteCapacityAutoScalingSettings; + Amazon.DynamoDBv2.ReplicaStatus var_replicaStatus = (Amazon.DynamoDBv2.ReplicaStatus)value.ReplicaStatus; return new software.amazon.cryptography.services.dynamodb.internaldafny.types.ReplicaAutoScalingDescription(ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S29_ReplicaAutoScalingDescription__M10_RegionName(var_regionName), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S29_ReplicaAutoScalingDescription__M22_GlobalSecondaryIndexes(var_globalSecondaryIndexes), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S29_ReplicaAutoScalingDescription__M49_ReplicaProvisionedReadCapacityAutoScalingSettings(var_replicaProvisionedReadCapacityAutoScalingSettings), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S29_ReplicaAutoScalingDescription__M50_ReplicaProvisionedWriteCapacityAutoScalingSettings(var_replicaProvisionedWriteCapacityAutoScalingSettings), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S29_ReplicaAutoScalingDescription__M13_ReplicaStatus(var_replicaStatus)); } public static string FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S12_CsvDelimiter(Dafny.ISequence value) @@ -11247,8 +11247,8 @@ public static Amazon.DynamoDBv2.Model.Get FromDafny_N3_com__N9_amazonaws__N8_dyn public static software.amazon.cryptography.services.dynamodb.internaldafny.types._IGet ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S3_Get(Amazon.DynamoDBv2.Model.Get value) { - string var_projectionExpression = value.ProjectionExpression; - System.Collections.Generic.Dictionary var_expressionAttributeNames = value.ExpressionAttributeNames; + string var_projectionExpression = (string)value.ProjectionExpression; + System.Collections.Generic.Dictionary var_expressionAttributeNames = (System.Collections.Generic.Dictionary)value.ExpressionAttributeNames; return new software.amazon.cryptography.services.dynamodb.internaldafny.types.Get(ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S3_Get__M3_Key(value.Key), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S3_Get__M9_TableName(value.TableName), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S3_Get__M20_ProjectionExpression(var_projectionExpression), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S3_Get__M24_ExpressionAttributeNames(var_expressionAttributeNames)); } public static string FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S4_Code(Dafny.ISequence value) @@ -11271,9 +11271,9 @@ public static Amazon.DynamoDBv2.Model.ConditionCheck FromDafny_N3_com__N9_amazon public static software.amazon.cryptography.services.dynamodb.internaldafny.types._IConditionCheck ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S14_ConditionCheck(Amazon.DynamoDBv2.Model.ConditionCheck value) { - System.Collections.Generic.Dictionary var_expressionAttributeNames = value.ExpressionAttributeNames; - System.Collections.Generic.Dictionary var_expressionAttributeValues = value.ExpressionAttributeValues; - Amazon.DynamoDBv2.ReturnValuesOnConditionCheckFailure var_returnValuesOnConditionCheckFailure = value.ReturnValuesOnConditionCheckFailure; + System.Collections.Generic.Dictionary var_expressionAttributeNames = (System.Collections.Generic.Dictionary)value.ExpressionAttributeNames; + System.Collections.Generic.Dictionary var_expressionAttributeValues = (System.Collections.Generic.Dictionary)value.ExpressionAttributeValues; + Amazon.DynamoDBv2.ReturnValuesOnConditionCheckFailure var_returnValuesOnConditionCheckFailure = (Amazon.DynamoDBv2.ReturnValuesOnConditionCheckFailure)value.ReturnValuesOnConditionCheckFailure; return new software.amazon.cryptography.services.dynamodb.internaldafny.types.ConditionCheck(ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S14_ConditionCheck__M3_Key(value.Key), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S14_ConditionCheck__M9_TableName(value.TableName), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S14_ConditionCheck__M19_ConditionExpression(value.ConditionExpression), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S14_ConditionCheck__M24_ExpressionAttributeNames(var_expressionAttributeNames), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S14_ConditionCheck__M25_ExpressionAttributeValues(var_expressionAttributeValues), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S14_ConditionCheck__M35_ReturnValuesOnConditionCheckFailure(var_returnValuesOnConditionCheckFailure)); } public static Amazon.DynamoDBv2.Model.Put FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S3_Put(software.amazon.cryptography.services.dynamodb.internaldafny.types._IPut value) @@ -11288,10 +11288,10 @@ public static Amazon.DynamoDBv2.Model.Put FromDafny_N3_com__N9_amazonaws__N8_dyn public static software.amazon.cryptography.services.dynamodb.internaldafny.types._IPut ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S3_Put(Amazon.DynamoDBv2.Model.Put value) { - string var_conditionExpression = value.ConditionExpression; - System.Collections.Generic.Dictionary var_expressionAttributeNames = value.ExpressionAttributeNames; - System.Collections.Generic.Dictionary var_expressionAttributeValues = value.ExpressionAttributeValues; - Amazon.DynamoDBv2.ReturnValuesOnConditionCheckFailure var_returnValuesOnConditionCheckFailure = value.ReturnValuesOnConditionCheckFailure; + string var_conditionExpression = (string)value.ConditionExpression; + System.Collections.Generic.Dictionary var_expressionAttributeNames = (System.Collections.Generic.Dictionary)value.ExpressionAttributeNames; + System.Collections.Generic.Dictionary var_expressionAttributeValues = (System.Collections.Generic.Dictionary)value.ExpressionAttributeValues; + Amazon.DynamoDBv2.ReturnValuesOnConditionCheckFailure var_returnValuesOnConditionCheckFailure = (Amazon.DynamoDBv2.ReturnValuesOnConditionCheckFailure)value.ReturnValuesOnConditionCheckFailure; return new software.amazon.cryptography.services.dynamodb.internaldafny.types.Put(ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S3_Put__M4_Item(value.Item), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S3_Put__M9_TableName(value.TableName), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S3_Put__M19_ConditionExpression(var_conditionExpression), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S3_Put__M24_ExpressionAttributeNames(var_expressionAttributeNames), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S3_Put__M25_ExpressionAttributeValues(var_expressionAttributeValues), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S3_Put__M35_ReturnValuesOnConditionCheckFailure(var_returnValuesOnConditionCheckFailure)); } public static Amazon.DynamoDBv2.Model.Delete FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S6_Delete(software.amazon.cryptography.services.dynamodb.internaldafny.types._IDelete value) @@ -11306,10 +11306,10 @@ public static Amazon.DynamoDBv2.Model.Delete FromDafny_N3_com__N9_amazonaws__N8_ public static software.amazon.cryptography.services.dynamodb.internaldafny.types._IDelete ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S6_Delete(Amazon.DynamoDBv2.Model.Delete value) { - string var_conditionExpression = value.ConditionExpression; - System.Collections.Generic.Dictionary var_expressionAttributeNames = value.ExpressionAttributeNames; - System.Collections.Generic.Dictionary var_expressionAttributeValues = value.ExpressionAttributeValues; - Amazon.DynamoDBv2.ReturnValuesOnConditionCheckFailure var_returnValuesOnConditionCheckFailure = value.ReturnValuesOnConditionCheckFailure; + string var_conditionExpression = (string)value.ConditionExpression; + System.Collections.Generic.Dictionary var_expressionAttributeNames = (System.Collections.Generic.Dictionary)value.ExpressionAttributeNames; + System.Collections.Generic.Dictionary var_expressionAttributeValues = (System.Collections.Generic.Dictionary)value.ExpressionAttributeValues; + Amazon.DynamoDBv2.ReturnValuesOnConditionCheckFailure var_returnValuesOnConditionCheckFailure = (Amazon.DynamoDBv2.ReturnValuesOnConditionCheckFailure)value.ReturnValuesOnConditionCheckFailure; return new software.amazon.cryptography.services.dynamodb.internaldafny.types.Delete(ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S6_Delete__M3_Key(value.Key), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S6_Delete__M9_TableName(value.TableName), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S6_Delete__M19_ConditionExpression(var_conditionExpression), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S6_Delete__M24_ExpressionAttributeNames(var_expressionAttributeNames), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S6_Delete__M25_ExpressionAttributeValues(var_expressionAttributeValues), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S6_Delete__M35_ReturnValuesOnConditionCheckFailure(var_returnValuesOnConditionCheckFailure)); } public static Amazon.DynamoDBv2.Model.Update FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S6_Update(software.amazon.cryptography.services.dynamodb.internaldafny.types._IUpdate value) @@ -11325,10 +11325,10 @@ public static Amazon.DynamoDBv2.Model.Update FromDafny_N3_com__N9_amazonaws__N8_ public static software.amazon.cryptography.services.dynamodb.internaldafny.types._IUpdate ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S6_Update(Amazon.DynamoDBv2.Model.Update value) { - string var_conditionExpression = value.ConditionExpression; - System.Collections.Generic.Dictionary var_expressionAttributeNames = value.ExpressionAttributeNames; - System.Collections.Generic.Dictionary var_expressionAttributeValues = value.ExpressionAttributeValues; - Amazon.DynamoDBv2.ReturnValuesOnConditionCheckFailure var_returnValuesOnConditionCheckFailure = value.ReturnValuesOnConditionCheckFailure; + string var_conditionExpression = (string)value.ConditionExpression; + System.Collections.Generic.Dictionary var_expressionAttributeNames = (System.Collections.Generic.Dictionary)value.ExpressionAttributeNames; + System.Collections.Generic.Dictionary var_expressionAttributeValues = (System.Collections.Generic.Dictionary)value.ExpressionAttributeValues; + Amazon.DynamoDBv2.ReturnValuesOnConditionCheckFailure var_returnValuesOnConditionCheckFailure = (Amazon.DynamoDBv2.ReturnValuesOnConditionCheckFailure)value.ReturnValuesOnConditionCheckFailure; return new software.amazon.cryptography.services.dynamodb.internaldafny.types.Update(ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S6_Update__M3_Key(value.Key), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S6_Update__M16_UpdateExpression(value.UpdateExpression), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S6_Update__M9_TableName(value.TableName), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S6_Update__M19_ConditionExpression(var_conditionExpression), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S6_Update__M24_ExpressionAttributeNames(var_expressionAttributeNames), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S6_Update__M25_ExpressionAttributeValues(var_expressionAttributeValues), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S6_Update__M35_ReturnValuesOnConditionCheckFailure(var_returnValuesOnConditionCheckFailure)); } public static Amazon.DynamoDBv2.Model.CreateReplicaAction FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S19_CreateReplicaAction(software.amazon.cryptography.services.dynamodb.internaldafny.types._ICreateReplicaAction value) @@ -11369,9 +11369,9 @@ public static Amazon.DynamoDBv2.Model.AutoScalingTargetTrackingScalingPolicyConf public static software.amazon.cryptography.services.dynamodb.internaldafny.types._IAutoScalingTargetTrackingScalingPolicyConfigurationUpdate ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S57_AutoScalingTargetTrackingScalingPolicyConfigurationUpdate(Amazon.DynamoDBv2.Model.AutoScalingTargetTrackingScalingPolicyConfigurationUpdate value) { - bool? var_disableScaleIn = value.DisableScaleIn; - int? var_scaleInCooldown = value.ScaleInCooldown; - int? var_scaleOutCooldown = value.ScaleOutCooldown; + bool? var_disableScaleIn = (bool?)value.DisableScaleIn; + int? var_scaleInCooldown = (int?)value.ScaleInCooldown; + int? var_scaleOutCooldown = (int?)value.ScaleOutCooldown; return new software.amazon.cryptography.services.dynamodb.internaldafny.types.AutoScalingTargetTrackingScalingPolicyConfigurationUpdate(ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S57_AutoScalingTargetTrackingScalingPolicyConfigurationUpdate__M14_DisableScaleIn(var_disableScaleIn), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S57_AutoScalingTargetTrackingScalingPolicyConfigurationUpdate__M15_ScaleInCooldown(var_scaleInCooldown), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S57_AutoScalingTargetTrackingScalingPolicyConfigurationUpdate__M16_ScaleOutCooldown(var_scaleOutCooldown), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S57_AutoScalingTargetTrackingScalingPolicyConfigurationUpdate__M11_TargetValue((int)value.TargetValue)); } public static System.Collections.Generic.List FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S45_ReplicaGlobalSecondaryIndexSettingsUpdateList(Dafny.ISequence value) @@ -11405,8 +11405,8 @@ public static Amazon.DynamoDBv2.Model.UpdateGlobalSecondaryIndexAction FromDafny public static software.amazon.cryptography.services.dynamodb.internaldafny.types._IUpdateGlobalSecondaryIndexAction ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S32_UpdateGlobalSecondaryIndexAction(Amazon.DynamoDBv2.Model.UpdateGlobalSecondaryIndexAction value) { - Amazon.DynamoDBv2.Model.ProvisionedThroughput var_provisionedThroughput = value.ProvisionedThroughput; - Amazon.DynamoDBv2.Model.OnDemandThroughput var_onDemandThroughput = value.OnDemandThroughput; + Amazon.DynamoDBv2.Model.ProvisionedThroughput var_provisionedThroughput = (Amazon.DynamoDBv2.Model.ProvisionedThroughput)value.ProvisionedThroughput; + Amazon.DynamoDBv2.Model.OnDemandThroughput var_onDemandThroughput = (Amazon.DynamoDBv2.Model.OnDemandThroughput)value.OnDemandThroughput; return new software.amazon.cryptography.services.dynamodb.internaldafny.types.UpdateGlobalSecondaryIndexAction(ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S32_UpdateGlobalSecondaryIndexAction__M9_IndexName(value.IndexName), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S32_UpdateGlobalSecondaryIndexAction__M21_ProvisionedThroughput(var_provisionedThroughput), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S32_UpdateGlobalSecondaryIndexAction__M18_OnDemandThroughput(var_onDemandThroughput)); } public static Amazon.DynamoDBv2.Model.CreateGlobalSecondaryIndexAction FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S32_CreateGlobalSecondaryIndexAction(software.amazon.cryptography.services.dynamodb.internaldafny.types._ICreateGlobalSecondaryIndexAction value) @@ -11420,8 +11420,8 @@ public static Amazon.DynamoDBv2.Model.CreateGlobalSecondaryIndexAction FromDafny public static software.amazon.cryptography.services.dynamodb.internaldafny.types._ICreateGlobalSecondaryIndexAction ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S32_CreateGlobalSecondaryIndexAction(Amazon.DynamoDBv2.Model.CreateGlobalSecondaryIndexAction value) { - Amazon.DynamoDBv2.Model.ProvisionedThroughput var_provisionedThroughput = value.ProvisionedThroughput; - Amazon.DynamoDBv2.Model.OnDemandThroughput var_onDemandThroughput = value.OnDemandThroughput; + Amazon.DynamoDBv2.Model.ProvisionedThroughput var_provisionedThroughput = (Amazon.DynamoDBv2.Model.ProvisionedThroughput)value.ProvisionedThroughput; + Amazon.DynamoDBv2.Model.OnDemandThroughput var_onDemandThroughput = (Amazon.DynamoDBv2.Model.OnDemandThroughput)value.OnDemandThroughput; return new software.amazon.cryptography.services.dynamodb.internaldafny.types.CreateGlobalSecondaryIndexAction(ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S32_CreateGlobalSecondaryIndexAction__M9_IndexName(value.IndexName), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S32_CreateGlobalSecondaryIndexAction__M9_KeySchema(value.KeySchema), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S32_CreateGlobalSecondaryIndexAction__M10_Projection(value.Projection), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S32_CreateGlobalSecondaryIndexAction__M21_ProvisionedThroughput(var_provisionedThroughput), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S32_CreateGlobalSecondaryIndexAction__M18_OnDemandThroughput(var_onDemandThroughput)); } public static Amazon.DynamoDBv2.Model.DeleteGlobalSecondaryIndexAction FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S32_DeleteGlobalSecondaryIndexAction(software.amazon.cryptography.services.dynamodb.internaldafny.types._IDeleteGlobalSecondaryIndexAction value) @@ -11446,11 +11446,11 @@ public static Amazon.DynamoDBv2.Model.CreateReplicationGroupMemberAction FromDaf public static software.amazon.cryptography.services.dynamodb.internaldafny.types._ICreateReplicationGroupMemberAction ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S34_CreateReplicationGroupMemberAction(Amazon.DynamoDBv2.Model.CreateReplicationGroupMemberAction value) { - string var_kMSMasterKeyId = value.KMSMasterKeyId; - Amazon.DynamoDBv2.Model.ProvisionedThroughputOverride var_provisionedThroughputOverride = value.ProvisionedThroughputOverride; - Amazon.DynamoDBv2.Model.OnDemandThroughputOverride var_onDemandThroughputOverride = value.OnDemandThroughputOverride; - System.Collections.Generic.List var_globalSecondaryIndexes = value.GlobalSecondaryIndexes; - Amazon.DynamoDBv2.TableClass var_tableClassOverride = value.TableClassOverride; + string var_kMSMasterKeyId = (string)value.KMSMasterKeyId; + Amazon.DynamoDBv2.Model.ProvisionedThroughputOverride var_provisionedThroughputOverride = (Amazon.DynamoDBv2.Model.ProvisionedThroughputOverride)value.ProvisionedThroughputOverride; + Amazon.DynamoDBv2.Model.OnDemandThroughputOverride var_onDemandThroughputOverride = (Amazon.DynamoDBv2.Model.OnDemandThroughputOverride)value.OnDemandThroughputOverride; + System.Collections.Generic.List var_globalSecondaryIndexes = (System.Collections.Generic.List)value.GlobalSecondaryIndexes; + Amazon.DynamoDBv2.TableClass var_tableClassOverride = (Amazon.DynamoDBv2.TableClass)value.TableClassOverride; return new software.amazon.cryptography.services.dynamodb.internaldafny.types.CreateReplicationGroupMemberAction(ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S34_CreateReplicationGroupMemberAction__M10_RegionName(value.RegionName), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S34_CreateReplicationGroupMemberAction__M14_KMSMasterKeyId(var_kMSMasterKeyId), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S34_CreateReplicationGroupMemberAction__M29_ProvisionedThroughputOverride(var_provisionedThroughputOverride), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S34_CreateReplicationGroupMemberAction__M26_OnDemandThroughputOverride(var_onDemandThroughputOverride), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S34_CreateReplicationGroupMemberAction__M22_GlobalSecondaryIndexes(var_globalSecondaryIndexes), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S34_CreateReplicationGroupMemberAction__M18_TableClassOverride(var_tableClassOverride)); } public static Amazon.DynamoDBv2.Model.UpdateReplicationGroupMemberAction FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S34_UpdateReplicationGroupMemberAction(software.amazon.cryptography.services.dynamodb.internaldafny.types._IUpdateReplicationGroupMemberAction value) @@ -11465,11 +11465,11 @@ public static Amazon.DynamoDBv2.Model.UpdateReplicationGroupMemberAction FromDaf public static software.amazon.cryptography.services.dynamodb.internaldafny.types._IUpdateReplicationGroupMemberAction ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S34_UpdateReplicationGroupMemberAction(Amazon.DynamoDBv2.Model.UpdateReplicationGroupMemberAction value) { - string var_kMSMasterKeyId = value.KMSMasterKeyId; - Amazon.DynamoDBv2.Model.ProvisionedThroughputOverride var_provisionedThroughputOverride = value.ProvisionedThroughputOverride; - Amazon.DynamoDBv2.Model.OnDemandThroughputOverride var_onDemandThroughputOverride = value.OnDemandThroughputOverride; - System.Collections.Generic.List var_globalSecondaryIndexes = value.GlobalSecondaryIndexes; - Amazon.DynamoDBv2.TableClass var_tableClassOverride = value.TableClassOverride; + string var_kMSMasterKeyId = (string)value.KMSMasterKeyId; + Amazon.DynamoDBv2.Model.ProvisionedThroughputOverride var_provisionedThroughputOverride = (Amazon.DynamoDBv2.Model.ProvisionedThroughputOverride)value.ProvisionedThroughputOverride; + Amazon.DynamoDBv2.Model.OnDemandThroughputOverride var_onDemandThroughputOverride = (Amazon.DynamoDBv2.Model.OnDemandThroughputOverride)value.OnDemandThroughputOverride; + System.Collections.Generic.List var_globalSecondaryIndexes = (System.Collections.Generic.List)value.GlobalSecondaryIndexes; + Amazon.DynamoDBv2.TableClass var_tableClassOverride = (Amazon.DynamoDBv2.TableClass)value.TableClassOverride; return new software.amazon.cryptography.services.dynamodb.internaldafny.types.UpdateReplicationGroupMemberAction(ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S34_UpdateReplicationGroupMemberAction__M10_RegionName(value.RegionName), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S34_UpdateReplicationGroupMemberAction__M14_KMSMasterKeyId(var_kMSMasterKeyId), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S34_UpdateReplicationGroupMemberAction__M29_ProvisionedThroughputOverride(var_provisionedThroughputOverride), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S34_UpdateReplicationGroupMemberAction__M26_OnDemandThroughputOverride(var_onDemandThroughputOverride), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S34_UpdateReplicationGroupMemberAction__M22_GlobalSecondaryIndexes(var_globalSecondaryIndexes), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S34_UpdateReplicationGroupMemberAction__M18_TableClassOverride(var_tableClassOverride)); } public static Amazon.DynamoDBv2.Model.DeleteReplicationGroupMemberAction FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S34_DeleteReplicationGroupMemberAction(software.amazon.cryptography.services.dynamodb.internaldafny.types._IDeleteReplicationGroupMemberAction value) @@ -11512,7 +11512,7 @@ public static string FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S19_BatchState } public static Dafny.IMap, software.amazon.cryptography.services.dynamodb.internaldafny.types._IAttributeValue> ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S7_KeyList__M6_member(System.Collections.Generic.Dictionary value) { - return ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S3_Key(value); + return ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S3_Key((System.Collections.Generic.Dictionary)value); } public static Amazon.DynamoDBv2.Model.PutRequest FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S12_WriteRequest__M10_PutRequest(Wrappers_Compile._IOption value) { @@ -11766,7 +11766,7 @@ public static Amazon.DynamoDBv2.Model.LocalSecondaryIndexInfo FromDafny_N3_com__ } public static software.amazon.cryptography.services.dynamodb.internaldafny.types._ILocalSecondaryIndexInfo ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S21_LocalSecondaryIndexes__M6_member(Amazon.DynamoDBv2.Model.LocalSecondaryIndexInfo value) { - return ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S23_LocalSecondaryIndexInfo(value); + return ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S23_LocalSecondaryIndexInfo((Amazon.DynamoDBv2.Model.LocalSecondaryIndexInfo)value); } public static Amazon.DynamoDBv2.Model.GlobalSecondaryIndexInfo FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S22_GlobalSecondaryIndexes__M6_member(software.amazon.cryptography.services.dynamodb.internaldafny.types._IGlobalSecondaryIndexInfo value) { @@ -11774,7 +11774,7 @@ public static Amazon.DynamoDBv2.Model.GlobalSecondaryIndexInfo FromDafny_N3_com_ } public static software.amazon.cryptography.services.dynamodb.internaldafny.types._IGlobalSecondaryIndexInfo ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S22_GlobalSecondaryIndexes__M6_member(Amazon.DynamoDBv2.Model.GlobalSecondaryIndexInfo value) { - return ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S24_GlobalSecondaryIndexInfo(value); + return ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S24_GlobalSecondaryIndexInfo((Amazon.DynamoDBv2.Model.GlobalSecondaryIndexInfo)value); } public static Amazon.DynamoDBv2.Model.AttributeValue FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S18_AttributeValueList__M6_member(software.amazon.cryptography.services.dynamodb.internaldafny.types._IAttributeValue value) { @@ -11782,7 +11782,7 @@ public static Amazon.DynamoDBv2.Model.AttributeValue FromDafny_N3_com__N9_amazon } public static software.amazon.cryptography.services.dynamodb.internaldafny.types._IAttributeValue ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S18_AttributeValueList__M6_member(Amazon.DynamoDBv2.Model.AttributeValue value) { - return ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S14_AttributeValue(value); + return ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S14_AttributeValue((Amazon.DynamoDBv2.Model.AttributeValue)value); } public static long? FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S30_AutoScalingSettingsDescription__M12_MinimumUnits(Wrappers_Compile._IOption value) { @@ -11830,7 +11830,7 @@ public static Amazon.DynamoDBv2.Model.ReplicaGlobalSecondaryIndexSettingsDescrip } public static software.amazon.cryptography.services.dynamodb.internaldafny.types._IReplicaGlobalSecondaryIndexSettingsDescription ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S50_ReplicaGlobalSecondaryIndexSettingsDescriptionList__M6_member(Amazon.DynamoDBv2.Model.ReplicaGlobalSecondaryIndexSettingsDescription value) { - return ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S46_ReplicaGlobalSecondaryIndexSettingsDescription(value); + return ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S46_ReplicaGlobalSecondaryIndexSettingsDescription((Amazon.DynamoDBv2.Model.ReplicaGlobalSecondaryIndexSettingsDescription)value); } public static string FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S29_ReplicaAutoScalingDescription__M10_RegionName(Wrappers_Compile._IOption> value) { @@ -11878,7 +11878,7 @@ public static string FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S13_CsvHeaderL } public static Dafny.ISequence ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S13_CsvHeaderList__M6_member(string value) { - return ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S9_CsvHeader(value); + return ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S9_CsvHeader((string)value); } public static System.Collections.Generic.Dictionary FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S3_Get__M3_Key(Dafny.IMap, software.amazon.cryptography.services.dynamodb.internaldafny.types._IAttributeValue> value) { @@ -11886,7 +11886,7 @@ public static Dafny.ISequence ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S } public static Dafny.IMap, software.amazon.cryptography.services.dynamodb.internaldafny.types._IAttributeValue> ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S3_Get__M3_Key(System.Collections.Generic.Dictionary value) { - return ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S3_Key(value); + return ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S3_Key((System.Collections.Generic.Dictionary)value); } public static string FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S3_Get__M9_TableName(Dafny.ISequence value) { @@ -11894,7 +11894,7 @@ public static string FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S3_Get__M9_Tab } public static Dafny.ISequence ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S3_Get__M9_TableName(string value) { - return ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S8_TableArn(value); + return ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S8_TableArn((string)value); } public static string FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S3_Get__M20_ProjectionExpression(Wrappers_Compile._IOption> value) { @@ -11918,7 +11918,7 @@ public static System.Collections.Generic.Dictionary FromDafny_N3 } public static Dafny.IMap, software.amazon.cryptography.services.dynamodb.internaldafny.types._IAttributeValue> ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S14_ConditionCheck__M3_Key(System.Collections.Generic.Dictionary value) { - return ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S3_Key(value); + return ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S3_Key((System.Collections.Generic.Dictionary)value); } public static string FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S14_ConditionCheck__M9_TableName(Dafny.ISequence value) { @@ -11926,7 +11926,7 @@ public static string FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S14_ConditionC } public static Dafny.ISequence ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S14_ConditionCheck__M9_TableName(string value) { - return ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S8_TableArn(value); + return ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S8_TableArn((string)value); } public static string FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S14_ConditionCheck__M19_ConditionExpression(Dafny.ISequence value) { @@ -11934,7 +11934,7 @@ public static string FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S14_ConditionC } public static Dafny.ISequence ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S14_ConditionCheck__M19_ConditionExpression(string value) { - return ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S19_ConditionExpression(value); + return ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S19_ConditionExpression((string)value); } public static System.Collections.Generic.Dictionary FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S14_ConditionCheck__M24_ExpressionAttributeNames(Wrappers_Compile._IOption, Dafny.ISequence>> value) { @@ -11966,7 +11966,7 @@ public static Amazon.DynamoDBv2.ReturnValuesOnConditionCheckFailure FromDafny_N3 } public static Dafny.IMap, software.amazon.cryptography.services.dynamodb.internaldafny.types._IAttributeValue> ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S3_Put__M4_Item(System.Collections.Generic.Dictionary value) { - return ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S24_PutItemInputAttributeMap(value); + return ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S24_PutItemInputAttributeMap((System.Collections.Generic.Dictionary)value); } public static string FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S3_Put__M9_TableName(Dafny.ISequence value) { @@ -11974,7 +11974,7 @@ public static string FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S3_Put__M9_Tab } public static Dafny.ISequence ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S3_Put__M9_TableName(string value) { - return ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S8_TableArn(value); + return ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S8_TableArn((string)value); } public static string FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S3_Put__M19_ConditionExpression(Wrappers_Compile._IOption> value) { @@ -12014,7 +12014,7 @@ public static Amazon.DynamoDBv2.ReturnValuesOnConditionCheckFailure FromDafny_N3 } public static Dafny.IMap, software.amazon.cryptography.services.dynamodb.internaldafny.types._IAttributeValue> ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S6_Delete__M3_Key(System.Collections.Generic.Dictionary value) { - return ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S3_Key(value); + return ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S3_Key((System.Collections.Generic.Dictionary)value); } public static string FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S6_Delete__M9_TableName(Dafny.ISequence value) { @@ -12022,7 +12022,7 @@ public static string FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S6_Delete__M9_ } public static Dafny.ISequence ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S6_Delete__M9_TableName(string value) { - return ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S8_TableArn(value); + return ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S8_TableArn((string)value); } public static string FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S6_Delete__M19_ConditionExpression(Wrappers_Compile._IOption> value) { @@ -12062,7 +12062,7 @@ public static Amazon.DynamoDBv2.ReturnValuesOnConditionCheckFailure FromDafny_N3 } public static Dafny.IMap, software.amazon.cryptography.services.dynamodb.internaldafny.types._IAttributeValue> ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S6_Update__M3_Key(System.Collections.Generic.Dictionary value) { - return ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S3_Key(value); + return ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S3_Key((System.Collections.Generic.Dictionary)value); } public static string FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S6_Update__M16_UpdateExpression(Dafny.ISequence value) { @@ -12070,7 +12070,7 @@ public static string FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S6_Update__M16 } public static Dafny.ISequence ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S6_Update__M16_UpdateExpression(string value) { - return ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S16_UpdateExpression(value); + return ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S16_UpdateExpression((string)value); } public static string FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S6_Update__M9_TableName(Dafny.ISequence value) { @@ -12078,7 +12078,7 @@ public static string FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S6_Update__M9_ } public static Dafny.ISequence ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S6_Update__M9_TableName(string value) { - return ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S8_TableArn(value); + return ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S8_TableArn((string)value); } public static string FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S6_Update__M19_ConditionExpression(Wrappers_Compile._IOption> value) { @@ -12118,7 +12118,7 @@ public static string FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S19_CreateRepl } public static Dafny.ISequence ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S19_CreateReplicaAction__M10_RegionName(string value) { - return ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S10_RegionName(value); + return ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S10_RegionName((string)value); } public static string FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S19_DeleteReplicaAction__M10_RegionName(Dafny.ISequence value) { @@ -12126,7 +12126,7 @@ public static string FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S19_DeleteRepl } public static Dafny.ISequence ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S19_DeleteReplicaAction__M10_RegionName(string value) { - return ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S10_RegionName(value); + return ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S10_RegionName((string)value); } public static bool? FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S57_AutoScalingTargetTrackingScalingPolicyConfigurationUpdate__M14_DisableScaleIn(Wrappers_Compile._IOption value) { @@ -12158,7 +12158,7 @@ public static double FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S57_AutoScalin } public static Dafny.ISequence ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S57_AutoScalingTargetTrackingScalingPolicyConfigurationUpdate__M11_TargetValue(double value) { - return ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S12_DoubleObject(value); + return ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S12_DoubleObject((double)value); } public static Amazon.DynamoDBv2.Model.ReplicaGlobalSecondaryIndexSettingsUpdate FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S45_ReplicaGlobalSecondaryIndexSettingsUpdateList__M6_member(software.amazon.cryptography.services.dynamodb.internaldafny.types._IReplicaGlobalSecondaryIndexSettingsUpdate value) { @@ -12166,7 +12166,7 @@ public static Amazon.DynamoDBv2.Model.ReplicaGlobalSecondaryIndexSettingsUpdate } public static software.amazon.cryptography.services.dynamodb.internaldafny.types._IReplicaGlobalSecondaryIndexSettingsUpdate ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S45_ReplicaGlobalSecondaryIndexSettingsUpdateList__M6_member(Amazon.DynamoDBv2.Model.ReplicaGlobalSecondaryIndexSettingsUpdate value) { - return ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S41_ReplicaGlobalSecondaryIndexSettingsUpdate(value); + return ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S41_ReplicaGlobalSecondaryIndexSettingsUpdate((Amazon.DynamoDBv2.Model.ReplicaGlobalSecondaryIndexSettingsUpdate)value); } public static string FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S32_UpdateGlobalSecondaryIndexAction__M9_IndexName(Dafny.ISequence value) { @@ -12174,7 +12174,7 @@ public static string FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S32_UpdateGlob } public static Dafny.ISequence ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S32_UpdateGlobalSecondaryIndexAction__M9_IndexName(string value) { - return ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S9_IndexName(value); + return ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S9_IndexName((string)value); } public static Amazon.DynamoDBv2.Model.ProvisionedThroughput FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S32_UpdateGlobalSecondaryIndexAction__M21_ProvisionedThroughput(Wrappers_Compile._IOption value) { @@ -12198,7 +12198,7 @@ public static string FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S32_CreateGlob } public static Dafny.ISequence ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S32_CreateGlobalSecondaryIndexAction__M9_IndexName(string value) { - return ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S9_IndexName(value); + return ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S9_IndexName((string)value); } public static System.Collections.Generic.List FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S32_CreateGlobalSecondaryIndexAction__M9_KeySchema(Dafny.ISequence value) { @@ -12206,7 +12206,7 @@ public static Dafny.ISequence ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S } public static Dafny.ISequence ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S32_CreateGlobalSecondaryIndexAction__M9_KeySchema(System.Collections.Generic.List value) { - return ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S9_KeySchema(value); + return ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S9_KeySchema((System.Collections.Generic.List)value); } public static Amazon.DynamoDBv2.Model.Projection FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S32_CreateGlobalSecondaryIndexAction__M10_Projection(software.amazon.cryptography.services.dynamodb.internaldafny.types._IProjection value) { @@ -12214,7 +12214,7 @@ public static Amazon.DynamoDBv2.Model.Projection FromDafny_N3_com__N9_amazonaws_ } public static software.amazon.cryptography.services.dynamodb.internaldafny.types._IProjection ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S32_CreateGlobalSecondaryIndexAction__M10_Projection(Amazon.DynamoDBv2.Model.Projection value) { - return ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S10_Projection(value); + return ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S10_Projection((Amazon.DynamoDBv2.Model.Projection)value); } public static Amazon.DynamoDBv2.Model.ProvisionedThroughput FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S32_CreateGlobalSecondaryIndexAction__M21_ProvisionedThroughput(Wrappers_Compile._IOption value) { @@ -12238,7 +12238,7 @@ public static string FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S32_DeleteGlob } public static Dafny.ISequence ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S32_DeleteGlobalSecondaryIndexAction__M9_IndexName(string value) { - return ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S9_IndexName(value); + return ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S9_IndexName((string)value); } public static string FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S34_CreateReplicationGroupMemberAction__M10_RegionName(Dafny.ISequence value) { @@ -12246,7 +12246,7 @@ public static string FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S34_CreateRepl } public static Dafny.ISequence ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S34_CreateReplicationGroupMemberAction__M10_RegionName(string value) { - return ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S10_RegionName(value); + return ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S10_RegionName((string)value); } public static string FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S34_CreateReplicationGroupMemberAction__M14_KMSMasterKeyId(Wrappers_Compile._IOption> value) { @@ -12294,7 +12294,7 @@ public static string FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S34_UpdateRepl } public static Dafny.ISequence ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S34_UpdateReplicationGroupMemberAction__M10_RegionName(string value) { - return ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S10_RegionName(value); + return ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S10_RegionName((string)value); } public static string FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S34_UpdateReplicationGroupMemberAction__M14_KMSMasterKeyId(Wrappers_Compile._IOption> value) { @@ -12342,7 +12342,7 @@ public static string FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S34_DeleteRepl } public static Dafny.ISequence ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S34_DeleteReplicationGroupMemberAction__M10_RegionName(string value) { - return ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S10_RegionName(value); + return ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S10_RegionName((string)value); } public static Amazon.DynamoDBv2.Model.ReplicaGlobalSecondaryIndexAutoScalingUpdate FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S48_ReplicaGlobalSecondaryIndexAutoScalingUpdateList__M6_member(software.amazon.cryptography.services.dynamodb.internaldafny.types._IReplicaGlobalSecondaryIndexAutoScalingUpdate value) { @@ -12350,7 +12350,7 @@ public static Amazon.DynamoDBv2.Model.ReplicaGlobalSecondaryIndexAutoScalingUpda } public static software.amazon.cryptography.services.dynamodb.internaldafny.types._IReplicaGlobalSecondaryIndexAutoScalingUpdate ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S48_ReplicaGlobalSecondaryIndexAutoScalingUpdateList__M6_member(Amazon.DynamoDBv2.Model.ReplicaGlobalSecondaryIndexAutoScalingUpdate value) { - return ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S44_ReplicaGlobalSecondaryIndexAutoScalingUpdate(value); + return ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S44_ReplicaGlobalSecondaryIndexAutoScalingUpdate((Amazon.DynamoDBv2.Model.ReplicaGlobalSecondaryIndexAutoScalingUpdate)value); } public static Amazon.DynamoDBv2.BatchStatementErrorCodeEnum FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S27_BatchStatementErrorCodeEnum(software.amazon.cryptography.services.dynamodb.internaldafny.types._IBatchStatementErrorCodeEnum value) { @@ -12425,7 +12425,7 @@ public static Amazon.DynamoDBv2.Model.ProvisionedThroughputOverride FromDafny_N3 public static software.amazon.cryptography.services.dynamodb.internaldafny.types._IProvisionedThroughputOverride ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S29_ProvisionedThroughputOverride(Amazon.DynamoDBv2.Model.ProvisionedThroughputOverride value) { - long? var_readCapacityUnits = value.ReadCapacityUnits; + long? var_readCapacityUnits = (long?)value.ReadCapacityUnits; return new software.amazon.cryptography.services.dynamodb.internaldafny.types.ProvisionedThroughputOverride(ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S29_ProvisionedThroughputOverride__M17_ReadCapacityUnits(var_readCapacityUnits)); } public static Amazon.DynamoDBv2.Model.OnDemandThroughputOverride FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S26_OnDemandThroughputOverride(software.amazon.cryptography.services.dynamodb.internaldafny.types._IOnDemandThroughputOverride value) @@ -12435,7 +12435,7 @@ public static Amazon.DynamoDBv2.Model.OnDemandThroughputOverride FromDafny_N3_co public static software.amazon.cryptography.services.dynamodb.internaldafny.types._IOnDemandThroughputOverride ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S26_OnDemandThroughputOverride(Amazon.DynamoDBv2.Model.OnDemandThroughputOverride value) { - long? var_maxReadRequestUnits = value.MaxReadRequestUnits; + long? var_maxReadRequestUnits = (long?)value.MaxReadRequestUnits; return new software.amazon.cryptography.services.dynamodb.internaldafny.types.OnDemandThroughputOverride(ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S26_OnDemandThroughputOverride__M19_MaxReadRequestUnits(var_maxReadRequestUnits)); } public static System.Collections.Generic.List FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S42_ReplicaGlobalSecondaryIndexDescriptionList(Dafny.ISequence value) @@ -12501,9 +12501,9 @@ public static Amazon.DynamoDBv2.Model.LocalSecondaryIndexInfo FromDafny_N3_com__ public static software.amazon.cryptography.services.dynamodb.internaldafny.types._ILocalSecondaryIndexInfo ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S23_LocalSecondaryIndexInfo(Amazon.DynamoDBv2.Model.LocalSecondaryIndexInfo value) { - string var_indexName = value.IndexName; - System.Collections.Generic.List var_keySchema = value.KeySchema; - Amazon.DynamoDBv2.Model.Projection var_projection = value.Projection; + string var_indexName = (string)value.IndexName; + System.Collections.Generic.List var_keySchema = (System.Collections.Generic.List)value.KeySchema; + Amazon.DynamoDBv2.Model.Projection var_projection = (Amazon.DynamoDBv2.Model.Projection)value.Projection; return new software.amazon.cryptography.services.dynamodb.internaldafny.types.LocalSecondaryIndexInfo(ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S23_LocalSecondaryIndexInfo__M9_IndexName(var_indexName), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S23_LocalSecondaryIndexInfo__M9_KeySchema(var_keySchema), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S23_LocalSecondaryIndexInfo__M10_Projection(var_projection)); } public static Amazon.DynamoDBv2.Model.GlobalSecondaryIndexInfo FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S24_GlobalSecondaryIndexInfo(software.amazon.cryptography.services.dynamodb.internaldafny.types._IGlobalSecondaryIndexInfo value) @@ -12517,11 +12517,11 @@ public static Amazon.DynamoDBv2.Model.GlobalSecondaryIndexInfo FromDafny_N3_com_ public static software.amazon.cryptography.services.dynamodb.internaldafny.types._IGlobalSecondaryIndexInfo ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S24_GlobalSecondaryIndexInfo(Amazon.DynamoDBv2.Model.GlobalSecondaryIndexInfo value) { - string var_indexName = value.IndexName; - System.Collections.Generic.List var_keySchema = value.KeySchema; - Amazon.DynamoDBv2.Model.Projection var_projection = value.Projection; - Amazon.DynamoDBv2.Model.ProvisionedThroughput var_provisionedThroughput = value.ProvisionedThroughput; - Amazon.DynamoDBv2.Model.OnDemandThroughput var_onDemandThroughput = value.OnDemandThroughput; + string var_indexName = (string)value.IndexName; + System.Collections.Generic.List var_keySchema = (System.Collections.Generic.List)value.KeySchema; + Amazon.DynamoDBv2.Model.Projection var_projection = (Amazon.DynamoDBv2.Model.Projection)value.Projection; + Amazon.DynamoDBv2.Model.ProvisionedThroughput var_provisionedThroughput = (Amazon.DynamoDBv2.Model.ProvisionedThroughput)value.ProvisionedThroughput; + Amazon.DynamoDBv2.Model.OnDemandThroughput var_onDemandThroughput = (Amazon.DynamoDBv2.Model.OnDemandThroughput)value.OnDemandThroughput; return new software.amazon.cryptography.services.dynamodb.internaldafny.types.GlobalSecondaryIndexInfo(ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S24_GlobalSecondaryIndexInfo__M9_IndexName(var_indexName), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S24_GlobalSecondaryIndexInfo__M9_KeySchema(var_keySchema), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S24_GlobalSecondaryIndexInfo__M10_Projection(var_projection), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S24_GlobalSecondaryIndexInfo__M21_ProvisionedThroughput(var_provisionedThroughput), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S24_GlobalSecondaryIndexInfo__M18_OnDemandThroughput(var_onDemandThroughput)); } public static System.Collections.Generic.List FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S32_AutoScalingPolicyDescriptionList(Dafny.ISequence value) @@ -12544,11 +12544,11 @@ public static Amazon.DynamoDBv2.Model.ReplicaGlobalSecondaryIndexSettingsDescrip public static software.amazon.cryptography.services.dynamodb.internaldafny.types._IReplicaGlobalSecondaryIndexSettingsDescription ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S46_ReplicaGlobalSecondaryIndexSettingsDescription(Amazon.DynamoDBv2.Model.ReplicaGlobalSecondaryIndexSettingsDescription value) { - Amazon.DynamoDBv2.IndexStatus var_indexStatus = value.IndexStatus; - long? var_provisionedReadCapacityUnits = value.ProvisionedReadCapacityUnits; - Amazon.DynamoDBv2.Model.AutoScalingSettingsDescription var_provisionedReadCapacityAutoScalingSettings = value.ProvisionedReadCapacityAutoScalingSettings; - long? var_provisionedWriteCapacityUnits = value.ProvisionedWriteCapacityUnits; - Amazon.DynamoDBv2.Model.AutoScalingSettingsDescription var_provisionedWriteCapacityAutoScalingSettings = value.ProvisionedWriteCapacityAutoScalingSettings; + Amazon.DynamoDBv2.IndexStatus var_indexStatus = (Amazon.DynamoDBv2.IndexStatus)value.IndexStatus; + long? var_provisionedReadCapacityUnits = (long?)value.ProvisionedReadCapacityUnits; + Amazon.DynamoDBv2.Model.AutoScalingSettingsDescription var_provisionedReadCapacityAutoScalingSettings = (Amazon.DynamoDBv2.Model.AutoScalingSettingsDescription)value.ProvisionedReadCapacityAutoScalingSettings; + long? var_provisionedWriteCapacityUnits = (long?)value.ProvisionedWriteCapacityUnits; + Amazon.DynamoDBv2.Model.AutoScalingSettingsDescription var_provisionedWriteCapacityAutoScalingSettings = (Amazon.DynamoDBv2.Model.AutoScalingSettingsDescription)value.ProvisionedWriteCapacityAutoScalingSettings; return new software.amazon.cryptography.services.dynamodb.internaldafny.types.ReplicaGlobalSecondaryIndexSettingsDescription(ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S46_ReplicaGlobalSecondaryIndexSettingsDescription__M9_IndexName(value.IndexName), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S46_ReplicaGlobalSecondaryIndexSettingsDescription__M11_IndexStatus(var_indexStatus), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S46_ReplicaGlobalSecondaryIndexSettingsDescription__M28_ProvisionedReadCapacityUnits(var_provisionedReadCapacityUnits), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S46_ReplicaGlobalSecondaryIndexSettingsDescription__M42_ProvisionedReadCapacityAutoScalingSettings(var_provisionedReadCapacityAutoScalingSettings), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S46_ReplicaGlobalSecondaryIndexSettingsDescription__M29_ProvisionedWriteCapacityUnits(var_provisionedWriteCapacityUnits), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S46_ReplicaGlobalSecondaryIndexSettingsDescription__M43_ProvisionedWriteCapacityAutoScalingSettings(var_provisionedWriteCapacityAutoScalingSettings)); } public static System.Collections.Generic.List FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S53_ReplicaGlobalSecondaryIndexAutoScalingDescriptionList(Dafny.ISequence value) @@ -12604,8 +12604,8 @@ public static Amazon.DynamoDBv2.Model.ReplicaGlobalSecondaryIndexSettingsUpdate public static software.amazon.cryptography.services.dynamodb.internaldafny.types._IReplicaGlobalSecondaryIndexSettingsUpdate ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S41_ReplicaGlobalSecondaryIndexSettingsUpdate(Amazon.DynamoDBv2.Model.ReplicaGlobalSecondaryIndexSettingsUpdate value) { - long? var_provisionedReadCapacityUnits = value.ProvisionedReadCapacityUnits; - Amazon.DynamoDBv2.Model.AutoScalingSettingsUpdate var_provisionedReadCapacityAutoScalingSettingsUpdate = value.ProvisionedReadCapacityAutoScalingSettingsUpdate; + long? var_provisionedReadCapacityUnits = (long?)value.ProvisionedReadCapacityUnits; + Amazon.DynamoDBv2.Model.AutoScalingSettingsUpdate var_provisionedReadCapacityAutoScalingSettingsUpdate = (Amazon.DynamoDBv2.Model.AutoScalingSettingsUpdate)value.ProvisionedReadCapacityAutoScalingSettingsUpdate; return new software.amazon.cryptography.services.dynamodb.internaldafny.types.ReplicaGlobalSecondaryIndexSettingsUpdate(ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S41_ReplicaGlobalSecondaryIndexSettingsUpdate__M9_IndexName(value.IndexName), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S41_ReplicaGlobalSecondaryIndexSettingsUpdate__M28_ProvisionedReadCapacityUnits(var_provisionedReadCapacityUnits), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S41_ReplicaGlobalSecondaryIndexSettingsUpdate__M48_ProvisionedReadCapacityAutoScalingSettingsUpdate(var_provisionedReadCapacityAutoScalingSettingsUpdate)); } public static System.Collections.Generic.List FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S31_ReplicaGlobalSecondaryIndexList(Dafny.ISequence value) @@ -12624,8 +12624,8 @@ public static Amazon.DynamoDBv2.Model.ReplicaGlobalSecondaryIndexAutoScalingUpda public static software.amazon.cryptography.services.dynamodb.internaldafny.types._IReplicaGlobalSecondaryIndexAutoScalingUpdate ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S44_ReplicaGlobalSecondaryIndexAutoScalingUpdate(Amazon.DynamoDBv2.Model.ReplicaGlobalSecondaryIndexAutoScalingUpdate value) { - string var_indexName = value.IndexName; - Amazon.DynamoDBv2.Model.AutoScalingSettingsUpdate var_provisionedReadCapacityAutoScalingUpdate = value.ProvisionedReadCapacityAutoScalingUpdate; + string var_indexName = (string)value.IndexName; + Amazon.DynamoDBv2.Model.AutoScalingSettingsUpdate var_provisionedReadCapacityAutoScalingUpdate = (Amazon.DynamoDBv2.Model.AutoScalingSettingsUpdate)value.ProvisionedReadCapacityAutoScalingUpdate; return new software.amazon.cryptography.services.dynamodb.internaldafny.types.ReplicaGlobalSecondaryIndexAutoScalingUpdate(ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S44_ReplicaGlobalSecondaryIndexAutoScalingUpdate__M9_IndexName(var_indexName), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S44_ReplicaGlobalSecondaryIndexAutoScalingUpdate__M40_ProvisionedReadCapacityAutoScalingUpdate(var_provisionedReadCapacityAutoScalingUpdate)); } public static System.Collections.Generic.Dictionary FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S10_PutRequest__M4_Item(Dafny.IMap, software.amazon.cryptography.services.dynamodb.internaldafny.types._IAttributeValue> value) @@ -12634,7 +12634,7 @@ public static software.amazon.cryptography.services.dynamodb.internaldafny.types } public static Dafny.IMap, software.amazon.cryptography.services.dynamodb.internaldafny.types._IAttributeValue> ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S10_PutRequest__M4_Item(System.Collections.Generic.Dictionary value) { - return ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S24_PutItemInputAttributeMap(value); + return ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S24_PutItemInputAttributeMap((System.Collections.Generic.Dictionary)value); } public static System.Collections.Generic.Dictionary FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S13_DeleteRequest__M3_Key(Dafny.IMap, software.amazon.cryptography.services.dynamodb.internaldafny.types._IAttributeValue> value) { @@ -12642,7 +12642,7 @@ public static software.amazon.cryptography.services.dynamodb.internaldafny.types } public static Dafny.IMap, software.amazon.cryptography.services.dynamodb.internaldafny.types._IAttributeValue> ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S13_DeleteRequest__M3_Key(System.Collections.Generic.Dictionary value) { - return ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S3_Key(value); + return ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S3_Key((System.Collections.Generic.Dictionary)value); } public static long? FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S29_ProvisionedThroughputOverride__M17_ReadCapacityUnits(Wrappers_Compile._IOption value) { @@ -12666,7 +12666,7 @@ public static Amazon.DynamoDBv2.Model.ReplicaGlobalSecondaryIndexDescription Fro } public static software.amazon.cryptography.services.dynamodb.internaldafny.types._IReplicaGlobalSecondaryIndexDescription ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S42_ReplicaGlobalSecondaryIndexDescriptionList__M6_member(Amazon.DynamoDBv2.Model.ReplicaGlobalSecondaryIndexDescription value) { - return ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S38_ReplicaGlobalSecondaryIndexDescription(value); + return ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S38_ReplicaGlobalSecondaryIndexDescription((Amazon.DynamoDBv2.Model.ReplicaGlobalSecondaryIndexDescription)value); } public static string FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S23_NonKeyAttributeNameList__M6_member(Dafny.ISequence value) { @@ -12674,7 +12674,7 @@ public static string FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S23_NonKeyAttr } public static Dafny.ISequence ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S23_NonKeyAttributeNameList__M6_member(string value) { - return ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S19_NonKeyAttributeName(value); + return ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S19_NonKeyAttributeName((string)value); } public static string FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S23_LocalSecondaryIndexInfo__M9_IndexName(Wrappers_Compile._IOption> value) { @@ -12746,7 +12746,7 @@ public static Amazon.DynamoDBv2.Model.AutoScalingPolicyDescription FromDafny_N3_ } public static software.amazon.cryptography.services.dynamodb.internaldafny.types._IAutoScalingPolicyDescription ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S32_AutoScalingPolicyDescriptionList__M6_member(Amazon.DynamoDBv2.Model.AutoScalingPolicyDescription value) { - return ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S28_AutoScalingPolicyDescription(value); + return ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S28_AutoScalingPolicyDescription((Amazon.DynamoDBv2.Model.AutoScalingPolicyDescription)value); } public static string FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S46_ReplicaGlobalSecondaryIndexSettingsDescription__M9_IndexName(Dafny.ISequence value) { @@ -12754,7 +12754,7 @@ public static string FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S46_ReplicaGlo } public static Dafny.ISequence ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S46_ReplicaGlobalSecondaryIndexSettingsDescription__M9_IndexName(string value) { - return ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S9_IndexName(value); + return ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S9_IndexName((string)value); } public static Amazon.DynamoDBv2.IndexStatus FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S46_ReplicaGlobalSecondaryIndexSettingsDescription__M11_IndexStatus(Wrappers_Compile._IOption value) { @@ -12802,7 +12802,7 @@ public static Amazon.DynamoDBv2.Model.ReplicaGlobalSecondaryIndexAutoScalingDesc } public static software.amazon.cryptography.services.dynamodb.internaldafny.types._IReplicaGlobalSecondaryIndexAutoScalingDescription ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S53_ReplicaGlobalSecondaryIndexAutoScalingDescriptionList__M6_member(Amazon.DynamoDBv2.Model.ReplicaGlobalSecondaryIndexAutoScalingDescription value) { - return ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S49_ReplicaGlobalSecondaryIndexAutoScalingDescription(value); + return ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S49_ReplicaGlobalSecondaryIndexAutoScalingDescription((Amazon.DynamoDBv2.Model.ReplicaGlobalSecondaryIndexAutoScalingDescription)value); } public static string FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S41_ReplicaGlobalSecondaryIndexSettingsUpdate__M9_IndexName(Dafny.ISequence value) { @@ -12810,7 +12810,7 @@ public static string FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S41_ReplicaGlo } public static Dafny.ISequence ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S41_ReplicaGlobalSecondaryIndexSettingsUpdate__M9_IndexName(string value) { - return ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S9_IndexName(value); + return ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S9_IndexName((string)value); } public static long? FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S41_ReplicaGlobalSecondaryIndexSettingsUpdate__M28_ProvisionedReadCapacityUnits(Wrappers_Compile._IOption value) { @@ -12834,7 +12834,7 @@ public static Amazon.DynamoDBv2.Model.ReplicaGlobalSecondaryIndex FromDafny_N3_c } public static software.amazon.cryptography.services.dynamodb.internaldafny.types._IReplicaGlobalSecondaryIndex ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S31_ReplicaGlobalSecondaryIndexList__M6_member(Amazon.DynamoDBv2.Model.ReplicaGlobalSecondaryIndex value) { - return ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S27_ReplicaGlobalSecondaryIndex(value); + return ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S27_ReplicaGlobalSecondaryIndex((Amazon.DynamoDBv2.Model.ReplicaGlobalSecondaryIndex)value); } public static string FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S44_ReplicaGlobalSecondaryIndexAutoScalingUpdate__M9_IndexName(Wrappers_Compile._IOption> value) { @@ -12861,9 +12861,9 @@ public static Amazon.DynamoDBv2.Model.ReplicaGlobalSecondaryIndexDescription Fro public static software.amazon.cryptography.services.dynamodb.internaldafny.types._IReplicaGlobalSecondaryIndexDescription ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S38_ReplicaGlobalSecondaryIndexDescription(Amazon.DynamoDBv2.Model.ReplicaGlobalSecondaryIndexDescription value) { - string var_indexName = value.IndexName; - Amazon.DynamoDBv2.Model.ProvisionedThroughputOverride var_provisionedThroughputOverride = value.ProvisionedThroughputOverride; - Amazon.DynamoDBv2.Model.OnDemandThroughputOverride var_onDemandThroughputOverride = value.OnDemandThroughputOverride; + string var_indexName = (string)value.IndexName; + Amazon.DynamoDBv2.Model.ProvisionedThroughputOverride var_provisionedThroughputOverride = (Amazon.DynamoDBv2.Model.ProvisionedThroughputOverride)value.ProvisionedThroughputOverride; + Amazon.DynamoDBv2.Model.OnDemandThroughputOverride var_onDemandThroughputOverride = (Amazon.DynamoDBv2.Model.OnDemandThroughputOverride)value.OnDemandThroughputOverride; return new software.amazon.cryptography.services.dynamodb.internaldafny.types.ReplicaGlobalSecondaryIndexDescription(ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S38_ReplicaGlobalSecondaryIndexDescription__M9_IndexName(var_indexName), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S38_ReplicaGlobalSecondaryIndexDescription__M29_ProvisionedThroughputOverride(var_provisionedThroughputOverride), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S38_ReplicaGlobalSecondaryIndexDescription__M26_OnDemandThroughputOverride(var_onDemandThroughputOverride)); } public static string FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S19_NonKeyAttributeName(Dafny.ISequence value) @@ -12882,8 +12882,8 @@ public static Amazon.DynamoDBv2.Model.AutoScalingPolicyDescription FromDafny_N3_ public static software.amazon.cryptography.services.dynamodb.internaldafny.types._IAutoScalingPolicyDescription ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S28_AutoScalingPolicyDescription(Amazon.DynamoDBv2.Model.AutoScalingPolicyDescription value) { - string var_policyName = value.PolicyName; - Amazon.DynamoDBv2.Model.AutoScalingTargetTrackingScalingPolicyConfigurationDescription var_targetTrackingScalingPolicyConfiguration = value.TargetTrackingScalingPolicyConfiguration; + string var_policyName = (string)value.PolicyName; + Amazon.DynamoDBv2.Model.AutoScalingTargetTrackingScalingPolicyConfigurationDescription var_targetTrackingScalingPolicyConfiguration = (Amazon.DynamoDBv2.Model.AutoScalingTargetTrackingScalingPolicyConfigurationDescription)value.TargetTrackingScalingPolicyConfiguration; return new software.amazon.cryptography.services.dynamodb.internaldafny.types.AutoScalingPolicyDescription(ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S28_AutoScalingPolicyDescription__M10_PolicyName(var_policyName), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S28_AutoScalingPolicyDescription__M40_TargetTrackingScalingPolicyConfiguration(var_targetTrackingScalingPolicyConfiguration)); } public static Amazon.DynamoDBv2.Model.ReplicaGlobalSecondaryIndexAutoScalingDescription FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S49_ReplicaGlobalSecondaryIndexAutoScalingDescription(software.amazon.cryptography.services.dynamodb.internaldafny.types._IReplicaGlobalSecondaryIndexAutoScalingDescription value) @@ -12896,10 +12896,10 @@ public static Amazon.DynamoDBv2.Model.ReplicaGlobalSecondaryIndexAutoScalingDesc public static software.amazon.cryptography.services.dynamodb.internaldafny.types._IReplicaGlobalSecondaryIndexAutoScalingDescription ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S49_ReplicaGlobalSecondaryIndexAutoScalingDescription(Amazon.DynamoDBv2.Model.ReplicaGlobalSecondaryIndexAutoScalingDescription value) { - string var_indexName = value.IndexName; - Amazon.DynamoDBv2.IndexStatus var_indexStatus = value.IndexStatus; - Amazon.DynamoDBv2.Model.AutoScalingSettingsDescription var_provisionedReadCapacityAutoScalingSettings = value.ProvisionedReadCapacityAutoScalingSettings; - Amazon.DynamoDBv2.Model.AutoScalingSettingsDescription var_provisionedWriteCapacityAutoScalingSettings = value.ProvisionedWriteCapacityAutoScalingSettings; + string var_indexName = (string)value.IndexName; + Amazon.DynamoDBv2.IndexStatus var_indexStatus = (Amazon.DynamoDBv2.IndexStatus)value.IndexStatus; + Amazon.DynamoDBv2.Model.AutoScalingSettingsDescription var_provisionedReadCapacityAutoScalingSettings = (Amazon.DynamoDBv2.Model.AutoScalingSettingsDescription)value.ProvisionedReadCapacityAutoScalingSettings; + Amazon.DynamoDBv2.Model.AutoScalingSettingsDescription var_provisionedWriteCapacityAutoScalingSettings = (Amazon.DynamoDBv2.Model.AutoScalingSettingsDescription)value.ProvisionedWriteCapacityAutoScalingSettings; return new software.amazon.cryptography.services.dynamodb.internaldafny.types.ReplicaGlobalSecondaryIndexAutoScalingDescription(ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S49_ReplicaGlobalSecondaryIndexAutoScalingDescription__M9_IndexName(var_indexName), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S49_ReplicaGlobalSecondaryIndexAutoScalingDescription__M11_IndexStatus(var_indexStatus), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S49_ReplicaGlobalSecondaryIndexAutoScalingDescription__M42_ProvisionedReadCapacityAutoScalingSettings(var_provisionedReadCapacityAutoScalingSettings), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S49_ReplicaGlobalSecondaryIndexAutoScalingDescription__M43_ProvisionedWriteCapacityAutoScalingSettings(var_provisionedWriteCapacityAutoScalingSettings)); } public static Amazon.DynamoDBv2.Model.ReplicaGlobalSecondaryIndex FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S27_ReplicaGlobalSecondaryIndex(software.amazon.cryptography.services.dynamodb.internaldafny.types._IReplicaGlobalSecondaryIndex value) @@ -12911,8 +12911,8 @@ public static Amazon.DynamoDBv2.Model.ReplicaGlobalSecondaryIndex FromDafny_N3_c public static software.amazon.cryptography.services.dynamodb.internaldafny.types._IReplicaGlobalSecondaryIndex ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S27_ReplicaGlobalSecondaryIndex(Amazon.DynamoDBv2.Model.ReplicaGlobalSecondaryIndex value) { - Amazon.DynamoDBv2.Model.ProvisionedThroughputOverride var_provisionedThroughputOverride = value.ProvisionedThroughputOverride; - Amazon.DynamoDBv2.Model.OnDemandThroughputOverride var_onDemandThroughputOverride = value.OnDemandThroughputOverride; + Amazon.DynamoDBv2.Model.ProvisionedThroughputOverride var_provisionedThroughputOverride = (Amazon.DynamoDBv2.Model.ProvisionedThroughputOverride)value.ProvisionedThroughputOverride; + Amazon.DynamoDBv2.Model.OnDemandThroughputOverride var_onDemandThroughputOverride = (Amazon.DynamoDBv2.Model.OnDemandThroughputOverride)value.OnDemandThroughputOverride; return new software.amazon.cryptography.services.dynamodb.internaldafny.types.ReplicaGlobalSecondaryIndex(ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S27_ReplicaGlobalSecondaryIndex__M9_IndexName(value.IndexName), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S27_ReplicaGlobalSecondaryIndex__M29_ProvisionedThroughputOverride(var_provisionedThroughputOverride), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S27_ReplicaGlobalSecondaryIndex__M26_OnDemandThroughputOverride(var_onDemandThroughputOverride)); } public static string FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S38_ReplicaGlobalSecondaryIndexDescription__M9_IndexName(Wrappers_Compile._IOption> value) @@ -12993,7 +12993,7 @@ public static string FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S27_ReplicaGlo } public static Dafny.ISequence ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S27_ReplicaGlobalSecondaryIndex__M9_IndexName(string value) { - return ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S9_IndexName(value); + return ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S9_IndexName((string)value); } public static Amazon.DynamoDBv2.Model.ProvisionedThroughputOverride FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S27_ReplicaGlobalSecondaryIndex__M29_ProvisionedThroughputOverride(Wrappers_Compile._IOption value) { @@ -13021,9 +13021,9 @@ public static Amazon.DynamoDBv2.Model.AutoScalingTargetTrackingScalingPolicyConf public static software.amazon.cryptography.services.dynamodb.internaldafny.types._IAutoScalingTargetTrackingScalingPolicyConfigurationDescription ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S62_AutoScalingTargetTrackingScalingPolicyConfigurationDescription(Amazon.DynamoDBv2.Model.AutoScalingTargetTrackingScalingPolicyConfigurationDescription value) { - bool? var_disableScaleIn = value.DisableScaleIn; - int? var_scaleInCooldown = value.ScaleInCooldown; - int? var_scaleOutCooldown = value.ScaleOutCooldown; + bool? var_disableScaleIn = (bool?)value.DisableScaleIn; + int? var_scaleInCooldown = (int?)value.ScaleInCooldown; + int? var_scaleOutCooldown = (int?)value.ScaleOutCooldown; return new software.amazon.cryptography.services.dynamodb.internaldafny.types.AutoScalingTargetTrackingScalingPolicyConfigurationDescription(ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S62_AutoScalingTargetTrackingScalingPolicyConfigurationDescription__M14_DisableScaleIn(var_disableScaleIn), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S62_AutoScalingTargetTrackingScalingPolicyConfigurationDescription__M15_ScaleInCooldown(var_scaleInCooldown), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S62_AutoScalingTargetTrackingScalingPolicyConfigurationDescription__M16_ScaleOutCooldown(var_scaleOutCooldown), ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S62_AutoScalingTargetTrackingScalingPolicyConfigurationDescription__M11_TargetValue((int)value.TargetValue)); } public static bool? FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S62_AutoScalingTargetTrackingScalingPolicyConfigurationDescription__M14_DisableScaleIn(Wrappers_Compile._IOption value) @@ -13056,7 +13056,7 @@ public static double FromDafny_N3_com__N9_amazonaws__N8_dynamodb__S62_AutoScalin } public static Dafny.ISequence ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S62_AutoScalingTargetTrackingScalingPolicyConfigurationDescription__M11_TargetValue(double value) { - return ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S12_DoubleObject(value); + return ToDafny_N3_com__N9_amazonaws__N8_dynamodb__S12_DoubleObject((double)value); } public static string FromDafny_N6_smithy__N3_api__S6_String(Dafny.ISequence value) { diff --git a/ComAmazonawsKms/runtimes/net/Generated/TypeConversion.cs b/ComAmazonawsKms/runtimes/net/Generated/TypeConversion.cs index 0752a1dbb..936940730 100644 --- a/ComAmazonawsKms/runtimes/net/Generated/TypeConversion.cs +++ b/ComAmazonawsKms/runtimes/net/Generated/TypeConversion.cs @@ -39,7 +39,7 @@ public static Amazon.KeyManagementService.Model.AlreadyExistsException FromDafny } public static software.amazon.cryptography.services.kms.internaldafny.types.Error_AlreadyExistsException ToDafny_N3_com__N9_amazonaws__N3_kms__S22_AlreadyExistsException(Amazon.KeyManagementService.Model.AlreadyExistsException value) { - string var_message = value.Message; + string var_message = (string)value.Message; return new software.amazon.cryptography.services.kms.internaldafny.types.Error_AlreadyExistsException( ToDafny_N3_com__N9_amazonaws__N3_kms__S22_AlreadyExistsException__M7_message(var_message) ); @@ -61,7 +61,7 @@ public static Amazon.KeyManagementService.Model.CancelKeyDeletionResponse FromDa public static software.amazon.cryptography.services.kms.internaldafny.types._ICancelKeyDeletionResponse ToDafny_N3_com__N9_amazonaws__N3_kms__S25_CancelKeyDeletionResponse(Amazon.KeyManagementService.Model.CancelKeyDeletionResponse value) { - string var_keyId = value.KeyId; + string var_keyId = (string)value.KeyId; return new software.amazon.cryptography.services.kms.internaldafny.types.CancelKeyDeletionResponse(ToDafny_N3_com__N9_amazonaws__N3_kms__S25_CancelKeyDeletionResponse__M5_KeyId(var_keyId)); } public static Amazon.KeyManagementService.Model.CloudHsmClusterInUseException FromDafny_N3_com__N9_amazonaws__N3_kms__S29_CloudHsmClusterInUseException(software.amazon.cryptography.services.kms.internaldafny.types.Error_CloudHsmClusterInUseException value) @@ -72,7 +72,7 @@ public static Amazon.KeyManagementService.Model.CloudHsmClusterInUseException Fr } public static software.amazon.cryptography.services.kms.internaldafny.types.Error_CloudHsmClusterInUseException ToDafny_N3_com__N9_amazonaws__N3_kms__S29_CloudHsmClusterInUseException(Amazon.KeyManagementService.Model.CloudHsmClusterInUseException value) { - string var_message = value.Message; + string var_message = (string)value.Message; return new software.amazon.cryptography.services.kms.internaldafny.types.Error_CloudHsmClusterInUseException( ToDafny_N3_com__N9_amazonaws__N3_kms__S29_CloudHsmClusterInUseException__M7_message(var_message) ); @@ -85,7 +85,7 @@ public static Amazon.KeyManagementService.Model.CloudHsmClusterInvalidConfigurat } public static software.amazon.cryptography.services.kms.internaldafny.types.Error_CloudHsmClusterInvalidConfigurationException ToDafny_N3_com__N9_amazonaws__N3_kms__S44_CloudHsmClusterInvalidConfigurationException(Amazon.KeyManagementService.Model.CloudHsmClusterInvalidConfigurationException value) { - string var_message = value.Message; + string var_message = (string)value.Message; return new software.amazon.cryptography.services.kms.internaldafny.types.Error_CloudHsmClusterInvalidConfigurationException( ToDafny_N3_com__N9_amazonaws__N3_kms__S44_CloudHsmClusterInvalidConfigurationException__M7_message(var_message) ); @@ -98,7 +98,7 @@ public static Amazon.KeyManagementService.Model.CloudHsmClusterNotActiveExceptio } public static software.amazon.cryptography.services.kms.internaldafny.types.Error_CloudHsmClusterNotActiveException ToDafny_N3_com__N9_amazonaws__N3_kms__S33_CloudHsmClusterNotActiveException(Amazon.KeyManagementService.Model.CloudHsmClusterNotActiveException value) { - string var_message = value.Message; + string var_message = (string)value.Message; return new software.amazon.cryptography.services.kms.internaldafny.types.Error_CloudHsmClusterNotActiveException( ToDafny_N3_com__N9_amazonaws__N3_kms__S33_CloudHsmClusterNotActiveException__M7_message(var_message) ); @@ -111,7 +111,7 @@ public static Amazon.KeyManagementService.Model.CloudHsmClusterNotFoundException } public static software.amazon.cryptography.services.kms.internaldafny.types.Error_CloudHsmClusterNotFoundException ToDafny_N3_com__N9_amazonaws__N3_kms__S32_CloudHsmClusterNotFoundException(Amazon.KeyManagementService.Model.CloudHsmClusterNotFoundException value) { - string var_message = value.Message; + string var_message = (string)value.Message; return new software.amazon.cryptography.services.kms.internaldafny.types.Error_CloudHsmClusterNotFoundException( ToDafny_N3_com__N9_amazonaws__N3_kms__S32_CloudHsmClusterNotFoundException__M7_message(var_message) ); @@ -124,7 +124,7 @@ public static Amazon.KeyManagementService.Model.CloudHsmClusterNotRelatedExcepti } public static software.amazon.cryptography.services.kms.internaldafny.types.Error_CloudHsmClusterNotRelatedException ToDafny_N3_com__N9_amazonaws__N3_kms__S34_CloudHsmClusterNotRelatedException(Amazon.KeyManagementService.Model.CloudHsmClusterNotRelatedException value) { - string var_message = value.Message; + string var_message = (string)value.Message; return new software.amazon.cryptography.services.kms.internaldafny.types.Error_CloudHsmClusterNotRelatedException( ToDafny_N3_com__N9_amazonaws__N3_kms__S34_CloudHsmClusterNotRelatedException__M7_message(var_message) ); @@ -137,7 +137,7 @@ public static Amazon.KeyManagementService.Model.ConflictException FromDafny_N3_c } public static software.amazon.cryptography.services.kms.internaldafny.types.Error_ConflictException ToDafny_N3_com__N9_amazonaws__N3_kms__S17_ConflictException(Amazon.KeyManagementService.Model.ConflictException value) { - string var_message = value.Message; + string var_message = (string)value.Message; return new software.amazon.cryptography.services.kms.internaldafny.types.Error_ConflictException( ToDafny_N3_com__N9_amazonaws__N3_kms__S17_ConflictException__M7_message(var_message) ); @@ -251,15 +251,15 @@ public static Amazon.KeyManagementService.Model.CreateCustomKeyStoreRequest From public static software.amazon.cryptography.services.kms.internaldafny.types._ICreateCustomKeyStoreRequest ToDafny_N3_com__N9_amazonaws__N3_kms__S27_CreateCustomKeyStoreRequest(Amazon.KeyManagementService.Model.CreateCustomKeyStoreRequest value) { - string var_cloudHsmClusterId = value.CloudHsmClusterId; - string var_trustAnchorCertificate = value.TrustAnchorCertificate; - string var_keyStorePassword = value.KeyStorePassword; - Amazon.KeyManagementService.CustomKeyStoreType var_customKeyStoreType = value.CustomKeyStoreType; - string var_xksProxyUriEndpoint = value.XksProxyUriEndpoint; - string var_xksProxyUriPath = value.XksProxyUriPath; - string var_xksProxyVpcEndpointServiceName = value.XksProxyVpcEndpointServiceName; - Amazon.KeyManagementService.Model.XksProxyAuthenticationCredentialType var_xksProxyAuthenticationCredential = value.XksProxyAuthenticationCredential; - Amazon.KeyManagementService.XksProxyConnectivityType var_xksProxyConnectivity = value.XksProxyConnectivity; + string var_cloudHsmClusterId = (string)value.CloudHsmClusterId; + string var_trustAnchorCertificate = (string)value.TrustAnchorCertificate; + string var_keyStorePassword = (string)value.KeyStorePassword; + Amazon.KeyManagementService.CustomKeyStoreType var_customKeyStoreType = (Amazon.KeyManagementService.CustomKeyStoreType)value.CustomKeyStoreType; + string var_xksProxyUriEndpoint = (string)value.XksProxyUriEndpoint; + string var_xksProxyUriPath = (string)value.XksProxyUriPath; + string var_xksProxyVpcEndpointServiceName = (string)value.XksProxyVpcEndpointServiceName; + Amazon.KeyManagementService.Model.XksProxyAuthenticationCredentialType var_xksProxyAuthenticationCredential = (Amazon.KeyManagementService.Model.XksProxyAuthenticationCredentialType)value.XksProxyAuthenticationCredential; + Amazon.KeyManagementService.XksProxyConnectivityType var_xksProxyConnectivity = (Amazon.KeyManagementService.XksProxyConnectivityType)value.XksProxyConnectivity; return new software.amazon.cryptography.services.kms.internaldafny.types.CreateCustomKeyStoreRequest(ToDafny_N3_com__N9_amazonaws__N3_kms__S27_CreateCustomKeyStoreRequest__M18_CustomKeyStoreName(value.CustomKeyStoreName), ToDafny_N3_com__N9_amazonaws__N3_kms__S27_CreateCustomKeyStoreRequest__M17_CloudHsmClusterId(var_cloudHsmClusterId), ToDafny_N3_com__N9_amazonaws__N3_kms__S27_CreateCustomKeyStoreRequest__M22_TrustAnchorCertificate(var_trustAnchorCertificate), ToDafny_N3_com__N9_amazonaws__N3_kms__S27_CreateCustomKeyStoreRequest__M16_KeyStorePassword(var_keyStorePassword), ToDafny_N3_com__N9_amazonaws__N3_kms__S27_CreateCustomKeyStoreRequest__M18_CustomKeyStoreType(var_customKeyStoreType), ToDafny_N3_com__N9_amazonaws__N3_kms__S27_CreateCustomKeyStoreRequest__M19_XksProxyUriEndpoint(var_xksProxyUriEndpoint), ToDafny_N3_com__N9_amazonaws__N3_kms__S27_CreateCustomKeyStoreRequest__M15_XksProxyUriPath(var_xksProxyUriPath), ToDafny_N3_com__N9_amazonaws__N3_kms__S27_CreateCustomKeyStoreRequest__M30_XksProxyVpcEndpointServiceName(var_xksProxyVpcEndpointServiceName), ToDafny_N3_com__N9_amazonaws__N3_kms__S27_CreateCustomKeyStoreRequest__M32_XksProxyAuthenticationCredential(var_xksProxyAuthenticationCredential), ToDafny_N3_com__N9_amazonaws__N3_kms__S27_CreateCustomKeyStoreRequest__M20_XksProxyConnectivity(var_xksProxyConnectivity)); } public static Amazon.KeyManagementService.Model.CreateCustomKeyStoreResponse FromDafny_N3_com__N9_amazonaws__N3_kms__S28_CreateCustomKeyStoreResponse(software.amazon.cryptography.services.kms.internaldafny.types._ICreateCustomKeyStoreResponse value) @@ -269,7 +269,7 @@ public static Amazon.KeyManagementService.Model.CreateCustomKeyStoreResponse Fro public static software.amazon.cryptography.services.kms.internaldafny.types._ICreateCustomKeyStoreResponse ToDafny_N3_com__N9_amazonaws__N3_kms__S28_CreateCustomKeyStoreResponse(Amazon.KeyManagementService.Model.CreateCustomKeyStoreResponse value) { - string var_customKeyStoreId = value.CustomKeyStoreId; + string var_customKeyStoreId = (string)value.CustomKeyStoreId; return new software.amazon.cryptography.services.kms.internaldafny.types.CreateCustomKeyStoreResponse(ToDafny_N3_com__N9_amazonaws__N3_kms__S28_CreateCustomKeyStoreResponse__M16_CustomKeyStoreId(var_customKeyStoreId)); } public static Amazon.KeyManagementService.Model.CreateGrantRequest FromDafny_N3_com__N9_amazonaws__N3_kms__S18_CreateGrantRequest(software.amazon.cryptography.services.kms.internaldafny.types._ICreateGrantRequest value) @@ -286,11 +286,11 @@ public static Amazon.KeyManagementService.Model.CreateGrantRequest FromDafny_N3_ public static software.amazon.cryptography.services.kms.internaldafny.types._ICreateGrantRequest ToDafny_N3_com__N9_amazonaws__N3_kms__S18_CreateGrantRequest(Amazon.KeyManagementService.Model.CreateGrantRequest value) { - string var_retiringPrincipal = value.RetiringPrincipal; - Amazon.KeyManagementService.Model.GrantConstraints var_constraints = value.Constraints; - System.Collections.Generic.List var_grantTokens = value.GrantTokens; - string var_name = value.Name; - bool? var_dryRun = value.DryRun; + string var_retiringPrincipal = (string)value.RetiringPrincipal; + Amazon.KeyManagementService.Model.GrantConstraints var_constraints = (Amazon.KeyManagementService.Model.GrantConstraints)value.Constraints; + System.Collections.Generic.List var_grantTokens = (System.Collections.Generic.List)value.GrantTokens; + string var_name = (string)value.Name; + bool? var_dryRun = (bool?)value.DryRun; return new software.amazon.cryptography.services.kms.internaldafny.types.CreateGrantRequest(ToDafny_N3_com__N9_amazonaws__N3_kms__S18_CreateGrantRequest__M5_KeyId(value.KeyId), ToDafny_N3_com__N9_amazonaws__N3_kms__S18_CreateGrantRequest__M16_GranteePrincipal(value.GranteePrincipal), ToDafny_N3_com__N9_amazonaws__N3_kms__S18_CreateGrantRequest__M17_RetiringPrincipal(var_retiringPrincipal), ToDafny_N3_com__N9_amazonaws__N3_kms__S18_CreateGrantRequest__M10_Operations(value.Operations), ToDafny_N3_com__N9_amazonaws__N3_kms__S18_CreateGrantRequest__M11_Constraints(var_constraints), ToDafny_N3_com__N9_amazonaws__N3_kms__S18_CreateGrantRequest__M11_GrantTokens(var_grantTokens), ToDafny_N3_com__N9_amazonaws__N3_kms__S18_CreateGrantRequest__M4_Name(var_name), ToDafny_N3_com__N9_amazonaws__N3_kms__S18_CreateGrantRequest__M6_DryRun(var_dryRun)); } public static Amazon.KeyManagementService.Model.CreateGrantResponse FromDafny_N3_com__N9_amazonaws__N3_kms__S19_CreateGrantResponse(software.amazon.cryptography.services.kms.internaldafny.types._ICreateGrantResponse value) @@ -301,8 +301,8 @@ public static Amazon.KeyManagementService.Model.CreateGrantResponse FromDafny_N3 public static software.amazon.cryptography.services.kms.internaldafny.types._ICreateGrantResponse ToDafny_N3_com__N9_amazonaws__N3_kms__S19_CreateGrantResponse(Amazon.KeyManagementService.Model.CreateGrantResponse value) { - string var_grantToken = value.GrantToken; - string var_grantId = value.GrantId; + string var_grantToken = (string)value.GrantToken; + string var_grantId = (string)value.GrantId; return new software.amazon.cryptography.services.kms.internaldafny.types.CreateGrantResponse(ToDafny_N3_com__N9_amazonaws__N3_kms__S19_CreateGrantResponse__M10_GrantToken(var_grantToken), ToDafny_N3_com__N9_amazonaws__N3_kms__S19_CreateGrantResponse__M7_GrantId(var_grantId)); } public static Amazon.KeyManagementService.Model.CreateKeyRequest FromDafny_N3_com__N9_amazonaws__N3_kms__S16_CreateKeyRequest(software.amazon.cryptography.services.kms.internaldafny.types._ICreateKeyRequest value) @@ -322,17 +322,17 @@ public static Amazon.KeyManagementService.Model.CreateKeyRequest FromDafny_N3_co public static software.amazon.cryptography.services.kms.internaldafny.types._ICreateKeyRequest ToDafny_N3_com__N9_amazonaws__N3_kms__S16_CreateKeyRequest(Amazon.KeyManagementService.Model.CreateKeyRequest value) { - string var_policy = value.Policy; - string var_description = value.Description; - Amazon.KeyManagementService.KeyUsageType var_keyUsage = value.KeyUsage; - Amazon.KeyManagementService.CustomerMasterKeySpec var_customerMasterKeySpec = value.CustomerMasterKeySpec; - Amazon.KeyManagementService.KeySpec var_keySpec = value.KeySpec; - Amazon.KeyManagementService.OriginType var_origin = value.Origin; - string var_customKeyStoreId = value.CustomKeyStoreId; - bool? var_bypassPolicyLockoutSafetyCheck = value.BypassPolicyLockoutSafetyCheck; - System.Collections.Generic.List var_tags = value.Tags; - bool? var_multiRegion = value.MultiRegion; - string var_xksKeyId = value.XksKeyId; + string var_policy = (string)value.Policy; + string var_description = (string)value.Description; + Amazon.KeyManagementService.KeyUsageType var_keyUsage = (Amazon.KeyManagementService.KeyUsageType)value.KeyUsage; + Amazon.KeyManagementService.CustomerMasterKeySpec var_customerMasterKeySpec = (Amazon.KeyManagementService.CustomerMasterKeySpec)value.CustomerMasterKeySpec; + Amazon.KeyManagementService.KeySpec var_keySpec = (Amazon.KeyManagementService.KeySpec)value.KeySpec; + Amazon.KeyManagementService.OriginType var_origin = (Amazon.KeyManagementService.OriginType)value.Origin; + string var_customKeyStoreId = (string)value.CustomKeyStoreId; + bool? var_bypassPolicyLockoutSafetyCheck = (bool?)value.BypassPolicyLockoutSafetyCheck; + System.Collections.Generic.List var_tags = (System.Collections.Generic.List)value.Tags; + bool? var_multiRegion = (bool?)value.MultiRegion; + string var_xksKeyId = (string)value.XksKeyId; return new software.amazon.cryptography.services.kms.internaldafny.types.CreateKeyRequest(ToDafny_N3_com__N9_amazonaws__N3_kms__S16_CreateKeyRequest__M6_Policy(var_policy), ToDafny_N3_com__N9_amazonaws__N3_kms__S16_CreateKeyRequest__M11_Description(var_description), ToDafny_N3_com__N9_amazonaws__N3_kms__S16_CreateKeyRequest__M8_KeyUsage(var_keyUsage), ToDafny_N3_com__N9_amazonaws__N3_kms__S16_CreateKeyRequest__M21_CustomerMasterKeySpec(var_customerMasterKeySpec), ToDafny_N3_com__N9_amazonaws__N3_kms__S16_CreateKeyRequest__M7_KeySpec(var_keySpec), ToDafny_N3_com__N9_amazonaws__N3_kms__S16_CreateKeyRequest__M6_Origin(var_origin), ToDafny_N3_com__N9_amazonaws__N3_kms__S16_CreateKeyRequest__M16_CustomKeyStoreId(var_customKeyStoreId), ToDafny_N3_com__N9_amazonaws__N3_kms__S16_CreateKeyRequest__M30_BypassPolicyLockoutSafetyCheck(var_bypassPolicyLockoutSafetyCheck), ToDafny_N3_com__N9_amazonaws__N3_kms__S16_CreateKeyRequest__M4_Tags(var_tags), ToDafny_N3_com__N9_amazonaws__N3_kms__S16_CreateKeyRequest__M11_MultiRegion(var_multiRegion), ToDafny_N3_com__N9_amazonaws__N3_kms__S16_CreateKeyRequest__M8_XksKeyId(var_xksKeyId)); } public static Amazon.KeyManagementService.Model.CreateKeyResponse FromDafny_N3_com__N9_amazonaws__N3_kms__S17_CreateKeyResponse(software.amazon.cryptography.services.kms.internaldafny.types._ICreateKeyResponse value) @@ -342,7 +342,7 @@ public static Amazon.KeyManagementService.Model.CreateKeyResponse FromDafny_N3_c public static software.amazon.cryptography.services.kms.internaldafny.types._ICreateKeyResponse ToDafny_N3_com__N9_amazonaws__N3_kms__S17_CreateKeyResponse(Amazon.KeyManagementService.Model.CreateKeyResponse value) { - Amazon.KeyManagementService.Model.KeyMetadata var_keyMetadata = value.KeyMetadata; + Amazon.KeyManagementService.Model.KeyMetadata var_keyMetadata = (Amazon.KeyManagementService.Model.KeyMetadata)value.KeyMetadata; return new software.amazon.cryptography.services.kms.internaldafny.types.CreateKeyResponse(ToDafny_N3_com__N9_amazonaws__N3_kms__S17_CreateKeyResponse__M11_KeyMetadata(var_keyMetadata)); } public static Amazon.KeyManagementService.CustomerMasterKeySpec FromDafny_N3_com__N9_amazonaws__N3_kms__S21_CustomerMasterKeySpec(software.amazon.cryptography.services.kms.internaldafny.types._ICustomerMasterKeySpec value) @@ -387,7 +387,7 @@ public static Amazon.KeyManagementService.Model.CustomKeyStoreHasCMKsException F } public static software.amazon.cryptography.services.kms.internaldafny.types.Error_CustomKeyStoreHasCMKsException ToDafny_N3_com__N9_amazonaws__N3_kms__S30_CustomKeyStoreHasCMKsException(Amazon.KeyManagementService.Model.CustomKeyStoreHasCMKsException value) { - string var_message = value.Message; + string var_message = (string)value.Message; return new software.amazon.cryptography.services.kms.internaldafny.types.Error_CustomKeyStoreHasCMKsException( ToDafny_N3_com__N9_amazonaws__N3_kms__S30_CustomKeyStoreHasCMKsException__M7_message(var_message) ); @@ -400,7 +400,7 @@ public static Amazon.KeyManagementService.Model.CustomKeyStoreInvalidStateExcept } public static software.amazon.cryptography.services.kms.internaldafny.types.Error_CustomKeyStoreInvalidStateException ToDafny_N3_com__N9_amazonaws__N3_kms__S35_CustomKeyStoreInvalidStateException(Amazon.KeyManagementService.Model.CustomKeyStoreInvalidStateException value) { - string var_message = value.Message; + string var_message = (string)value.Message; return new software.amazon.cryptography.services.kms.internaldafny.types.Error_CustomKeyStoreInvalidStateException( ToDafny_N3_com__N9_amazonaws__N3_kms__S35_CustomKeyStoreInvalidStateException__M7_message(var_message) ); @@ -413,7 +413,7 @@ public static Amazon.KeyManagementService.Model.CustomKeyStoreNameInUseException } public static software.amazon.cryptography.services.kms.internaldafny.types.Error_CustomKeyStoreNameInUseException ToDafny_N3_com__N9_amazonaws__N3_kms__S32_CustomKeyStoreNameInUseException(Amazon.KeyManagementService.Model.CustomKeyStoreNameInUseException value) { - string var_message = value.Message; + string var_message = (string)value.Message; return new software.amazon.cryptography.services.kms.internaldafny.types.Error_CustomKeyStoreNameInUseException( ToDafny_N3_com__N9_amazonaws__N3_kms__S32_CustomKeyStoreNameInUseException__M7_message(var_message) ); @@ -426,7 +426,7 @@ public static Amazon.KeyManagementService.Model.CustomKeyStoreNotFoundException } public static software.amazon.cryptography.services.kms.internaldafny.types.Error_CustomKeyStoreNotFoundException ToDafny_N3_com__N9_amazonaws__N3_kms__S31_CustomKeyStoreNotFoundException(Amazon.KeyManagementService.Model.CustomKeyStoreNotFoundException value) { - string var_message = value.Message; + string var_message = (string)value.Message; return new software.amazon.cryptography.services.kms.internaldafny.types.Error_CustomKeyStoreNotFoundException( ToDafny_N3_com__N9_amazonaws__N3_kms__S31_CustomKeyStoreNotFoundException__M7_message(var_message) ); @@ -492,12 +492,12 @@ public static Amazon.KeyManagementService.Model.DecryptRequest FromDafny_N3_com_ public static software.amazon.cryptography.services.kms.internaldafny.types._IDecryptRequest ToDafny_N3_com__N9_amazonaws__N3_kms__S14_DecryptRequest(Amazon.KeyManagementService.Model.DecryptRequest value) { - System.Collections.Generic.Dictionary var_encryptionContext = value.EncryptionContext; - System.Collections.Generic.List var_grantTokens = value.GrantTokens; - string var_keyId = value.KeyId; - Amazon.KeyManagementService.EncryptionAlgorithmSpec var_encryptionAlgorithm = value.EncryptionAlgorithm; - Amazon.KeyManagementService.Model.RecipientInfo var_recipient = value.Recipient; - bool? var_dryRun = value.DryRun; + System.Collections.Generic.Dictionary var_encryptionContext = (System.Collections.Generic.Dictionary)value.EncryptionContext; + System.Collections.Generic.List var_grantTokens = (System.Collections.Generic.List)value.GrantTokens; + string var_keyId = (string)value.KeyId; + Amazon.KeyManagementService.EncryptionAlgorithmSpec var_encryptionAlgorithm = (Amazon.KeyManagementService.EncryptionAlgorithmSpec)value.EncryptionAlgorithm; + Amazon.KeyManagementService.Model.RecipientInfo var_recipient = (Amazon.KeyManagementService.Model.RecipientInfo)value.Recipient; + bool? var_dryRun = (bool?)value.DryRun; return new software.amazon.cryptography.services.kms.internaldafny.types.DecryptRequest(ToDafny_N3_com__N9_amazonaws__N3_kms__S14_DecryptRequest__M14_CiphertextBlob(value.CiphertextBlob), ToDafny_N3_com__N9_amazonaws__N3_kms__S14_DecryptRequest__M17_EncryptionContext(var_encryptionContext), ToDafny_N3_com__N9_amazonaws__N3_kms__S14_DecryptRequest__M11_GrantTokens(var_grantTokens), ToDafny_N3_com__N9_amazonaws__N3_kms__S14_DecryptRequest__M5_KeyId(var_keyId), ToDafny_N3_com__N9_amazonaws__N3_kms__S14_DecryptRequest__M19_EncryptionAlgorithm(var_encryptionAlgorithm), ToDafny_N3_com__N9_amazonaws__N3_kms__S14_DecryptRequest__M9_Recipient(var_recipient), ToDafny_N3_com__N9_amazonaws__N3_kms__S14_DecryptRequest__M6_DryRun(var_dryRun)); } public static Amazon.KeyManagementService.Model.DecryptResponse FromDafny_N3_com__N9_amazonaws__N3_kms__S15_DecryptResponse(software.amazon.cryptography.services.kms.internaldafny.types._IDecryptResponse value) @@ -510,10 +510,10 @@ public static Amazon.KeyManagementService.Model.DecryptResponse FromDafny_N3_com public static software.amazon.cryptography.services.kms.internaldafny.types._IDecryptResponse ToDafny_N3_com__N9_amazonaws__N3_kms__S15_DecryptResponse(Amazon.KeyManagementService.Model.DecryptResponse value) { - string var_keyId = value.KeyId; - System.IO.MemoryStream var_plaintext = value.Plaintext; - Amazon.KeyManagementService.EncryptionAlgorithmSpec var_encryptionAlgorithm = value.EncryptionAlgorithm; - System.IO.MemoryStream var_ciphertextForRecipient = value.CiphertextForRecipient; + string var_keyId = (string)value.KeyId; + System.IO.MemoryStream var_plaintext = (System.IO.MemoryStream)value.Plaintext; + Amazon.KeyManagementService.EncryptionAlgorithmSpec var_encryptionAlgorithm = (Amazon.KeyManagementService.EncryptionAlgorithmSpec)value.EncryptionAlgorithm; + System.IO.MemoryStream var_ciphertextForRecipient = (System.IO.MemoryStream)value.CiphertextForRecipient; return new software.amazon.cryptography.services.kms.internaldafny.types.DecryptResponse(ToDafny_N3_com__N9_amazonaws__N3_kms__S15_DecryptResponse__M5_KeyId(var_keyId), ToDafny_N3_com__N9_amazonaws__N3_kms__S15_DecryptResponse__M9_Plaintext(var_plaintext), ToDafny_N3_com__N9_amazonaws__N3_kms__S15_DecryptResponse__M19_EncryptionAlgorithm(var_encryptionAlgorithm), ToDafny_N3_com__N9_amazonaws__N3_kms__S15_DecryptResponse__M22_CiphertextForRecipient(var_ciphertextForRecipient)); } public static Amazon.KeyManagementService.Model.DeleteAliasRequest FromDafny_N3_com__N9_amazonaws__N3_kms__S18_DeleteAliasRequest(software.amazon.cryptography.services.kms.internaldafny.types._IDeleteAliasRequest value) @@ -564,7 +564,7 @@ public static Amazon.KeyManagementService.Model.DependencyTimeoutException FromD } public static software.amazon.cryptography.services.kms.internaldafny.types.Error_DependencyTimeoutException ToDafny_N3_com__N9_amazonaws__N3_kms__S26_DependencyTimeoutException(Amazon.KeyManagementService.Model.DependencyTimeoutException value) { - string var_message = value.Message; + string var_message = (string)value.Message; return new software.amazon.cryptography.services.kms.internaldafny.types.Error_DependencyTimeoutException( ToDafny_N3_com__N9_amazonaws__N3_kms__S26_DependencyTimeoutException__M7_message(var_message) ); @@ -581,9 +581,9 @@ public static Amazon.KeyManagementService.Model.DeriveSharedSecretRequest FromDa public static software.amazon.cryptography.services.kms.internaldafny.types._IDeriveSharedSecretRequest ToDafny_N3_com__N9_amazonaws__N3_kms__S25_DeriveSharedSecretRequest(Amazon.KeyManagementService.Model.DeriveSharedSecretRequest value) { - System.Collections.Generic.List var_grantTokens = value.GrantTokens; - bool? var_dryRun = value.DryRun; - Amazon.KeyManagementService.Model.RecipientInfo var_recipient = value.Recipient; + System.Collections.Generic.List var_grantTokens = (System.Collections.Generic.List)value.GrantTokens; + bool? var_dryRun = (bool?)value.DryRun; + Amazon.KeyManagementService.Model.RecipientInfo var_recipient = (Amazon.KeyManagementService.Model.RecipientInfo)value.Recipient; return new software.amazon.cryptography.services.kms.internaldafny.types.DeriveSharedSecretRequest(ToDafny_N3_com__N9_amazonaws__N3_kms__S25_DeriveSharedSecretRequest__M5_KeyId(value.KeyId), ToDafny_N3_com__N9_amazonaws__N3_kms__S25_DeriveSharedSecretRequest__M21_KeyAgreementAlgorithm(value.KeyAgreementAlgorithm), ToDafny_N3_com__N9_amazonaws__N3_kms__S25_DeriveSharedSecretRequest__M9_PublicKey(value.PublicKey), ToDafny_N3_com__N9_amazonaws__N3_kms__S25_DeriveSharedSecretRequest__M11_GrantTokens(var_grantTokens), ToDafny_N3_com__N9_amazonaws__N3_kms__S25_DeriveSharedSecretRequest__M6_DryRun(var_dryRun), ToDafny_N3_com__N9_amazonaws__N3_kms__S25_DeriveSharedSecretRequest__M9_Recipient(var_recipient)); } public static Amazon.KeyManagementService.Model.DeriveSharedSecretResponse FromDafny_N3_com__N9_amazonaws__N3_kms__S26_DeriveSharedSecretResponse(software.amazon.cryptography.services.kms.internaldafny.types._IDeriveSharedSecretResponse value) @@ -597,11 +597,11 @@ public static Amazon.KeyManagementService.Model.DeriveSharedSecretResponse FromD public static software.amazon.cryptography.services.kms.internaldafny.types._IDeriveSharedSecretResponse ToDafny_N3_com__N9_amazonaws__N3_kms__S26_DeriveSharedSecretResponse(Amazon.KeyManagementService.Model.DeriveSharedSecretResponse value) { - string var_keyId = value.KeyId; - System.IO.MemoryStream var_sharedSecret = value.SharedSecret; - System.IO.MemoryStream var_ciphertextForRecipient = value.CiphertextForRecipient; - Amazon.KeyManagementService.KeyAgreementAlgorithmSpec var_keyAgreementAlgorithm = value.KeyAgreementAlgorithm; - Amazon.KeyManagementService.OriginType var_keyOrigin = value.KeyOrigin; + string var_keyId = (string)value.KeyId; + System.IO.MemoryStream var_sharedSecret = (System.IO.MemoryStream)value.SharedSecret; + System.IO.MemoryStream var_ciphertextForRecipient = (System.IO.MemoryStream)value.CiphertextForRecipient; + Amazon.KeyManagementService.KeyAgreementAlgorithmSpec var_keyAgreementAlgorithm = (Amazon.KeyManagementService.KeyAgreementAlgorithmSpec)value.KeyAgreementAlgorithm; + Amazon.KeyManagementService.OriginType var_keyOrigin = (Amazon.KeyManagementService.OriginType)value.KeyOrigin; return new software.amazon.cryptography.services.kms.internaldafny.types.DeriveSharedSecretResponse(ToDafny_N3_com__N9_amazonaws__N3_kms__S26_DeriveSharedSecretResponse__M5_KeyId(var_keyId), ToDafny_N3_com__N9_amazonaws__N3_kms__S26_DeriveSharedSecretResponse__M12_SharedSecret(var_sharedSecret), ToDafny_N3_com__N9_amazonaws__N3_kms__S26_DeriveSharedSecretResponse__M22_CiphertextForRecipient(var_ciphertextForRecipient), ToDafny_N3_com__N9_amazonaws__N3_kms__S26_DeriveSharedSecretResponse__M21_KeyAgreementAlgorithm(var_keyAgreementAlgorithm), ToDafny_N3_com__N9_amazonaws__N3_kms__S26_DeriveSharedSecretResponse__M9_KeyOrigin(var_keyOrigin)); } public static Amazon.KeyManagementService.Model.DescribeCustomKeyStoresRequest FromDafny_N3_com__N9_amazonaws__N3_kms__S30_DescribeCustomKeyStoresRequest(software.amazon.cryptography.services.kms.internaldafny.types._IDescribeCustomKeyStoresRequest value) @@ -614,10 +614,10 @@ public static Amazon.KeyManagementService.Model.DescribeCustomKeyStoresRequest F public static software.amazon.cryptography.services.kms.internaldafny.types._IDescribeCustomKeyStoresRequest ToDafny_N3_com__N9_amazonaws__N3_kms__S30_DescribeCustomKeyStoresRequest(Amazon.KeyManagementService.Model.DescribeCustomKeyStoresRequest value) { - string var_customKeyStoreId = value.CustomKeyStoreId; - string var_customKeyStoreName = value.CustomKeyStoreName; - int? var_limit = value.Limit; - string var_marker = value.Marker; + string var_customKeyStoreId = (string)value.CustomKeyStoreId; + string var_customKeyStoreName = (string)value.CustomKeyStoreName; + int? var_limit = (int?)value.Limit; + string var_marker = (string)value.Marker; return new software.amazon.cryptography.services.kms.internaldafny.types.DescribeCustomKeyStoresRequest(ToDafny_N3_com__N9_amazonaws__N3_kms__S30_DescribeCustomKeyStoresRequest__M16_CustomKeyStoreId(var_customKeyStoreId), ToDafny_N3_com__N9_amazonaws__N3_kms__S30_DescribeCustomKeyStoresRequest__M18_CustomKeyStoreName(var_customKeyStoreName), ToDafny_N3_com__N9_amazonaws__N3_kms__S30_DescribeCustomKeyStoresRequest__M5_Limit(var_limit), ToDafny_N3_com__N9_amazonaws__N3_kms__S30_DescribeCustomKeyStoresRequest__M6_Marker(var_marker)); } public static Amazon.KeyManagementService.Model.DescribeCustomKeyStoresResponse FromDafny_N3_com__N9_amazonaws__N3_kms__S31_DescribeCustomKeyStoresResponse(software.amazon.cryptography.services.kms.internaldafny.types._IDescribeCustomKeyStoresResponse value) @@ -629,9 +629,9 @@ public static Amazon.KeyManagementService.Model.DescribeCustomKeyStoresResponse public static software.amazon.cryptography.services.kms.internaldafny.types._IDescribeCustomKeyStoresResponse ToDafny_N3_com__N9_amazonaws__N3_kms__S31_DescribeCustomKeyStoresResponse(Amazon.KeyManagementService.Model.DescribeCustomKeyStoresResponse value) { - System.Collections.Generic.List var_customKeyStores = value.CustomKeyStores; - string var_nextMarker = value.NextMarker; - bool? var_truncated = value.Truncated; + System.Collections.Generic.List var_customKeyStores = (System.Collections.Generic.List)value.CustomKeyStores; + string var_nextMarker = (string)value.NextMarker; + bool? var_truncated = (bool?)value.Truncated; return new software.amazon.cryptography.services.kms.internaldafny.types.DescribeCustomKeyStoresResponse(ToDafny_N3_com__N9_amazonaws__N3_kms__S31_DescribeCustomKeyStoresResponse__M15_CustomKeyStores(var_customKeyStores), ToDafny_N3_com__N9_amazonaws__N3_kms__S31_DescribeCustomKeyStoresResponse__M10_NextMarker(var_nextMarker), ToDafny_N3_com__N9_amazonaws__N3_kms__S31_DescribeCustomKeyStoresResponse__M9_Truncated(var_truncated)); } public static Amazon.KeyManagementService.Model.DescribeKeyRequest FromDafny_N3_com__N9_amazonaws__N3_kms__S18_DescribeKeyRequest(software.amazon.cryptography.services.kms.internaldafny.types._IDescribeKeyRequest value) @@ -642,7 +642,7 @@ public static Amazon.KeyManagementService.Model.DescribeKeyRequest FromDafny_N3_ public static software.amazon.cryptography.services.kms.internaldafny.types._IDescribeKeyRequest ToDafny_N3_com__N9_amazonaws__N3_kms__S18_DescribeKeyRequest(Amazon.KeyManagementService.Model.DescribeKeyRequest value) { - System.Collections.Generic.List var_grantTokens = value.GrantTokens; + System.Collections.Generic.List var_grantTokens = (System.Collections.Generic.List)value.GrantTokens; return new software.amazon.cryptography.services.kms.internaldafny.types.DescribeKeyRequest(ToDafny_N3_com__N9_amazonaws__N3_kms__S18_DescribeKeyRequest__M5_KeyId(value.KeyId), ToDafny_N3_com__N9_amazonaws__N3_kms__S18_DescribeKeyRequest__M11_GrantTokens(var_grantTokens)); } public static Amazon.KeyManagementService.Model.DescribeKeyResponse FromDafny_N3_com__N9_amazonaws__N3_kms__S19_DescribeKeyResponse(software.amazon.cryptography.services.kms.internaldafny.types._IDescribeKeyResponse value) @@ -652,7 +652,7 @@ public static Amazon.KeyManagementService.Model.DescribeKeyResponse FromDafny_N3 public static software.amazon.cryptography.services.kms.internaldafny.types._IDescribeKeyResponse ToDafny_N3_com__N9_amazonaws__N3_kms__S19_DescribeKeyResponse(Amazon.KeyManagementService.Model.DescribeKeyResponse value) { - Amazon.KeyManagementService.Model.KeyMetadata var_keyMetadata = value.KeyMetadata; + Amazon.KeyManagementService.Model.KeyMetadata var_keyMetadata = (Amazon.KeyManagementService.Model.KeyMetadata)value.KeyMetadata; return new software.amazon.cryptography.services.kms.internaldafny.types.DescribeKeyResponse(ToDafny_N3_com__N9_amazonaws__N3_kms__S19_DescribeKeyResponse__M11_KeyMetadata(var_keyMetadata)); } public static Amazon.KeyManagementService.Model.DisabledException FromDafny_N3_com__N9_amazonaws__N3_kms__S17_DisabledException(software.amazon.cryptography.services.kms.internaldafny.types.Error_DisabledException value) @@ -663,7 +663,7 @@ public static Amazon.KeyManagementService.Model.DisabledException FromDafny_N3_c } public static software.amazon.cryptography.services.kms.internaldafny.types.Error_DisabledException ToDafny_N3_com__N9_amazonaws__N3_kms__S17_DisabledException(Amazon.KeyManagementService.Model.DisabledException value) { - string var_message = value.Message; + string var_message = (string)value.Message; return new software.amazon.cryptography.services.kms.internaldafny.types.Error_DisabledException( ToDafny_N3_com__N9_amazonaws__N3_kms__S17_DisabledException__M7_message(var_message) ); @@ -716,7 +716,7 @@ public static Amazon.KeyManagementService.Model.DryRunOperationException FromDaf } public static software.amazon.cryptography.services.kms.internaldafny.types.Error_DryRunOperationException ToDafny_N3_com__N9_amazonaws__N3_kms__S24_DryRunOperationException(Amazon.KeyManagementService.Model.DryRunOperationException value) { - string var_message = value.Message; + string var_message = (string)value.Message; return new software.amazon.cryptography.services.kms.internaldafny.types.Error_DryRunOperationException( ToDafny_N3_com__N9_amazonaws__N3_kms__S24_DryRunOperationException__M7_message(var_message) ); @@ -739,7 +739,7 @@ public static Amazon.KeyManagementService.Model.EnableKeyRotationRequest FromDaf public static software.amazon.cryptography.services.kms.internaldafny.types._IEnableKeyRotationRequest ToDafny_N3_com__N9_amazonaws__N3_kms__S24_EnableKeyRotationRequest(Amazon.KeyManagementService.Model.EnableKeyRotationRequest value) { - int? var_rotationPeriodInDays = value.RotationPeriodInDays; + int? var_rotationPeriodInDays = (int?)value.RotationPeriodInDays; return new software.amazon.cryptography.services.kms.internaldafny.types.EnableKeyRotationRequest(ToDafny_N3_com__N9_amazonaws__N3_kms__S24_EnableKeyRotationRequest__M5_KeyId(value.KeyId), ToDafny_N3_com__N9_amazonaws__N3_kms__S24_EnableKeyRotationRequest__M20_RotationPeriodInDays(var_rotationPeriodInDays)); } public static Amazon.KeyManagementService.EncryptionAlgorithmSpec FromDafny_N3_com__N9_amazonaws__N3_kms__S23_EncryptionAlgorithmSpec(software.amazon.cryptography.services.kms.internaldafny.types._IEncryptionAlgorithmSpec value) @@ -768,10 +768,10 @@ public static Amazon.KeyManagementService.Model.EncryptRequest FromDafny_N3_com_ public static software.amazon.cryptography.services.kms.internaldafny.types._IEncryptRequest ToDafny_N3_com__N9_amazonaws__N3_kms__S14_EncryptRequest(Amazon.KeyManagementService.Model.EncryptRequest value) { - System.Collections.Generic.Dictionary var_encryptionContext = value.EncryptionContext; - System.Collections.Generic.List var_grantTokens = value.GrantTokens; - Amazon.KeyManagementService.EncryptionAlgorithmSpec var_encryptionAlgorithm = value.EncryptionAlgorithm; - bool? var_dryRun = value.DryRun; + System.Collections.Generic.Dictionary var_encryptionContext = (System.Collections.Generic.Dictionary)value.EncryptionContext; + System.Collections.Generic.List var_grantTokens = (System.Collections.Generic.List)value.GrantTokens; + Amazon.KeyManagementService.EncryptionAlgorithmSpec var_encryptionAlgorithm = (Amazon.KeyManagementService.EncryptionAlgorithmSpec)value.EncryptionAlgorithm; + bool? var_dryRun = (bool?)value.DryRun; return new software.amazon.cryptography.services.kms.internaldafny.types.EncryptRequest(ToDafny_N3_com__N9_amazonaws__N3_kms__S14_EncryptRequest__M5_KeyId(value.KeyId), ToDafny_N3_com__N9_amazonaws__N3_kms__S14_EncryptRequest__M9_Plaintext(value.Plaintext), ToDafny_N3_com__N9_amazonaws__N3_kms__S14_EncryptRequest__M17_EncryptionContext(var_encryptionContext), ToDafny_N3_com__N9_amazonaws__N3_kms__S14_EncryptRequest__M11_GrantTokens(var_grantTokens), ToDafny_N3_com__N9_amazonaws__N3_kms__S14_EncryptRequest__M19_EncryptionAlgorithm(var_encryptionAlgorithm), ToDafny_N3_com__N9_amazonaws__N3_kms__S14_EncryptRequest__M6_DryRun(var_dryRun)); } public static Amazon.KeyManagementService.Model.EncryptResponse FromDafny_N3_com__N9_amazonaws__N3_kms__S15_EncryptResponse(software.amazon.cryptography.services.kms.internaldafny.types._IEncryptResponse value) @@ -783,9 +783,9 @@ public static Amazon.KeyManagementService.Model.EncryptResponse FromDafny_N3_com public static software.amazon.cryptography.services.kms.internaldafny.types._IEncryptResponse ToDafny_N3_com__N9_amazonaws__N3_kms__S15_EncryptResponse(Amazon.KeyManagementService.Model.EncryptResponse value) { - System.IO.MemoryStream var_ciphertextBlob = value.CiphertextBlob; - string var_keyId = value.KeyId; - Amazon.KeyManagementService.EncryptionAlgorithmSpec var_encryptionAlgorithm = value.EncryptionAlgorithm; + System.IO.MemoryStream var_ciphertextBlob = (System.IO.MemoryStream)value.CiphertextBlob; + string var_keyId = (string)value.KeyId; + Amazon.KeyManagementService.EncryptionAlgorithmSpec var_encryptionAlgorithm = (Amazon.KeyManagementService.EncryptionAlgorithmSpec)value.EncryptionAlgorithm; return new software.amazon.cryptography.services.kms.internaldafny.types.EncryptResponse(ToDafny_N3_com__N9_amazonaws__N3_kms__S15_EncryptResponse__M14_CiphertextBlob(var_ciphertextBlob), ToDafny_N3_com__N9_amazonaws__N3_kms__S15_EncryptResponse__M5_KeyId(var_keyId), ToDafny_N3_com__N9_amazonaws__N3_kms__S15_EncryptResponse__M19_EncryptionAlgorithm(var_encryptionAlgorithm)); } public static Amazon.KeyManagementService.ExpirationModelType FromDafny_N3_com__N9_amazonaws__N3_kms__S19_ExpirationModelType(software.amazon.cryptography.services.kms.internaldafny.types._IExpirationModelType value) @@ -808,7 +808,7 @@ public static Amazon.KeyManagementService.Model.ExpiredImportTokenException From } public static software.amazon.cryptography.services.kms.internaldafny.types.Error_ExpiredImportTokenException ToDafny_N3_com__N9_amazonaws__N3_kms__S27_ExpiredImportTokenException(Amazon.KeyManagementService.Model.ExpiredImportTokenException value) { - string var_message = value.Message; + string var_message = (string)value.Message; return new software.amazon.cryptography.services.kms.internaldafny.types.Error_ExpiredImportTokenException( ToDafny_N3_com__N9_amazonaws__N3_kms__S27_ExpiredImportTokenException__M7_message(var_message) ); @@ -825,10 +825,10 @@ public static Amazon.KeyManagementService.Model.GenerateDataKeyPairRequest FromD public static software.amazon.cryptography.services.kms.internaldafny.types._IGenerateDataKeyPairRequest ToDafny_N3_com__N9_amazonaws__N3_kms__S26_GenerateDataKeyPairRequest(Amazon.KeyManagementService.Model.GenerateDataKeyPairRequest value) { - System.Collections.Generic.Dictionary var_encryptionContext = value.EncryptionContext; - System.Collections.Generic.List var_grantTokens = value.GrantTokens; - Amazon.KeyManagementService.Model.RecipientInfo var_recipient = value.Recipient; - bool? var_dryRun = value.DryRun; + System.Collections.Generic.Dictionary var_encryptionContext = (System.Collections.Generic.Dictionary)value.EncryptionContext; + System.Collections.Generic.List var_grantTokens = (System.Collections.Generic.List)value.GrantTokens; + Amazon.KeyManagementService.Model.RecipientInfo var_recipient = (Amazon.KeyManagementService.Model.RecipientInfo)value.Recipient; + bool? var_dryRun = (bool?)value.DryRun; return new software.amazon.cryptography.services.kms.internaldafny.types.GenerateDataKeyPairRequest(ToDafny_N3_com__N9_amazonaws__N3_kms__S26_GenerateDataKeyPairRequest__M17_EncryptionContext(var_encryptionContext), ToDafny_N3_com__N9_amazonaws__N3_kms__S26_GenerateDataKeyPairRequest__M5_KeyId(value.KeyId), ToDafny_N3_com__N9_amazonaws__N3_kms__S26_GenerateDataKeyPairRequest__M11_KeyPairSpec(value.KeyPairSpec), ToDafny_N3_com__N9_amazonaws__N3_kms__S26_GenerateDataKeyPairRequest__M11_GrantTokens(var_grantTokens), ToDafny_N3_com__N9_amazonaws__N3_kms__S26_GenerateDataKeyPairRequest__M9_Recipient(var_recipient), ToDafny_N3_com__N9_amazonaws__N3_kms__S26_GenerateDataKeyPairRequest__M6_DryRun(var_dryRun)); } public static Amazon.KeyManagementService.Model.GenerateDataKeyPairResponse FromDafny_N3_com__N9_amazonaws__N3_kms__S27_GenerateDataKeyPairResponse(software.amazon.cryptography.services.kms.internaldafny.types._IGenerateDataKeyPairResponse value) @@ -843,12 +843,12 @@ public static Amazon.KeyManagementService.Model.GenerateDataKeyPairResponse From public static software.amazon.cryptography.services.kms.internaldafny.types._IGenerateDataKeyPairResponse ToDafny_N3_com__N9_amazonaws__N3_kms__S27_GenerateDataKeyPairResponse(Amazon.KeyManagementService.Model.GenerateDataKeyPairResponse value) { - System.IO.MemoryStream var_privateKeyCiphertextBlob = value.PrivateKeyCiphertextBlob; - System.IO.MemoryStream var_privateKeyPlaintext = value.PrivateKeyPlaintext; - System.IO.MemoryStream var_publicKey = value.PublicKey; - string var_keyId = value.KeyId; - Amazon.KeyManagementService.DataKeyPairSpec var_keyPairSpec = value.KeyPairSpec; - System.IO.MemoryStream var_ciphertextForRecipient = value.CiphertextForRecipient; + System.IO.MemoryStream var_privateKeyCiphertextBlob = (System.IO.MemoryStream)value.PrivateKeyCiphertextBlob; + System.IO.MemoryStream var_privateKeyPlaintext = (System.IO.MemoryStream)value.PrivateKeyPlaintext; + System.IO.MemoryStream var_publicKey = (System.IO.MemoryStream)value.PublicKey; + string var_keyId = (string)value.KeyId; + Amazon.KeyManagementService.DataKeyPairSpec var_keyPairSpec = (Amazon.KeyManagementService.DataKeyPairSpec)value.KeyPairSpec; + System.IO.MemoryStream var_ciphertextForRecipient = (System.IO.MemoryStream)value.CiphertextForRecipient; return new software.amazon.cryptography.services.kms.internaldafny.types.GenerateDataKeyPairResponse(ToDafny_N3_com__N9_amazonaws__N3_kms__S27_GenerateDataKeyPairResponse__M24_PrivateKeyCiphertextBlob(var_privateKeyCiphertextBlob), ToDafny_N3_com__N9_amazonaws__N3_kms__S27_GenerateDataKeyPairResponse__M19_PrivateKeyPlaintext(var_privateKeyPlaintext), ToDafny_N3_com__N9_amazonaws__N3_kms__S27_GenerateDataKeyPairResponse__M9_PublicKey(var_publicKey), ToDafny_N3_com__N9_amazonaws__N3_kms__S27_GenerateDataKeyPairResponse__M5_KeyId(var_keyId), ToDafny_N3_com__N9_amazonaws__N3_kms__S27_GenerateDataKeyPairResponse__M11_KeyPairSpec(var_keyPairSpec), ToDafny_N3_com__N9_amazonaws__N3_kms__S27_GenerateDataKeyPairResponse__M22_CiphertextForRecipient(var_ciphertextForRecipient)); } public static Amazon.KeyManagementService.Model.GenerateDataKeyPairWithoutPlaintextRequest FromDafny_N3_com__N9_amazonaws__N3_kms__S42_GenerateDataKeyPairWithoutPlaintextRequest(software.amazon.cryptography.services.kms.internaldafny.types._IGenerateDataKeyPairWithoutPlaintextRequest value) @@ -862,9 +862,9 @@ public static Amazon.KeyManagementService.Model.GenerateDataKeyPairWithoutPlaint public static software.amazon.cryptography.services.kms.internaldafny.types._IGenerateDataKeyPairWithoutPlaintextRequest ToDafny_N3_com__N9_amazonaws__N3_kms__S42_GenerateDataKeyPairWithoutPlaintextRequest(Amazon.KeyManagementService.Model.GenerateDataKeyPairWithoutPlaintextRequest value) { - System.Collections.Generic.Dictionary var_encryptionContext = value.EncryptionContext; - System.Collections.Generic.List var_grantTokens = value.GrantTokens; - bool? var_dryRun = value.DryRun; + System.Collections.Generic.Dictionary var_encryptionContext = (System.Collections.Generic.Dictionary)value.EncryptionContext; + System.Collections.Generic.List var_grantTokens = (System.Collections.Generic.List)value.GrantTokens; + bool? var_dryRun = (bool?)value.DryRun; return new software.amazon.cryptography.services.kms.internaldafny.types.GenerateDataKeyPairWithoutPlaintextRequest(ToDafny_N3_com__N9_amazonaws__N3_kms__S42_GenerateDataKeyPairWithoutPlaintextRequest__M17_EncryptionContext(var_encryptionContext), ToDafny_N3_com__N9_amazonaws__N3_kms__S42_GenerateDataKeyPairWithoutPlaintextRequest__M5_KeyId(value.KeyId), ToDafny_N3_com__N9_amazonaws__N3_kms__S42_GenerateDataKeyPairWithoutPlaintextRequest__M11_KeyPairSpec(value.KeyPairSpec), ToDafny_N3_com__N9_amazonaws__N3_kms__S42_GenerateDataKeyPairWithoutPlaintextRequest__M11_GrantTokens(var_grantTokens), ToDafny_N3_com__N9_amazonaws__N3_kms__S42_GenerateDataKeyPairWithoutPlaintextRequest__M6_DryRun(var_dryRun)); } public static Amazon.KeyManagementService.Model.GenerateDataKeyPairWithoutPlaintextResponse FromDafny_N3_com__N9_amazonaws__N3_kms__S43_GenerateDataKeyPairWithoutPlaintextResponse(software.amazon.cryptography.services.kms.internaldafny.types._IGenerateDataKeyPairWithoutPlaintextResponse value) @@ -877,10 +877,10 @@ public static Amazon.KeyManagementService.Model.GenerateDataKeyPairWithoutPlaint public static software.amazon.cryptography.services.kms.internaldafny.types._IGenerateDataKeyPairWithoutPlaintextResponse ToDafny_N3_com__N9_amazonaws__N3_kms__S43_GenerateDataKeyPairWithoutPlaintextResponse(Amazon.KeyManagementService.Model.GenerateDataKeyPairWithoutPlaintextResponse value) { - System.IO.MemoryStream var_privateKeyCiphertextBlob = value.PrivateKeyCiphertextBlob; - System.IO.MemoryStream var_publicKey = value.PublicKey; - string var_keyId = value.KeyId; - Amazon.KeyManagementService.DataKeyPairSpec var_keyPairSpec = value.KeyPairSpec; + System.IO.MemoryStream var_privateKeyCiphertextBlob = (System.IO.MemoryStream)value.PrivateKeyCiphertextBlob; + System.IO.MemoryStream var_publicKey = (System.IO.MemoryStream)value.PublicKey; + string var_keyId = (string)value.KeyId; + Amazon.KeyManagementService.DataKeyPairSpec var_keyPairSpec = (Amazon.KeyManagementService.DataKeyPairSpec)value.KeyPairSpec; return new software.amazon.cryptography.services.kms.internaldafny.types.GenerateDataKeyPairWithoutPlaintextResponse(ToDafny_N3_com__N9_amazonaws__N3_kms__S43_GenerateDataKeyPairWithoutPlaintextResponse__M24_PrivateKeyCiphertextBlob(var_privateKeyCiphertextBlob), ToDafny_N3_com__N9_amazonaws__N3_kms__S43_GenerateDataKeyPairWithoutPlaintextResponse__M9_PublicKey(var_publicKey), ToDafny_N3_com__N9_amazonaws__N3_kms__S43_GenerateDataKeyPairWithoutPlaintextResponse__M5_KeyId(var_keyId), ToDafny_N3_com__N9_amazonaws__N3_kms__S43_GenerateDataKeyPairWithoutPlaintextResponse__M11_KeyPairSpec(var_keyPairSpec)); } public static Amazon.KeyManagementService.Model.GenerateDataKeyRequest FromDafny_N3_com__N9_amazonaws__N3_kms__S22_GenerateDataKeyRequest(software.amazon.cryptography.services.kms.internaldafny.types._IGenerateDataKeyRequest value) @@ -896,12 +896,12 @@ public static Amazon.KeyManagementService.Model.GenerateDataKeyRequest FromDafny public static software.amazon.cryptography.services.kms.internaldafny.types._IGenerateDataKeyRequest ToDafny_N3_com__N9_amazonaws__N3_kms__S22_GenerateDataKeyRequest(Amazon.KeyManagementService.Model.GenerateDataKeyRequest value) { - System.Collections.Generic.Dictionary var_encryptionContext = value.EncryptionContext; - int? var_numberOfBytes = value.NumberOfBytes; - Amazon.KeyManagementService.DataKeySpec var_keySpec = value.KeySpec; - System.Collections.Generic.List var_grantTokens = value.GrantTokens; - Amazon.KeyManagementService.Model.RecipientInfo var_recipient = value.Recipient; - bool? var_dryRun = value.DryRun; + System.Collections.Generic.Dictionary var_encryptionContext = (System.Collections.Generic.Dictionary)value.EncryptionContext; + int? var_numberOfBytes = (int?)value.NumberOfBytes; + Amazon.KeyManagementService.DataKeySpec var_keySpec = (Amazon.KeyManagementService.DataKeySpec)value.KeySpec; + System.Collections.Generic.List var_grantTokens = (System.Collections.Generic.List)value.GrantTokens; + Amazon.KeyManagementService.Model.RecipientInfo var_recipient = (Amazon.KeyManagementService.Model.RecipientInfo)value.Recipient; + bool? var_dryRun = (bool?)value.DryRun; return new software.amazon.cryptography.services.kms.internaldafny.types.GenerateDataKeyRequest(ToDafny_N3_com__N9_amazonaws__N3_kms__S22_GenerateDataKeyRequest__M5_KeyId(value.KeyId), ToDafny_N3_com__N9_amazonaws__N3_kms__S22_GenerateDataKeyRequest__M17_EncryptionContext(var_encryptionContext), ToDafny_N3_com__N9_amazonaws__N3_kms__S22_GenerateDataKeyRequest__M13_NumberOfBytes(var_numberOfBytes), ToDafny_N3_com__N9_amazonaws__N3_kms__S22_GenerateDataKeyRequest__M7_KeySpec(var_keySpec), ToDafny_N3_com__N9_amazonaws__N3_kms__S22_GenerateDataKeyRequest__M11_GrantTokens(var_grantTokens), ToDafny_N3_com__N9_amazonaws__N3_kms__S22_GenerateDataKeyRequest__M9_Recipient(var_recipient), ToDafny_N3_com__N9_amazonaws__N3_kms__S22_GenerateDataKeyRequest__M6_DryRun(var_dryRun)); } public static Amazon.KeyManagementService.Model.GenerateDataKeyResponse FromDafny_N3_com__N9_amazonaws__N3_kms__S23_GenerateDataKeyResponse(software.amazon.cryptography.services.kms.internaldafny.types._IGenerateDataKeyResponse value) @@ -914,10 +914,10 @@ public static Amazon.KeyManagementService.Model.GenerateDataKeyResponse FromDafn public static software.amazon.cryptography.services.kms.internaldafny.types._IGenerateDataKeyResponse ToDafny_N3_com__N9_amazonaws__N3_kms__S23_GenerateDataKeyResponse(Amazon.KeyManagementService.Model.GenerateDataKeyResponse value) { - System.IO.MemoryStream var_ciphertextBlob = value.CiphertextBlob; - System.IO.MemoryStream var_plaintext = value.Plaintext; - string var_keyId = value.KeyId; - System.IO.MemoryStream var_ciphertextForRecipient = value.CiphertextForRecipient; + System.IO.MemoryStream var_ciphertextBlob = (System.IO.MemoryStream)value.CiphertextBlob; + System.IO.MemoryStream var_plaintext = (System.IO.MemoryStream)value.Plaintext; + string var_keyId = (string)value.KeyId; + System.IO.MemoryStream var_ciphertextForRecipient = (System.IO.MemoryStream)value.CiphertextForRecipient; return new software.amazon.cryptography.services.kms.internaldafny.types.GenerateDataKeyResponse(ToDafny_N3_com__N9_amazonaws__N3_kms__S23_GenerateDataKeyResponse__M14_CiphertextBlob(var_ciphertextBlob), ToDafny_N3_com__N9_amazonaws__N3_kms__S23_GenerateDataKeyResponse__M9_Plaintext(var_plaintext), ToDafny_N3_com__N9_amazonaws__N3_kms__S23_GenerateDataKeyResponse__M5_KeyId(var_keyId), ToDafny_N3_com__N9_amazonaws__N3_kms__S23_GenerateDataKeyResponse__M22_CiphertextForRecipient(var_ciphertextForRecipient)); } public static Amazon.KeyManagementService.Model.GenerateDataKeyWithoutPlaintextRequest FromDafny_N3_com__N9_amazonaws__N3_kms__S38_GenerateDataKeyWithoutPlaintextRequest(software.amazon.cryptography.services.kms.internaldafny.types._IGenerateDataKeyWithoutPlaintextRequest value) @@ -932,11 +932,11 @@ public static Amazon.KeyManagementService.Model.GenerateDataKeyWithoutPlaintextR public static software.amazon.cryptography.services.kms.internaldafny.types._IGenerateDataKeyWithoutPlaintextRequest ToDafny_N3_com__N9_amazonaws__N3_kms__S38_GenerateDataKeyWithoutPlaintextRequest(Amazon.KeyManagementService.Model.GenerateDataKeyWithoutPlaintextRequest value) { - System.Collections.Generic.Dictionary var_encryptionContext = value.EncryptionContext; - Amazon.KeyManagementService.DataKeySpec var_keySpec = value.KeySpec; - int? var_numberOfBytes = value.NumberOfBytes; - System.Collections.Generic.List var_grantTokens = value.GrantTokens; - bool? var_dryRun = value.DryRun; + System.Collections.Generic.Dictionary var_encryptionContext = (System.Collections.Generic.Dictionary)value.EncryptionContext; + Amazon.KeyManagementService.DataKeySpec var_keySpec = (Amazon.KeyManagementService.DataKeySpec)value.KeySpec; + int? var_numberOfBytes = (int?)value.NumberOfBytes; + System.Collections.Generic.List var_grantTokens = (System.Collections.Generic.List)value.GrantTokens; + bool? var_dryRun = (bool?)value.DryRun; return new software.amazon.cryptography.services.kms.internaldafny.types.GenerateDataKeyWithoutPlaintextRequest(ToDafny_N3_com__N9_amazonaws__N3_kms__S38_GenerateDataKeyWithoutPlaintextRequest__M5_KeyId(value.KeyId), ToDafny_N3_com__N9_amazonaws__N3_kms__S38_GenerateDataKeyWithoutPlaintextRequest__M17_EncryptionContext(var_encryptionContext), ToDafny_N3_com__N9_amazonaws__N3_kms__S38_GenerateDataKeyWithoutPlaintextRequest__M7_KeySpec(var_keySpec), ToDafny_N3_com__N9_amazonaws__N3_kms__S38_GenerateDataKeyWithoutPlaintextRequest__M13_NumberOfBytes(var_numberOfBytes), ToDafny_N3_com__N9_amazonaws__N3_kms__S38_GenerateDataKeyWithoutPlaintextRequest__M11_GrantTokens(var_grantTokens), ToDafny_N3_com__N9_amazonaws__N3_kms__S38_GenerateDataKeyWithoutPlaintextRequest__M6_DryRun(var_dryRun)); } public static Amazon.KeyManagementService.Model.GenerateDataKeyWithoutPlaintextResponse FromDafny_N3_com__N9_amazonaws__N3_kms__S39_GenerateDataKeyWithoutPlaintextResponse(software.amazon.cryptography.services.kms.internaldafny.types._IGenerateDataKeyWithoutPlaintextResponse value) @@ -947,8 +947,8 @@ public static Amazon.KeyManagementService.Model.GenerateDataKeyWithoutPlaintextR public static software.amazon.cryptography.services.kms.internaldafny.types._IGenerateDataKeyWithoutPlaintextResponse ToDafny_N3_com__N9_amazonaws__N3_kms__S39_GenerateDataKeyWithoutPlaintextResponse(Amazon.KeyManagementService.Model.GenerateDataKeyWithoutPlaintextResponse value) { - System.IO.MemoryStream var_ciphertextBlob = value.CiphertextBlob; - string var_keyId = value.KeyId; + System.IO.MemoryStream var_ciphertextBlob = (System.IO.MemoryStream)value.CiphertextBlob; + string var_keyId = (string)value.KeyId; return new software.amazon.cryptography.services.kms.internaldafny.types.GenerateDataKeyWithoutPlaintextResponse(ToDafny_N3_com__N9_amazonaws__N3_kms__S39_GenerateDataKeyWithoutPlaintextResponse__M14_CiphertextBlob(var_ciphertextBlob), ToDafny_N3_com__N9_amazonaws__N3_kms__S39_GenerateDataKeyWithoutPlaintextResponse__M5_KeyId(var_keyId)); } public static Amazon.KeyManagementService.Model.GenerateMacRequest FromDafny_N3_com__N9_amazonaws__N3_kms__S18_GenerateMacRequest(software.amazon.cryptography.services.kms.internaldafny.types._IGenerateMacRequest value) @@ -962,8 +962,8 @@ public static Amazon.KeyManagementService.Model.GenerateMacRequest FromDafny_N3_ public static software.amazon.cryptography.services.kms.internaldafny.types._IGenerateMacRequest ToDafny_N3_com__N9_amazonaws__N3_kms__S18_GenerateMacRequest(Amazon.KeyManagementService.Model.GenerateMacRequest value) { - System.Collections.Generic.List var_grantTokens = value.GrantTokens; - bool? var_dryRun = value.DryRun; + System.Collections.Generic.List var_grantTokens = (System.Collections.Generic.List)value.GrantTokens; + bool? var_dryRun = (bool?)value.DryRun; return new software.amazon.cryptography.services.kms.internaldafny.types.GenerateMacRequest(ToDafny_N3_com__N9_amazonaws__N3_kms__S18_GenerateMacRequest__M7_Message(value.Message), ToDafny_N3_com__N9_amazonaws__N3_kms__S18_GenerateMacRequest__M5_KeyId(value.KeyId), ToDafny_N3_com__N9_amazonaws__N3_kms__S18_GenerateMacRequest__M12_MacAlgorithm(value.MacAlgorithm), ToDafny_N3_com__N9_amazonaws__N3_kms__S18_GenerateMacRequest__M11_GrantTokens(var_grantTokens), ToDafny_N3_com__N9_amazonaws__N3_kms__S18_GenerateMacRequest__M6_DryRun(var_dryRun)); } public static Amazon.KeyManagementService.Model.GenerateMacResponse FromDafny_N3_com__N9_amazonaws__N3_kms__S19_GenerateMacResponse(software.amazon.cryptography.services.kms.internaldafny.types._IGenerateMacResponse value) @@ -975,9 +975,9 @@ public static Amazon.KeyManagementService.Model.GenerateMacResponse FromDafny_N3 public static software.amazon.cryptography.services.kms.internaldafny.types._IGenerateMacResponse ToDafny_N3_com__N9_amazonaws__N3_kms__S19_GenerateMacResponse(Amazon.KeyManagementService.Model.GenerateMacResponse value) { - System.IO.MemoryStream var_mac = value.Mac; - Amazon.KeyManagementService.MacAlgorithmSpec var_macAlgorithm = value.MacAlgorithm; - string var_keyId = value.KeyId; + System.IO.MemoryStream var_mac = (System.IO.MemoryStream)value.Mac; + Amazon.KeyManagementService.MacAlgorithmSpec var_macAlgorithm = (Amazon.KeyManagementService.MacAlgorithmSpec)value.MacAlgorithm; + string var_keyId = (string)value.KeyId; return new software.amazon.cryptography.services.kms.internaldafny.types.GenerateMacResponse(ToDafny_N3_com__N9_amazonaws__N3_kms__S19_GenerateMacResponse__M3_Mac(var_mac), ToDafny_N3_com__N9_amazonaws__N3_kms__S19_GenerateMacResponse__M12_MacAlgorithm(var_macAlgorithm), ToDafny_N3_com__N9_amazonaws__N3_kms__S19_GenerateMacResponse__M5_KeyId(var_keyId)); } public static Amazon.KeyManagementService.Model.GenerateRandomRequest FromDafny_N3_com__N9_amazonaws__N3_kms__S21_GenerateRandomRequest(software.amazon.cryptography.services.kms.internaldafny.types._IGenerateRandomRequest value) @@ -989,9 +989,9 @@ public static Amazon.KeyManagementService.Model.GenerateRandomRequest FromDafny_ public static software.amazon.cryptography.services.kms.internaldafny.types._IGenerateRandomRequest ToDafny_N3_com__N9_amazonaws__N3_kms__S21_GenerateRandomRequest(Amazon.KeyManagementService.Model.GenerateRandomRequest value) { - int? var_numberOfBytes = value.NumberOfBytes; - string var_customKeyStoreId = value.CustomKeyStoreId; - Amazon.KeyManagementService.Model.RecipientInfo var_recipient = value.Recipient; + int? var_numberOfBytes = (int?)value.NumberOfBytes; + string var_customKeyStoreId = (string)value.CustomKeyStoreId; + Amazon.KeyManagementService.Model.RecipientInfo var_recipient = (Amazon.KeyManagementService.Model.RecipientInfo)value.Recipient; return new software.amazon.cryptography.services.kms.internaldafny.types.GenerateRandomRequest(ToDafny_N3_com__N9_amazonaws__N3_kms__S21_GenerateRandomRequest__M13_NumberOfBytes(var_numberOfBytes), ToDafny_N3_com__N9_amazonaws__N3_kms__S21_GenerateRandomRequest__M16_CustomKeyStoreId(var_customKeyStoreId), ToDafny_N3_com__N9_amazonaws__N3_kms__S21_GenerateRandomRequest__M9_Recipient(var_recipient)); } public static Amazon.KeyManagementService.Model.GenerateRandomResponse FromDafny_N3_com__N9_amazonaws__N3_kms__S22_GenerateRandomResponse(software.amazon.cryptography.services.kms.internaldafny.types._IGenerateRandomResponse value) @@ -1002,8 +1002,8 @@ public static Amazon.KeyManagementService.Model.GenerateRandomResponse FromDafny public static software.amazon.cryptography.services.kms.internaldafny.types._IGenerateRandomResponse ToDafny_N3_com__N9_amazonaws__N3_kms__S22_GenerateRandomResponse(Amazon.KeyManagementService.Model.GenerateRandomResponse value) { - System.IO.MemoryStream var_plaintext = value.Plaintext; - System.IO.MemoryStream var_ciphertextForRecipient = value.CiphertextForRecipient; + System.IO.MemoryStream var_plaintext = (System.IO.MemoryStream)value.Plaintext; + System.IO.MemoryStream var_ciphertextForRecipient = (System.IO.MemoryStream)value.CiphertextForRecipient; return new software.amazon.cryptography.services.kms.internaldafny.types.GenerateRandomResponse(ToDafny_N3_com__N9_amazonaws__N3_kms__S22_GenerateRandomResponse__M9_Plaintext(var_plaintext), ToDafny_N3_com__N9_amazonaws__N3_kms__S22_GenerateRandomResponse__M22_CiphertextForRecipient(var_ciphertextForRecipient)); } public static Amazon.KeyManagementService.Model.GetKeyPolicyRequest FromDafny_N3_com__N9_amazonaws__N3_kms__S19_GetKeyPolicyRequest(software.amazon.cryptography.services.kms.internaldafny.types._IGetKeyPolicyRequest value) @@ -1014,7 +1014,7 @@ public static Amazon.KeyManagementService.Model.GetKeyPolicyRequest FromDafny_N3 public static software.amazon.cryptography.services.kms.internaldafny.types._IGetKeyPolicyRequest ToDafny_N3_com__N9_amazonaws__N3_kms__S19_GetKeyPolicyRequest(Amazon.KeyManagementService.Model.GetKeyPolicyRequest value) { - string var_policyName = value.PolicyName; + string var_policyName = (string)value.PolicyName; return new software.amazon.cryptography.services.kms.internaldafny.types.GetKeyPolicyRequest(ToDafny_N3_com__N9_amazonaws__N3_kms__S19_GetKeyPolicyRequest__M5_KeyId(value.KeyId), ToDafny_N3_com__N9_amazonaws__N3_kms__S19_GetKeyPolicyRequest__M10_PolicyName(var_policyName)); } public static Amazon.KeyManagementService.Model.GetKeyPolicyResponse FromDafny_N3_com__N9_amazonaws__N3_kms__S20_GetKeyPolicyResponse(software.amazon.cryptography.services.kms.internaldafny.types._IGetKeyPolicyResponse value) @@ -1025,8 +1025,8 @@ public static Amazon.KeyManagementService.Model.GetKeyPolicyResponse FromDafny_N public static software.amazon.cryptography.services.kms.internaldafny.types._IGetKeyPolicyResponse ToDafny_N3_com__N9_amazonaws__N3_kms__S20_GetKeyPolicyResponse(Amazon.KeyManagementService.Model.GetKeyPolicyResponse value) { - string var_policy = value.Policy; - string var_policyName = value.PolicyName; + string var_policy = (string)value.Policy; + string var_policyName = (string)value.PolicyName; return new software.amazon.cryptography.services.kms.internaldafny.types.GetKeyPolicyResponse(ToDafny_N3_com__N9_amazonaws__N3_kms__S20_GetKeyPolicyResponse__M6_Policy(var_policy), ToDafny_N3_com__N9_amazonaws__N3_kms__S20_GetKeyPolicyResponse__M10_PolicyName(var_policyName)); } public static Amazon.KeyManagementService.Model.GetKeyRotationStatusRequest FromDafny_N3_com__N9_amazonaws__N3_kms__S27_GetKeyRotationStatusRequest(software.amazon.cryptography.services.kms.internaldafny.types._IGetKeyRotationStatusRequest value) @@ -1050,11 +1050,11 @@ public static Amazon.KeyManagementService.Model.GetKeyRotationStatusResponse Fro public static software.amazon.cryptography.services.kms.internaldafny.types._IGetKeyRotationStatusResponse ToDafny_N3_com__N9_amazonaws__N3_kms__S28_GetKeyRotationStatusResponse(Amazon.KeyManagementService.Model.GetKeyRotationStatusResponse value) { - bool? var_keyRotationEnabled = value.KeyRotationEnabled; - string var_keyId = value.KeyId; - int? var_rotationPeriodInDays = value.RotationPeriodInDays; - System.DateTime? var_nextRotationDate = value.NextRotationDate; - System.DateTime? var_onDemandRotationStartDate = value.OnDemandRotationStartDate; + bool? var_keyRotationEnabled = (bool?)value.KeyRotationEnabled; + string var_keyId = (string)value.KeyId; + int? var_rotationPeriodInDays = (int?)value.RotationPeriodInDays; + System.DateTime? var_nextRotationDate = (System.DateTime?)value.NextRotationDate; + System.DateTime? var_onDemandRotationStartDate = (System.DateTime?)value.OnDemandRotationStartDate; return new software.amazon.cryptography.services.kms.internaldafny.types.GetKeyRotationStatusResponse(ToDafny_N3_com__N9_amazonaws__N3_kms__S28_GetKeyRotationStatusResponse__M18_KeyRotationEnabled(var_keyRotationEnabled), ToDafny_N3_com__N9_amazonaws__N3_kms__S28_GetKeyRotationStatusResponse__M5_KeyId(var_keyId), ToDafny_N3_com__N9_amazonaws__N3_kms__S28_GetKeyRotationStatusResponse__M20_RotationPeriodInDays(var_rotationPeriodInDays), ToDafny_N3_com__N9_amazonaws__N3_kms__S28_GetKeyRotationStatusResponse__M16_NextRotationDate(var_nextRotationDate), ToDafny_N3_com__N9_amazonaws__N3_kms__S28_GetKeyRotationStatusResponse__M25_OnDemandRotationStartDate(var_onDemandRotationStartDate)); } public static Amazon.KeyManagementService.Model.GetParametersForImportRequest FromDafny_N3_com__N9_amazonaws__N3_kms__S29_GetParametersForImportRequest(software.amazon.cryptography.services.kms.internaldafny.types._IGetParametersForImportRequest value) @@ -1079,10 +1079,10 @@ public static Amazon.KeyManagementService.Model.GetParametersForImportResponse F public static software.amazon.cryptography.services.kms.internaldafny.types._IGetParametersForImportResponse ToDafny_N3_com__N9_amazonaws__N3_kms__S30_GetParametersForImportResponse(Amazon.KeyManagementService.Model.GetParametersForImportResponse value) { - string var_keyId = value.KeyId; - System.IO.MemoryStream var_importToken = value.ImportToken; - System.IO.MemoryStream var_publicKey = value.PublicKey; - System.DateTime? var_parametersValidTo = value.ParametersValidTo; + string var_keyId = (string)value.KeyId; + System.IO.MemoryStream var_importToken = (System.IO.MemoryStream)value.ImportToken; + System.IO.MemoryStream var_publicKey = (System.IO.MemoryStream)value.PublicKey; + System.DateTime? var_parametersValidTo = (System.DateTime?)value.ParametersValidTo; return new software.amazon.cryptography.services.kms.internaldafny.types.GetParametersForImportResponse(ToDafny_N3_com__N9_amazonaws__N3_kms__S30_GetParametersForImportResponse__M5_KeyId(var_keyId), ToDafny_N3_com__N9_amazonaws__N3_kms__S30_GetParametersForImportResponse__M11_ImportToken(var_importToken), ToDafny_N3_com__N9_amazonaws__N3_kms__S30_GetParametersForImportResponse__M9_PublicKey(var_publicKey), ToDafny_N3_com__N9_amazonaws__N3_kms__S30_GetParametersForImportResponse__M17_ParametersValidTo(var_parametersValidTo)); } public static Amazon.KeyManagementService.Model.GetPublicKeyRequest FromDafny_N3_com__N9_amazonaws__N3_kms__S19_GetPublicKeyRequest(software.amazon.cryptography.services.kms.internaldafny.types._IGetPublicKeyRequest value) @@ -1093,7 +1093,7 @@ public static Amazon.KeyManagementService.Model.GetPublicKeyRequest FromDafny_N3 public static software.amazon.cryptography.services.kms.internaldafny.types._IGetPublicKeyRequest ToDafny_N3_com__N9_amazonaws__N3_kms__S19_GetPublicKeyRequest(Amazon.KeyManagementService.Model.GetPublicKeyRequest value) { - System.Collections.Generic.List var_grantTokens = value.GrantTokens; + System.Collections.Generic.List var_grantTokens = (System.Collections.Generic.List)value.GrantTokens; return new software.amazon.cryptography.services.kms.internaldafny.types.GetPublicKeyRequest(ToDafny_N3_com__N9_amazonaws__N3_kms__S19_GetPublicKeyRequest__M5_KeyId(value.KeyId), ToDafny_N3_com__N9_amazonaws__N3_kms__S19_GetPublicKeyRequest__M11_GrantTokens(var_grantTokens)); } public static Amazon.KeyManagementService.Model.GetPublicKeyResponse FromDafny_N3_com__N9_amazonaws__N3_kms__S20_GetPublicKeyResponse(software.amazon.cryptography.services.kms.internaldafny.types._IGetPublicKeyResponse value) @@ -1110,14 +1110,14 @@ public static Amazon.KeyManagementService.Model.GetPublicKeyResponse FromDafny_N public static software.amazon.cryptography.services.kms.internaldafny.types._IGetPublicKeyResponse ToDafny_N3_com__N9_amazonaws__N3_kms__S20_GetPublicKeyResponse(Amazon.KeyManagementService.Model.GetPublicKeyResponse value) { - string var_keyId = value.KeyId; - System.IO.MemoryStream var_publicKey = value.PublicKey; - Amazon.KeyManagementService.CustomerMasterKeySpec var_customerMasterKeySpec = value.CustomerMasterKeySpec; - Amazon.KeyManagementService.KeySpec var_keySpec = value.KeySpec; - Amazon.KeyManagementService.KeyUsageType var_keyUsage = value.KeyUsage; - System.Collections.Generic.List var_encryptionAlgorithms = value.EncryptionAlgorithms; - System.Collections.Generic.List var_signingAlgorithms = value.SigningAlgorithms; - System.Collections.Generic.List var_keyAgreementAlgorithms = value.KeyAgreementAlgorithms; + string var_keyId = (string)value.KeyId; + System.IO.MemoryStream var_publicKey = (System.IO.MemoryStream)value.PublicKey; + Amazon.KeyManagementService.CustomerMasterKeySpec var_customerMasterKeySpec = (Amazon.KeyManagementService.CustomerMasterKeySpec)value.CustomerMasterKeySpec; + Amazon.KeyManagementService.KeySpec var_keySpec = (Amazon.KeyManagementService.KeySpec)value.KeySpec; + Amazon.KeyManagementService.KeyUsageType var_keyUsage = (Amazon.KeyManagementService.KeyUsageType)value.KeyUsage; + System.Collections.Generic.List var_encryptionAlgorithms = (System.Collections.Generic.List)value.EncryptionAlgorithms; + System.Collections.Generic.List var_signingAlgorithms = (System.Collections.Generic.List)value.SigningAlgorithms; + System.Collections.Generic.List var_keyAgreementAlgorithms = (System.Collections.Generic.List)value.KeyAgreementAlgorithms; return new software.amazon.cryptography.services.kms.internaldafny.types.GetPublicKeyResponse(ToDafny_N3_com__N9_amazonaws__N3_kms__S20_GetPublicKeyResponse__M5_KeyId(var_keyId), ToDafny_N3_com__N9_amazonaws__N3_kms__S20_GetPublicKeyResponse__M9_PublicKey(var_publicKey), ToDafny_N3_com__N9_amazonaws__N3_kms__S20_GetPublicKeyResponse__M21_CustomerMasterKeySpec(var_customerMasterKeySpec), ToDafny_N3_com__N9_amazonaws__N3_kms__S20_GetPublicKeyResponse__M7_KeySpec(var_keySpec), ToDafny_N3_com__N9_amazonaws__N3_kms__S20_GetPublicKeyResponse__M8_KeyUsage(var_keyUsage), ToDafny_N3_com__N9_amazonaws__N3_kms__S20_GetPublicKeyResponse__M20_EncryptionAlgorithms(var_encryptionAlgorithms), ToDafny_N3_com__N9_amazonaws__N3_kms__S20_GetPublicKeyResponse__M17_SigningAlgorithms(var_signingAlgorithms), ToDafny_N3_com__N9_amazonaws__N3_kms__S20_GetPublicKeyResponse__M22_KeyAgreementAlgorithms(var_keyAgreementAlgorithms)); } public static Amazon.KeyManagementService.GrantOperation FromDafny_N3_com__N9_amazonaws__N3_kms__S14_GrantOperation(software.amazon.cryptography.services.kms.internaldafny.types._IGrantOperation value) @@ -1173,8 +1173,8 @@ public static Amazon.KeyManagementService.Model.ImportKeyMaterialRequest FromDaf public static software.amazon.cryptography.services.kms.internaldafny.types._IImportKeyMaterialRequest ToDafny_N3_com__N9_amazonaws__N3_kms__S24_ImportKeyMaterialRequest(Amazon.KeyManagementService.Model.ImportKeyMaterialRequest value) { - System.DateTime? var_validTo = value.ValidTo; - Amazon.KeyManagementService.ExpirationModelType var_expirationModel = value.ExpirationModel; + System.DateTime? var_validTo = (System.DateTime?)value.ValidTo; + Amazon.KeyManagementService.ExpirationModelType var_expirationModel = (Amazon.KeyManagementService.ExpirationModelType)value.ExpirationModel; return new software.amazon.cryptography.services.kms.internaldafny.types.ImportKeyMaterialRequest(ToDafny_N3_com__N9_amazonaws__N3_kms__S24_ImportKeyMaterialRequest__M5_KeyId(value.KeyId), ToDafny_N3_com__N9_amazonaws__N3_kms__S24_ImportKeyMaterialRequest__M11_ImportToken(value.ImportToken), ToDafny_N3_com__N9_amazonaws__N3_kms__S24_ImportKeyMaterialRequest__M20_EncryptedKeyMaterial(value.EncryptedKeyMaterial), ToDafny_N3_com__N9_amazonaws__N3_kms__S24_ImportKeyMaterialRequest__M7_ValidTo(var_validTo), ToDafny_N3_com__N9_amazonaws__N3_kms__S24_ImportKeyMaterialRequest__M15_ExpirationModel(var_expirationModel)); } public static Amazon.KeyManagementService.Model.ImportKeyMaterialResponse FromDafny_N3_com__N9_amazonaws__N3_kms__S25_ImportKeyMaterialResponse(software.amazon.cryptography.services.kms.internaldafny.types._IImportKeyMaterialResponse value) @@ -1195,7 +1195,7 @@ public static Amazon.KeyManagementService.Model.IncorrectKeyException FromDafny_ } public static software.amazon.cryptography.services.kms.internaldafny.types.Error_IncorrectKeyException ToDafny_N3_com__N9_amazonaws__N3_kms__S21_IncorrectKeyException(Amazon.KeyManagementService.Model.IncorrectKeyException value) { - string var_message = value.Message; + string var_message = (string)value.Message; return new software.amazon.cryptography.services.kms.internaldafny.types.Error_IncorrectKeyException( ToDafny_N3_com__N9_amazonaws__N3_kms__S21_IncorrectKeyException__M7_message(var_message) ); @@ -1208,7 +1208,7 @@ public static Amazon.KeyManagementService.Model.IncorrectKeyMaterialException Fr } public static software.amazon.cryptography.services.kms.internaldafny.types.Error_IncorrectKeyMaterialException ToDafny_N3_com__N9_amazonaws__N3_kms__S29_IncorrectKeyMaterialException(Amazon.KeyManagementService.Model.IncorrectKeyMaterialException value) { - string var_message = value.Message; + string var_message = (string)value.Message; return new software.amazon.cryptography.services.kms.internaldafny.types.Error_IncorrectKeyMaterialException( ToDafny_N3_com__N9_amazonaws__N3_kms__S29_IncorrectKeyMaterialException__M7_message(var_message) ); @@ -1221,7 +1221,7 @@ public static Amazon.KeyManagementService.Model.IncorrectTrustAnchorException Fr } public static software.amazon.cryptography.services.kms.internaldafny.types.Error_IncorrectTrustAnchorException ToDafny_N3_com__N9_amazonaws__N3_kms__S29_IncorrectTrustAnchorException(Amazon.KeyManagementService.Model.IncorrectTrustAnchorException value) { - string var_message = value.Message; + string var_message = (string)value.Message; return new software.amazon.cryptography.services.kms.internaldafny.types.Error_IncorrectTrustAnchorException( ToDafny_N3_com__N9_amazonaws__N3_kms__S29_IncorrectTrustAnchorException__M7_message(var_message) ); @@ -1234,7 +1234,7 @@ public static Amazon.KeyManagementService.Model.InvalidAliasNameException FromDa } public static software.amazon.cryptography.services.kms.internaldafny.types.Error_InvalidAliasNameException ToDafny_N3_com__N9_amazonaws__N3_kms__S25_InvalidAliasNameException(Amazon.KeyManagementService.Model.InvalidAliasNameException value) { - string var_message = value.Message; + string var_message = (string)value.Message; return new software.amazon.cryptography.services.kms.internaldafny.types.Error_InvalidAliasNameException( ToDafny_N3_com__N9_amazonaws__N3_kms__S25_InvalidAliasNameException__M7_message(var_message) ); @@ -1247,7 +1247,7 @@ public static Amazon.KeyManagementService.Model.InvalidArnException FromDafny_N3 } public static software.amazon.cryptography.services.kms.internaldafny.types.Error_InvalidArnException ToDafny_N3_com__N9_amazonaws__N3_kms__S19_InvalidArnException(Amazon.KeyManagementService.Model.InvalidArnException value) { - string var_message = value.Message; + string var_message = (string)value.Message; return new software.amazon.cryptography.services.kms.internaldafny.types.Error_InvalidArnException( ToDafny_N3_com__N9_amazonaws__N3_kms__S19_InvalidArnException__M7_message(var_message) ); @@ -1260,7 +1260,7 @@ public static Amazon.KeyManagementService.Model.InvalidCiphertextException FromD } public static software.amazon.cryptography.services.kms.internaldafny.types.Error_InvalidCiphertextException ToDafny_N3_com__N9_amazonaws__N3_kms__S26_InvalidCiphertextException(Amazon.KeyManagementService.Model.InvalidCiphertextException value) { - string var_message = value.Message; + string var_message = (string)value.Message; return new software.amazon.cryptography.services.kms.internaldafny.types.Error_InvalidCiphertextException( ToDafny_N3_com__N9_amazonaws__N3_kms__S26_InvalidCiphertextException__M7_message(var_message) ); @@ -1273,7 +1273,7 @@ public static Amazon.KeyManagementService.Model.InvalidGrantIdException FromDafn } public static software.amazon.cryptography.services.kms.internaldafny.types.Error_InvalidGrantIdException ToDafny_N3_com__N9_amazonaws__N3_kms__S23_InvalidGrantIdException(Amazon.KeyManagementService.Model.InvalidGrantIdException value) { - string var_message = value.Message; + string var_message = (string)value.Message; return new software.amazon.cryptography.services.kms.internaldafny.types.Error_InvalidGrantIdException( ToDafny_N3_com__N9_amazonaws__N3_kms__S23_InvalidGrantIdException__M7_message(var_message) ); @@ -1286,7 +1286,7 @@ public static Amazon.KeyManagementService.Model.InvalidGrantTokenException FromD } public static software.amazon.cryptography.services.kms.internaldafny.types.Error_InvalidGrantTokenException ToDafny_N3_com__N9_amazonaws__N3_kms__S26_InvalidGrantTokenException(Amazon.KeyManagementService.Model.InvalidGrantTokenException value) { - string var_message = value.Message; + string var_message = (string)value.Message; return new software.amazon.cryptography.services.kms.internaldafny.types.Error_InvalidGrantTokenException( ToDafny_N3_com__N9_amazonaws__N3_kms__S26_InvalidGrantTokenException__M7_message(var_message) ); @@ -1299,7 +1299,7 @@ public static Amazon.KeyManagementService.Model.InvalidImportTokenException From } public static software.amazon.cryptography.services.kms.internaldafny.types.Error_InvalidImportTokenException ToDafny_N3_com__N9_amazonaws__N3_kms__S27_InvalidImportTokenException(Amazon.KeyManagementService.Model.InvalidImportTokenException value) { - string var_message = value.Message; + string var_message = (string)value.Message; return new software.amazon.cryptography.services.kms.internaldafny.types.Error_InvalidImportTokenException( ToDafny_N3_com__N9_amazonaws__N3_kms__S27_InvalidImportTokenException__M7_message(var_message) ); @@ -1312,7 +1312,7 @@ public static Amazon.KeyManagementService.Model.InvalidKeyUsageException FromDaf } public static software.amazon.cryptography.services.kms.internaldafny.types.Error_InvalidKeyUsageException ToDafny_N3_com__N9_amazonaws__N3_kms__S24_InvalidKeyUsageException(Amazon.KeyManagementService.Model.InvalidKeyUsageException value) { - string var_message = value.Message; + string var_message = (string)value.Message; return new software.amazon.cryptography.services.kms.internaldafny.types.Error_InvalidKeyUsageException( ToDafny_N3_com__N9_amazonaws__N3_kms__S24_InvalidKeyUsageException__M7_message(var_message) ); @@ -1325,7 +1325,7 @@ public static Amazon.KeyManagementService.Model.InvalidMarkerException FromDafny } public static software.amazon.cryptography.services.kms.internaldafny.types.Error_InvalidMarkerException ToDafny_N3_com__N9_amazonaws__N3_kms__S22_InvalidMarkerException(Amazon.KeyManagementService.Model.InvalidMarkerException value) { - string var_message = value.Message; + string var_message = (string)value.Message; return new software.amazon.cryptography.services.kms.internaldafny.types.Error_InvalidMarkerException( ToDafny_N3_com__N9_amazonaws__N3_kms__S22_InvalidMarkerException__M7_message(var_message) ); @@ -1428,7 +1428,7 @@ public static Amazon.KeyManagementService.Model.KeyUnavailableException FromDafn } public static software.amazon.cryptography.services.kms.internaldafny.types.Error_KeyUnavailableException ToDafny_N3_com__N9_amazonaws__N3_kms__S23_KeyUnavailableException(Amazon.KeyManagementService.Model.KeyUnavailableException value) { - string var_message = value.Message; + string var_message = (string)value.Message; return new software.amazon.cryptography.services.kms.internaldafny.types.Error_KeyUnavailableException( ToDafny_N3_com__N9_amazonaws__N3_kms__S23_KeyUnavailableException__M7_message(var_message) ); @@ -1457,7 +1457,7 @@ public static Amazon.KeyManagementService.Model.KMSInternalException FromDafny_N } public static software.amazon.cryptography.services.kms.internaldafny.types.Error_KMSInternalException ToDafny_N3_com__N9_amazonaws__N3_kms__S20_KMSInternalException(Amazon.KeyManagementService.Model.KMSInternalException value) { - string var_message = value.Message; + string var_message = (string)value.Message; return new software.amazon.cryptography.services.kms.internaldafny.types.Error_KMSInternalException( ToDafny_N3_com__N9_amazonaws__N3_kms__S20_KMSInternalException__M7_message(var_message) ); @@ -1470,7 +1470,7 @@ public static Amazon.KeyManagementService.Model.KMSInvalidMacException FromDafny } public static software.amazon.cryptography.services.kms.internaldafny.types.Error_KMSInvalidMacException ToDafny_N3_com__N9_amazonaws__N3_kms__S22_KMSInvalidMacException(Amazon.KeyManagementService.Model.KMSInvalidMacException value) { - string var_message = value.Message; + string var_message = (string)value.Message; return new software.amazon.cryptography.services.kms.internaldafny.types.Error_KMSInvalidMacException( ToDafny_N3_com__N9_amazonaws__N3_kms__S22_KMSInvalidMacException__M7_message(var_message) ); @@ -1483,7 +1483,7 @@ public static Amazon.KeyManagementService.Model.KMSInvalidSignatureException Fro } public static software.amazon.cryptography.services.kms.internaldafny.types.Error_KMSInvalidSignatureException ToDafny_N3_com__N9_amazonaws__N3_kms__S28_KMSInvalidSignatureException(Amazon.KeyManagementService.Model.KMSInvalidSignatureException value) { - string var_message = value.Message; + string var_message = (string)value.Message; return new software.amazon.cryptography.services.kms.internaldafny.types.Error_KMSInvalidSignatureException( ToDafny_N3_com__N9_amazonaws__N3_kms__S28_KMSInvalidSignatureException__M7_message(var_message) ); @@ -1496,7 +1496,7 @@ public static Amazon.KeyManagementService.Model.KMSInvalidStateException FromDaf } public static software.amazon.cryptography.services.kms.internaldafny.types.Error_KMSInvalidStateException ToDafny_N3_com__N9_amazonaws__N3_kms__S24_KMSInvalidStateException(Amazon.KeyManagementService.Model.KMSInvalidStateException value) { - string var_message = value.Message; + string var_message = (string)value.Message; return new software.amazon.cryptography.services.kms.internaldafny.types.Error_KMSInvalidStateException( ToDafny_N3_com__N9_amazonaws__N3_kms__S24_KMSInvalidStateException__M7_message(var_message) ); @@ -1509,7 +1509,7 @@ public static Amazon.KeyManagementService.Model.LimitExceededException FromDafny } public static software.amazon.cryptography.services.kms.internaldafny.types.Error_LimitExceededException ToDafny_N3_com__N9_amazonaws__N3_kms__S22_LimitExceededException(Amazon.KeyManagementService.Model.LimitExceededException value) { - string var_message = value.Message; + string var_message = (string)value.Message; return new software.amazon.cryptography.services.kms.internaldafny.types.Error_LimitExceededException( ToDafny_N3_com__N9_amazonaws__N3_kms__S22_LimitExceededException__M7_message(var_message) ); @@ -1523,9 +1523,9 @@ public static Amazon.KeyManagementService.Model.ListAliasesRequest FromDafny_N3_ public static software.amazon.cryptography.services.kms.internaldafny.types._IListAliasesRequest ToDafny_N3_com__N9_amazonaws__N3_kms__S18_ListAliasesRequest(Amazon.KeyManagementService.Model.ListAliasesRequest value) { - string var_keyId = value.KeyId; - int? var_limit = value.Limit; - string var_marker = value.Marker; + string var_keyId = (string)value.KeyId; + int? var_limit = (int?)value.Limit; + string var_marker = (string)value.Marker; return new software.amazon.cryptography.services.kms.internaldafny.types.ListAliasesRequest(ToDafny_N3_com__N9_amazonaws__N3_kms__S18_ListAliasesRequest__M5_KeyId(var_keyId), ToDafny_N3_com__N9_amazonaws__N3_kms__S18_ListAliasesRequest__M5_Limit(var_limit), ToDafny_N3_com__N9_amazonaws__N3_kms__S18_ListAliasesRequest__M6_Marker(var_marker)); } public static Amazon.KeyManagementService.Model.ListAliasesResponse FromDafny_N3_com__N9_amazonaws__N3_kms__S19_ListAliasesResponse(software.amazon.cryptography.services.kms.internaldafny.types._IListAliasesResponse value) @@ -1537,9 +1537,9 @@ public static Amazon.KeyManagementService.Model.ListAliasesResponse FromDafny_N3 public static software.amazon.cryptography.services.kms.internaldafny.types._IListAliasesResponse ToDafny_N3_com__N9_amazonaws__N3_kms__S19_ListAliasesResponse(Amazon.KeyManagementService.Model.ListAliasesResponse value) { - System.Collections.Generic.List var_aliases = value.Aliases; - string var_nextMarker = value.NextMarker; - bool? var_truncated = value.Truncated; + System.Collections.Generic.List var_aliases = (System.Collections.Generic.List)value.Aliases; + string var_nextMarker = (string)value.NextMarker; + bool? var_truncated = (bool?)value.Truncated; return new software.amazon.cryptography.services.kms.internaldafny.types.ListAliasesResponse(ToDafny_N3_com__N9_amazonaws__N3_kms__S19_ListAliasesResponse__M7_Aliases(var_aliases), ToDafny_N3_com__N9_amazonaws__N3_kms__S19_ListAliasesResponse__M10_NextMarker(var_nextMarker), ToDafny_N3_com__N9_amazonaws__N3_kms__S19_ListAliasesResponse__M9_Truncated(var_truncated)); } public static Amazon.KeyManagementService.Model.ListGrantsRequest FromDafny_N3_com__N9_amazonaws__N3_kms__S17_ListGrantsRequest(software.amazon.cryptography.services.kms.internaldafny.types._IListGrantsRequest value) @@ -1553,10 +1553,10 @@ public static Amazon.KeyManagementService.Model.ListGrantsRequest FromDafny_N3_c public static software.amazon.cryptography.services.kms.internaldafny.types._IListGrantsRequest ToDafny_N3_com__N9_amazonaws__N3_kms__S17_ListGrantsRequest(Amazon.KeyManagementService.Model.ListGrantsRequest value) { - int? var_limit = value.Limit; - string var_marker = value.Marker; - string var_grantId = value.GrantId; - string var_granteePrincipal = value.GranteePrincipal; + int? var_limit = (int?)value.Limit; + string var_marker = (string)value.Marker; + string var_grantId = (string)value.GrantId; + string var_granteePrincipal = (string)value.GranteePrincipal; return new software.amazon.cryptography.services.kms.internaldafny.types.ListGrantsRequest(ToDafny_N3_com__N9_amazonaws__N3_kms__S17_ListGrantsRequest__M5_Limit(var_limit), ToDafny_N3_com__N9_amazonaws__N3_kms__S17_ListGrantsRequest__M6_Marker(var_marker), ToDafny_N3_com__N9_amazonaws__N3_kms__S17_ListGrantsRequest__M5_KeyId(value.KeyId), ToDafny_N3_com__N9_amazonaws__N3_kms__S17_ListGrantsRequest__M7_GrantId(var_grantId), ToDafny_N3_com__N9_amazonaws__N3_kms__S17_ListGrantsRequest__M16_GranteePrincipal(var_granteePrincipal)); } public static Amazon.KeyManagementService.Model.ListGrantsResponse FromDafny_N3_com__N9_amazonaws__N3_kms__S18_ListGrantsResponse(software.amazon.cryptography.services.kms.internaldafny.types._IListGrantsResponse value) @@ -1568,9 +1568,9 @@ public static Amazon.KeyManagementService.Model.ListGrantsResponse FromDafny_N3_ public static software.amazon.cryptography.services.kms.internaldafny.types._IListGrantsResponse ToDafny_N3_com__N9_amazonaws__N3_kms__S18_ListGrantsResponse(Amazon.KeyManagementService.Model.ListGrantsResponse value) { - System.Collections.Generic.List var_grants = value.Grants; - string var_nextMarker = value.NextMarker; - bool? var_truncated = value.Truncated; + System.Collections.Generic.List var_grants = (System.Collections.Generic.List)value.Grants; + string var_nextMarker = (string)value.NextMarker; + bool? var_truncated = (bool?)value.Truncated; return new software.amazon.cryptography.services.kms.internaldafny.types.ListGrantsResponse(ToDafny_N3_com__N9_amazonaws__N3_kms__S18_ListGrantsResponse__M6_Grants(var_grants), ToDafny_N3_com__N9_amazonaws__N3_kms__S18_ListGrantsResponse__M10_NextMarker(var_nextMarker), ToDafny_N3_com__N9_amazonaws__N3_kms__S18_ListGrantsResponse__M9_Truncated(var_truncated)); } public static Amazon.KeyManagementService.Model.ListKeyPoliciesRequest FromDafny_N3_com__N9_amazonaws__N3_kms__S22_ListKeyPoliciesRequest(software.amazon.cryptography.services.kms.internaldafny.types._IListKeyPoliciesRequest value) @@ -1582,8 +1582,8 @@ public static Amazon.KeyManagementService.Model.ListKeyPoliciesRequest FromDafny public static software.amazon.cryptography.services.kms.internaldafny.types._IListKeyPoliciesRequest ToDafny_N3_com__N9_amazonaws__N3_kms__S22_ListKeyPoliciesRequest(Amazon.KeyManagementService.Model.ListKeyPoliciesRequest value) { - int? var_limit = value.Limit; - string var_marker = value.Marker; + int? var_limit = (int?)value.Limit; + string var_marker = (string)value.Marker; return new software.amazon.cryptography.services.kms.internaldafny.types.ListKeyPoliciesRequest(ToDafny_N3_com__N9_amazonaws__N3_kms__S22_ListKeyPoliciesRequest__M5_KeyId(value.KeyId), ToDafny_N3_com__N9_amazonaws__N3_kms__S22_ListKeyPoliciesRequest__M5_Limit(var_limit), ToDafny_N3_com__N9_amazonaws__N3_kms__S22_ListKeyPoliciesRequest__M6_Marker(var_marker)); } public static Amazon.KeyManagementService.Model.ListKeyPoliciesResponse FromDafny_N3_com__N9_amazonaws__N3_kms__S23_ListKeyPoliciesResponse(software.amazon.cryptography.services.kms.internaldafny.types._IListKeyPoliciesResponse value) @@ -1595,9 +1595,9 @@ public static Amazon.KeyManagementService.Model.ListKeyPoliciesResponse FromDafn public static software.amazon.cryptography.services.kms.internaldafny.types._IListKeyPoliciesResponse ToDafny_N3_com__N9_amazonaws__N3_kms__S23_ListKeyPoliciesResponse(Amazon.KeyManagementService.Model.ListKeyPoliciesResponse value) { - System.Collections.Generic.List var_policyNames = value.PolicyNames; - string var_nextMarker = value.NextMarker; - bool? var_truncated = value.Truncated; + System.Collections.Generic.List var_policyNames = (System.Collections.Generic.List)value.PolicyNames; + string var_nextMarker = (string)value.NextMarker; + bool? var_truncated = (bool?)value.Truncated; return new software.amazon.cryptography.services.kms.internaldafny.types.ListKeyPoliciesResponse(ToDafny_N3_com__N9_amazonaws__N3_kms__S23_ListKeyPoliciesResponse__M11_PolicyNames(var_policyNames), ToDafny_N3_com__N9_amazonaws__N3_kms__S23_ListKeyPoliciesResponse__M10_NextMarker(var_nextMarker), ToDafny_N3_com__N9_amazonaws__N3_kms__S23_ListKeyPoliciesResponse__M9_Truncated(var_truncated)); } public static Amazon.KeyManagementService.Model.ListKeyRotationsRequest FromDafny_N3_com__N9_amazonaws__N3_kms__S23_ListKeyRotationsRequest(software.amazon.cryptography.services.kms.internaldafny.types._IListKeyRotationsRequest value) @@ -1609,8 +1609,8 @@ public static Amazon.KeyManagementService.Model.ListKeyRotationsRequest FromDafn public static software.amazon.cryptography.services.kms.internaldafny.types._IListKeyRotationsRequest ToDafny_N3_com__N9_amazonaws__N3_kms__S23_ListKeyRotationsRequest(Amazon.KeyManagementService.Model.ListKeyRotationsRequest value) { - int? var_limit = value.Limit; - string var_marker = value.Marker; + int? var_limit = (int?)value.Limit; + string var_marker = (string)value.Marker; return new software.amazon.cryptography.services.kms.internaldafny.types.ListKeyRotationsRequest(ToDafny_N3_com__N9_amazonaws__N3_kms__S23_ListKeyRotationsRequest__M5_KeyId(value.KeyId), ToDafny_N3_com__N9_amazonaws__N3_kms__S23_ListKeyRotationsRequest__M5_Limit(var_limit), ToDafny_N3_com__N9_amazonaws__N3_kms__S23_ListKeyRotationsRequest__M6_Marker(var_marker)); } public static Amazon.KeyManagementService.Model.ListKeyRotationsResponse FromDafny_N3_com__N9_amazonaws__N3_kms__S24_ListKeyRotationsResponse(software.amazon.cryptography.services.kms.internaldafny.types._IListKeyRotationsResponse value) @@ -1622,9 +1622,9 @@ public static Amazon.KeyManagementService.Model.ListKeyRotationsResponse FromDaf public static software.amazon.cryptography.services.kms.internaldafny.types._IListKeyRotationsResponse ToDafny_N3_com__N9_amazonaws__N3_kms__S24_ListKeyRotationsResponse(Amazon.KeyManagementService.Model.ListKeyRotationsResponse value) { - System.Collections.Generic.List var_rotations = value.Rotations; - string var_nextMarker = value.NextMarker; - bool? var_truncated = value.Truncated; + System.Collections.Generic.List var_rotations = (System.Collections.Generic.List)value.Rotations; + string var_nextMarker = (string)value.NextMarker; + bool? var_truncated = (bool?)value.Truncated; return new software.amazon.cryptography.services.kms.internaldafny.types.ListKeyRotationsResponse(ToDafny_N3_com__N9_amazonaws__N3_kms__S24_ListKeyRotationsResponse__M9_Rotations(var_rotations), ToDafny_N3_com__N9_amazonaws__N3_kms__S24_ListKeyRotationsResponse__M10_NextMarker(var_nextMarker), ToDafny_N3_com__N9_amazonaws__N3_kms__S24_ListKeyRotationsResponse__M9_Truncated(var_truncated)); } public static Amazon.KeyManagementService.Model.ListKeysRequest FromDafny_N3_com__N9_amazonaws__N3_kms__S15_ListKeysRequest(software.amazon.cryptography.services.kms.internaldafny.types._IListKeysRequest value) @@ -1635,8 +1635,8 @@ public static Amazon.KeyManagementService.Model.ListKeysRequest FromDafny_N3_com public static software.amazon.cryptography.services.kms.internaldafny.types._IListKeysRequest ToDafny_N3_com__N9_amazonaws__N3_kms__S15_ListKeysRequest(Amazon.KeyManagementService.Model.ListKeysRequest value) { - int? var_limit = value.Limit; - string var_marker = value.Marker; + int? var_limit = (int?)value.Limit; + string var_marker = (string)value.Marker; return new software.amazon.cryptography.services.kms.internaldafny.types.ListKeysRequest(ToDafny_N3_com__N9_amazonaws__N3_kms__S15_ListKeysRequest__M5_Limit(var_limit), ToDafny_N3_com__N9_amazonaws__N3_kms__S15_ListKeysRequest__M6_Marker(var_marker)); } public static Amazon.KeyManagementService.Model.ListKeysResponse FromDafny_N3_com__N9_amazonaws__N3_kms__S16_ListKeysResponse(software.amazon.cryptography.services.kms.internaldafny.types._IListKeysResponse value) @@ -1648,9 +1648,9 @@ public static Amazon.KeyManagementService.Model.ListKeysResponse FromDafny_N3_co public static software.amazon.cryptography.services.kms.internaldafny.types._IListKeysResponse ToDafny_N3_com__N9_amazonaws__N3_kms__S16_ListKeysResponse(Amazon.KeyManagementService.Model.ListKeysResponse value) { - System.Collections.Generic.List var_keys = value.Keys; - string var_nextMarker = value.NextMarker; - bool? var_truncated = value.Truncated; + System.Collections.Generic.List var_keys = (System.Collections.Generic.List)value.Keys; + string var_nextMarker = (string)value.NextMarker; + bool? var_truncated = (bool?)value.Truncated; return new software.amazon.cryptography.services.kms.internaldafny.types.ListKeysResponse(ToDafny_N3_com__N9_amazonaws__N3_kms__S16_ListKeysResponse__M4_Keys(var_keys), ToDafny_N3_com__N9_amazonaws__N3_kms__S16_ListKeysResponse__M10_NextMarker(var_nextMarker), ToDafny_N3_com__N9_amazonaws__N3_kms__S16_ListKeysResponse__M9_Truncated(var_truncated)); } public static Amazon.KeyManagementService.Model.ListResourceTagsRequest FromDafny_N3_com__N9_amazonaws__N3_kms__S23_ListResourceTagsRequest(software.amazon.cryptography.services.kms.internaldafny.types._IListResourceTagsRequest value) @@ -1662,8 +1662,8 @@ public static Amazon.KeyManagementService.Model.ListResourceTagsRequest FromDafn public static software.amazon.cryptography.services.kms.internaldafny.types._IListResourceTagsRequest ToDafny_N3_com__N9_amazonaws__N3_kms__S23_ListResourceTagsRequest(Amazon.KeyManagementService.Model.ListResourceTagsRequest value) { - int? var_limit = value.Limit; - string var_marker = value.Marker; + int? var_limit = (int?)value.Limit; + string var_marker = (string)value.Marker; return new software.amazon.cryptography.services.kms.internaldafny.types.ListResourceTagsRequest(ToDafny_N3_com__N9_amazonaws__N3_kms__S23_ListResourceTagsRequest__M5_KeyId(value.KeyId), ToDafny_N3_com__N9_amazonaws__N3_kms__S23_ListResourceTagsRequest__M5_Limit(var_limit), ToDafny_N3_com__N9_amazonaws__N3_kms__S23_ListResourceTagsRequest__M6_Marker(var_marker)); } public static Amazon.KeyManagementService.Model.ListResourceTagsResponse FromDafny_N3_com__N9_amazonaws__N3_kms__S24_ListResourceTagsResponse(software.amazon.cryptography.services.kms.internaldafny.types._IListResourceTagsResponse value) @@ -1675,9 +1675,9 @@ public static Amazon.KeyManagementService.Model.ListResourceTagsResponse FromDaf public static software.amazon.cryptography.services.kms.internaldafny.types._IListResourceTagsResponse ToDafny_N3_com__N9_amazonaws__N3_kms__S24_ListResourceTagsResponse(Amazon.KeyManagementService.Model.ListResourceTagsResponse value) { - System.Collections.Generic.List var_tags = value.Tags; - string var_nextMarker = value.NextMarker; - bool? var_truncated = value.Truncated; + System.Collections.Generic.List var_tags = (System.Collections.Generic.List)value.Tags; + string var_nextMarker = (string)value.NextMarker; + bool? var_truncated = (bool?)value.Truncated; return new software.amazon.cryptography.services.kms.internaldafny.types.ListResourceTagsResponse(ToDafny_N3_com__N9_amazonaws__N3_kms__S24_ListResourceTagsResponse__M4_Tags(var_tags), ToDafny_N3_com__N9_amazonaws__N3_kms__S24_ListResourceTagsResponse__M10_NextMarker(var_nextMarker), ToDafny_N3_com__N9_amazonaws__N3_kms__S24_ListResourceTagsResponse__M9_Truncated(var_truncated)); } public static Amazon.KeyManagementService.MacAlgorithmSpec FromDafny_N3_com__N9_amazonaws__N3_kms__S16_MacAlgorithmSpec(software.amazon.cryptography.services.kms.internaldafny.types._IMacAlgorithmSpec value) @@ -1704,7 +1704,7 @@ public static Amazon.KeyManagementService.Model.MalformedPolicyDocumentException } public static software.amazon.cryptography.services.kms.internaldafny.types.Error_MalformedPolicyDocumentException ToDafny_N3_com__N9_amazonaws__N3_kms__S32_MalformedPolicyDocumentException(Amazon.KeyManagementService.Model.MalformedPolicyDocumentException value) { - string var_message = value.Message; + string var_message = (string)value.Message; return new software.amazon.cryptography.services.kms.internaldafny.types.Error_MalformedPolicyDocumentException( ToDafny_N3_com__N9_amazonaws__N3_kms__S32_MalformedPolicyDocumentException__M7_message(var_message) ); @@ -1741,7 +1741,7 @@ public static Amazon.KeyManagementService.Model.NotFoundException FromDafny_N3_c } public static software.amazon.cryptography.services.kms.internaldafny.types.Error_NotFoundException ToDafny_N3_com__N9_amazonaws__N3_kms__S17_NotFoundException(Amazon.KeyManagementService.Model.NotFoundException value) { - string var_message = value.Message; + string var_message = (string)value.Message; return new software.amazon.cryptography.services.kms.internaldafny.types.Error_NotFoundException( ToDafny_N3_com__N9_amazonaws__N3_kms__S17_NotFoundException__M7_message(var_message) ); @@ -1772,8 +1772,8 @@ public static Amazon.KeyManagementService.Model.PutKeyPolicyRequest FromDafny_N3 public static software.amazon.cryptography.services.kms.internaldafny.types._IPutKeyPolicyRequest ToDafny_N3_com__N9_amazonaws__N3_kms__S19_PutKeyPolicyRequest(Amazon.KeyManagementService.Model.PutKeyPolicyRequest value) { - string var_policyName = value.PolicyName; - bool? var_bypassPolicyLockoutSafetyCheck = value.BypassPolicyLockoutSafetyCheck; + string var_policyName = (string)value.PolicyName; + bool? var_bypassPolicyLockoutSafetyCheck = (bool?)value.BypassPolicyLockoutSafetyCheck; return new software.amazon.cryptography.services.kms.internaldafny.types.PutKeyPolicyRequest(ToDafny_N3_com__N9_amazonaws__N3_kms__S19_PutKeyPolicyRequest__M5_KeyId(value.KeyId), ToDafny_N3_com__N9_amazonaws__N3_kms__S19_PutKeyPolicyRequest__M10_PolicyName(var_policyName), ToDafny_N3_com__N9_amazonaws__N3_kms__S19_PutKeyPolicyRequest__M6_Policy(value.Policy), ToDafny_N3_com__N9_amazonaws__N3_kms__S19_PutKeyPolicyRequest__M30_BypassPolicyLockoutSafetyCheck(var_bypassPolicyLockoutSafetyCheck)); } public static Amazon.KeyManagementService.Model.ReEncryptRequest FromDafny_N3_com__N9_amazonaws__N3_kms__S16_ReEncryptRequest(software.amazon.cryptography.services.kms.internaldafny.types._IReEncryptRequest value) @@ -1791,13 +1791,13 @@ public static Amazon.KeyManagementService.Model.ReEncryptRequest FromDafny_N3_co public static software.amazon.cryptography.services.kms.internaldafny.types._IReEncryptRequest ToDafny_N3_com__N9_amazonaws__N3_kms__S16_ReEncryptRequest(Amazon.KeyManagementService.Model.ReEncryptRequest value) { - System.Collections.Generic.Dictionary var_sourceEncryptionContext = value.SourceEncryptionContext; - string var_sourceKeyId = value.SourceKeyId; - System.Collections.Generic.Dictionary var_destinationEncryptionContext = value.DestinationEncryptionContext; - Amazon.KeyManagementService.EncryptionAlgorithmSpec var_sourceEncryptionAlgorithm = value.SourceEncryptionAlgorithm; - Amazon.KeyManagementService.EncryptionAlgorithmSpec var_destinationEncryptionAlgorithm = value.DestinationEncryptionAlgorithm; - System.Collections.Generic.List var_grantTokens = value.GrantTokens; - bool? var_dryRun = value.DryRun; + System.Collections.Generic.Dictionary var_sourceEncryptionContext = (System.Collections.Generic.Dictionary)value.SourceEncryptionContext; + string var_sourceKeyId = (string)value.SourceKeyId; + System.Collections.Generic.Dictionary var_destinationEncryptionContext = (System.Collections.Generic.Dictionary)value.DestinationEncryptionContext; + Amazon.KeyManagementService.EncryptionAlgorithmSpec var_sourceEncryptionAlgorithm = (Amazon.KeyManagementService.EncryptionAlgorithmSpec)value.SourceEncryptionAlgorithm; + Amazon.KeyManagementService.EncryptionAlgorithmSpec var_destinationEncryptionAlgorithm = (Amazon.KeyManagementService.EncryptionAlgorithmSpec)value.DestinationEncryptionAlgorithm; + System.Collections.Generic.List var_grantTokens = (System.Collections.Generic.List)value.GrantTokens; + bool? var_dryRun = (bool?)value.DryRun; return new software.amazon.cryptography.services.kms.internaldafny.types.ReEncryptRequest(ToDafny_N3_com__N9_amazonaws__N3_kms__S16_ReEncryptRequest__M14_CiphertextBlob(value.CiphertextBlob), ToDafny_N3_com__N9_amazonaws__N3_kms__S16_ReEncryptRequest__M23_SourceEncryptionContext(var_sourceEncryptionContext), ToDafny_N3_com__N9_amazonaws__N3_kms__S16_ReEncryptRequest__M11_SourceKeyId(var_sourceKeyId), ToDafny_N3_com__N9_amazonaws__N3_kms__S16_ReEncryptRequest__M16_DestinationKeyId(value.DestinationKeyId), ToDafny_N3_com__N9_amazonaws__N3_kms__S16_ReEncryptRequest__M28_DestinationEncryptionContext(var_destinationEncryptionContext), ToDafny_N3_com__N9_amazonaws__N3_kms__S16_ReEncryptRequest__M25_SourceEncryptionAlgorithm(var_sourceEncryptionAlgorithm), ToDafny_N3_com__N9_amazonaws__N3_kms__S16_ReEncryptRequest__M30_DestinationEncryptionAlgorithm(var_destinationEncryptionAlgorithm), ToDafny_N3_com__N9_amazonaws__N3_kms__S16_ReEncryptRequest__M11_GrantTokens(var_grantTokens), ToDafny_N3_com__N9_amazonaws__N3_kms__S16_ReEncryptRequest__M6_DryRun(var_dryRun)); } public static Amazon.KeyManagementService.Model.ReEncryptResponse FromDafny_N3_com__N9_amazonaws__N3_kms__S17_ReEncryptResponse(software.amazon.cryptography.services.kms.internaldafny.types._IReEncryptResponse value) @@ -1811,11 +1811,11 @@ public static Amazon.KeyManagementService.Model.ReEncryptResponse FromDafny_N3_c public static software.amazon.cryptography.services.kms.internaldafny.types._IReEncryptResponse ToDafny_N3_com__N9_amazonaws__N3_kms__S17_ReEncryptResponse(Amazon.KeyManagementService.Model.ReEncryptResponse value) { - System.IO.MemoryStream var_ciphertextBlob = value.CiphertextBlob; - string var_sourceKeyId = value.SourceKeyId; - string var_keyId = value.KeyId; - Amazon.KeyManagementService.EncryptionAlgorithmSpec var_sourceEncryptionAlgorithm = value.SourceEncryptionAlgorithm; - Amazon.KeyManagementService.EncryptionAlgorithmSpec var_destinationEncryptionAlgorithm = value.DestinationEncryptionAlgorithm; + System.IO.MemoryStream var_ciphertextBlob = (System.IO.MemoryStream)value.CiphertextBlob; + string var_sourceKeyId = (string)value.SourceKeyId; + string var_keyId = (string)value.KeyId; + Amazon.KeyManagementService.EncryptionAlgorithmSpec var_sourceEncryptionAlgorithm = (Amazon.KeyManagementService.EncryptionAlgorithmSpec)value.SourceEncryptionAlgorithm; + Amazon.KeyManagementService.EncryptionAlgorithmSpec var_destinationEncryptionAlgorithm = (Amazon.KeyManagementService.EncryptionAlgorithmSpec)value.DestinationEncryptionAlgorithm; return new software.amazon.cryptography.services.kms.internaldafny.types.ReEncryptResponse(ToDafny_N3_com__N9_amazonaws__N3_kms__S17_ReEncryptResponse__M14_CiphertextBlob(var_ciphertextBlob), ToDafny_N3_com__N9_amazonaws__N3_kms__S17_ReEncryptResponse__M11_SourceKeyId(var_sourceKeyId), ToDafny_N3_com__N9_amazonaws__N3_kms__S17_ReEncryptResponse__M5_KeyId(var_keyId), ToDafny_N3_com__N9_amazonaws__N3_kms__S17_ReEncryptResponse__M25_SourceEncryptionAlgorithm(var_sourceEncryptionAlgorithm), ToDafny_N3_com__N9_amazonaws__N3_kms__S17_ReEncryptResponse__M30_DestinationEncryptionAlgorithm(var_destinationEncryptionAlgorithm)); } public static Amazon.KeyManagementService.Model.ReplicateKeyRequest FromDafny_N3_com__N9_amazonaws__N3_kms__S19_ReplicateKeyRequest(software.amazon.cryptography.services.kms.internaldafny.types._IReplicateKeyRequest value) @@ -1830,10 +1830,10 @@ public static Amazon.KeyManagementService.Model.ReplicateKeyRequest FromDafny_N3 public static software.amazon.cryptography.services.kms.internaldafny.types._IReplicateKeyRequest ToDafny_N3_com__N9_amazonaws__N3_kms__S19_ReplicateKeyRequest(Amazon.KeyManagementService.Model.ReplicateKeyRequest value) { - string var_policy = value.Policy; - bool? var_bypassPolicyLockoutSafetyCheck = value.BypassPolicyLockoutSafetyCheck; - string var_description = value.Description; - System.Collections.Generic.List var_tags = value.Tags; + string var_policy = (string)value.Policy; + bool? var_bypassPolicyLockoutSafetyCheck = (bool?)value.BypassPolicyLockoutSafetyCheck; + string var_description = (string)value.Description; + System.Collections.Generic.List var_tags = (System.Collections.Generic.List)value.Tags; return new software.amazon.cryptography.services.kms.internaldafny.types.ReplicateKeyRequest(ToDafny_N3_com__N9_amazonaws__N3_kms__S19_ReplicateKeyRequest__M5_KeyId(value.KeyId), ToDafny_N3_com__N9_amazonaws__N3_kms__S19_ReplicateKeyRequest__M13_ReplicaRegion(value.ReplicaRegion), ToDafny_N3_com__N9_amazonaws__N3_kms__S19_ReplicateKeyRequest__M6_Policy(var_policy), ToDafny_N3_com__N9_amazonaws__N3_kms__S19_ReplicateKeyRequest__M30_BypassPolicyLockoutSafetyCheck(var_bypassPolicyLockoutSafetyCheck), ToDafny_N3_com__N9_amazonaws__N3_kms__S19_ReplicateKeyRequest__M11_Description(var_description), ToDafny_N3_com__N9_amazonaws__N3_kms__S19_ReplicateKeyRequest__M4_Tags(var_tags)); } public static Amazon.KeyManagementService.Model.ReplicateKeyResponse FromDafny_N3_com__N9_amazonaws__N3_kms__S20_ReplicateKeyResponse(software.amazon.cryptography.services.kms.internaldafny.types._IReplicateKeyResponse value) @@ -1845,9 +1845,9 @@ public static Amazon.KeyManagementService.Model.ReplicateKeyResponse FromDafny_N public static software.amazon.cryptography.services.kms.internaldafny.types._IReplicateKeyResponse ToDafny_N3_com__N9_amazonaws__N3_kms__S20_ReplicateKeyResponse(Amazon.KeyManagementService.Model.ReplicateKeyResponse value) { - Amazon.KeyManagementService.Model.KeyMetadata var_replicaKeyMetadata = value.ReplicaKeyMetadata; - string var_replicaPolicy = value.ReplicaPolicy; - System.Collections.Generic.List var_replicaTags = value.ReplicaTags; + Amazon.KeyManagementService.Model.KeyMetadata var_replicaKeyMetadata = (Amazon.KeyManagementService.Model.KeyMetadata)value.ReplicaKeyMetadata; + string var_replicaPolicy = (string)value.ReplicaPolicy; + System.Collections.Generic.List var_replicaTags = (System.Collections.Generic.List)value.ReplicaTags; return new software.amazon.cryptography.services.kms.internaldafny.types.ReplicateKeyResponse(ToDafny_N3_com__N9_amazonaws__N3_kms__S20_ReplicateKeyResponse__M18_ReplicaKeyMetadata(var_replicaKeyMetadata), ToDafny_N3_com__N9_amazonaws__N3_kms__S20_ReplicateKeyResponse__M13_ReplicaPolicy(var_replicaPolicy), ToDafny_N3_com__N9_amazonaws__N3_kms__S20_ReplicateKeyResponse__M11_ReplicaTags(var_replicaTags)); } public static Amazon.KeyManagementService.Model.RetireGrantRequest FromDafny_N3_com__N9_amazonaws__N3_kms__S18_RetireGrantRequest(software.amazon.cryptography.services.kms.internaldafny.types._IRetireGrantRequest value) @@ -1860,10 +1860,10 @@ public static Amazon.KeyManagementService.Model.RetireGrantRequest FromDafny_N3_ public static software.amazon.cryptography.services.kms.internaldafny.types._IRetireGrantRequest ToDafny_N3_com__N9_amazonaws__N3_kms__S18_RetireGrantRequest(Amazon.KeyManagementService.Model.RetireGrantRequest value) { - string var_grantToken = value.GrantToken; - string var_keyId = value.KeyId; - string var_grantId = value.GrantId; - bool? var_dryRun = value.DryRun; + string var_grantToken = (string)value.GrantToken; + string var_keyId = (string)value.KeyId; + string var_grantId = (string)value.GrantId; + bool? var_dryRun = (bool?)value.DryRun; return new software.amazon.cryptography.services.kms.internaldafny.types.RetireGrantRequest(ToDafny_N3_com__N9_amazonaws__N3_kms__S18_RetireGrantRequest__M10_GrantToken(var_grantToken), ToDafny_N3_com__N9_amazonaws__N3_kms__S18_RetireGrantRequest__M5_KeyId(var_keyId), ToDafny_N3_com__N9_amazonaws__N3_kms__S18_RetireGrantRequest__M7_GrantId(var_grantId), ToDafny_N3_com__N9_amazonaws__N3_kms__S18_RetireGrantRequest__M6_DryRun(var_dryRun)); } public static Amazon.KeyManagementService.Model.RevokeGrantRequest FromDafny_N3_com__N9_amazonaws__N3_kms__S18_RevokeGrantRequest(software.amazon.cryptography.services.kms.internaldafny.types._IRevokeGrantRequest value) @@ -1875,7 +1875,7 @@ public static Amazon.KeyManagementService.Model.RevokeGrantRequest FromDafny_N3_ public static software.amazon.cryptography.services.kms.internaldafny.types._IRevokeGrantRequest ToDafny_N3_com__N9_amazonaws__N3_kms__S18_RevokeGrantRequest(Amazon.KeyManagementService.Model.RevokeGrantRequest value) { - bool? var_dryRun = value.DryRun; + bool? var_dryRun = (bool?)value.DryRun; return new software.amazon.cryptography.services.kms.internaldafny.types.RevokeGrantRequest(ToDafny_N3_com__N9_amazonaws__N3_kms__S18_RevokeGrantRequest__M5_KeyId(value.KeyId), ToDafny_N3_com__N9_amazonaws__N3_kms__S18_RevokeGrantRequest__M7_GrantId(value.GrantId), ToDafny_N3_com__N9_amazonaws__N3_kms__S18_RevokeGrantRequest__M6_DryRun(var_dryRun)); } public static Amazon.KeyManagementService.Model.RotateKeyOnDemandRequest FromDafny_N3_com__N9_amazonaws__N3_kms__S24_RotateKeyOnDemandRequest(software.amazon.cryptography.services.kms.internaldafny.types._IRotateKeyOnDemandRequest value) @@ -1895,7 +1895,7 @@ public static Amazon.KeyManagementService.Model.RotateKeyOnDemandResponse FromDa public static software.amazon.cryptography.services.kms.internaldafny.types._IRotateKeyOnDemandResponse ToDafny_N3_com__N9_amazonaws__N3_kms__S25_RotateKeyOnDemandResponse(Amazon.KeyManagementService.Model.RotateKeyOnDemandResponse value) { - string var_keyId = value.KeyId; + string var_keyId = (string)value.KeyId; return new software.amazon.cryptography.services.kms.internaldafny.types.RotateKeyOnDemandResponse(ToDafny_N3_com__N9_amazonaws__N3_kms__S25_RotateKeyOnDemandResponse__M5_KeyId(var_keyId)); } public static Amazon.KeyManagementService.RotationType FromDafny_N3_com__N9_amazonaws__N3_kms__S12_RotationType(software.amazon.cryptography.services.kms.internaldafny.types._IRotationType value) @@ -1918,7 +1918,7 @@ public static Amazon.KeyManagementService.Model.ScheduleKeyDeletionRequest FromD public static software.amazon.cryptography.services.kms.internaldafny.types._IScheduleKeyDeletionRequest ToDafny_N3_com__N9_amazonaws__N3_kms__S26_ScheduleKeyDeletionRequest(Amazon.KeyManagementService.Model.ScheduleKeyDeletionRequest value) { - int? var_pendingWindowInDays = value.PendingWindowInDays; + int? var_pendingWindowInDays = (int?)value.PendingWindowInDays; return new software.amazon.cryptography.services.kms.internaldafny.types.ScheduleKeyDeletionRequest(ToDafny_N3_com__N9_amazonaws__N3_kms__S26_ScheduleKeyDeletionRequest__M5_KeyId(value.KeyId), ToDafny_N3_com__N9_amazonaws__N3_kms__S26_ScheduleKeyDeletionRequest__M19_PendingWindowInDays(var_pendingWindowInDays)); } public static Amazon.KeyManagementService.Model.ScheduleKeyDeletionResponse FromDafny_N3_com__N9_amazonaws__N3_kms__S27_ScheduleKeyDeletionResponse(software.amazon.cryptography.services.kms.internaldafny.types._IScheduleKeyDeletionResponse value) @@ -1931,10 +1931,10 @@ public static Amazon.KeyManagementService.Model.ScheduleKeyDeletionResponse From public static software.amazon.cryptography.services.kms.internaldafny.types._IScheduleKeyDeletionResponse ToDafny_N3_com__N9_amazonaws__N3_kms__S27_ScheduleKeyDeletionResponse(Amazon.KeyManagementService.Model.ScheduleKeyDeletionResponse value) { - string var_keyId = value.KeyId; - System.DateTime? var_deletionDate = value.DeletionDate; - Amazon.KeyManagementService.KeyState var_keyState = value.KeyState; - int? var_pendingWindowInDays = value.PendingWindowInDays; + string var_keyId = (string)value.KeyId; + System.DateTime? var_deletionDate = (System.DateTime?)value.DeletionDate; + Amazon.KeyManagementService.KeyState var_keyState = (Amazon.KeyManagementService.KeyState)value.KeyState; + int? var_pendingWindowInDays = (int?)value.PendingWindowInDays; return new software.amazon.cryptography.services.kms.internaldafny.types.ScheduleKeyDeletionResponse(ToDafny_N3_com__N9_amazonaws__N3_kms__S27_ScheduleKeyDeletionResponse__M5_KeyId(var_keyId), ToDafny_N3_com__N9_amazonaws__N3_kms__S27_ScheduleKeyDeletionResponse__M12_DeletionDate(var_deletionDate), ToDafny_N3_com__N9_amazonaws__N3_kms__S27_ScheduleKeyDeletionResponse__M8_KeyState(var_keyState), ToDafny_N3_com__N9_amazonaws__N3_kms__S27_ScheduleKeyDeletionResponse__M19_PendingWindowInDays(var_pendingWindowInDays)); } public static Amazon.KeyManagementService.SigningAlgorithmSpec FromDafny_N3_com__N9_amazonaws__N3_kms__S20_SigningAlgorithmSpec(software.amazon.cryptography.services.kms.internaldafny.types._ISigningAlgorithmSpec value) @@ -1977,9 +1977,9 @@ public static Amazon.KeyManagementService.Model.SignRequest FromDafny_N3_com__N9 public static software.amazon.cryptography.services.kms.internaldafny.types._ISignRequest ToDafny_N3_com__N9_amazonaws__N3_kms__S11_SignRequest(Amazon.KeyManagementService.Model.SignRequest value) { - Amazon.KeyManagementService.MessageType var_messageType = value.MessageType; - System.Collections.Generic.List var_grantTokens = value.GrantTokens; - bool? var_dryRun = value.DryRun; + Amazon.KeyManagementService.MessageType var_messageType = (Amazon.KeyManagementService.MessageType)value.MessageType; + System.Collections.Generic.List var_grantTokens = (System.Collections.Generic.List)value.GrantTokens; + bool? var_dryRun = (bool?)value.DryRun; return new software.amazon.cryptography.services.kms.internaldafny.types.SignRequest(ToDafny_N3_com__N9_amazonaws__N3_kms__S11_SignRequest__M5_KeyId(value.KeyId), ToDafny_N3_com__N9_amazonaws__N3_kms__S11_SignRequest__M7_Message(value.Message), ToDafny_N3_com__N9_amazonaws__N3_kms__S11_SignRequest__M11_MessageType(var_messageType), ToDafny_N3_com__N9_amazonaws__N3_kms__S11_SignRequest__M11_GrantTokens(var_grantTokens), ToDafny_N3_com__N9_amazonaws__N3_kms__S11_SignRequest__M16_SigningAlgorithm(value.SigningAlgorithm), ToDafny_N3_com__N9_amazonaws__N3_kms__S11_SignRequest__M6_DryRun(var_dryRun)); } public static Amazon.KeyManagementService.Model.SignResponse FromDafny_N3_com__N9_amazonaws__N3_kms__S12_SignResponse(software.amazon.cryptography.services.kms.internaldafny.types._ISignResponse value) @@ -1991,9 +1991,9 @@ public static Amazon.KeyManagementService.Model.SignResponse FromDafny_N3_com__N public static software.amazon.cryptography.services.kms.internaldafny.types._ISignResponse ToDafny_N3_com__N9_amazonaws__N3_kms__S12_SignResponse(Amazon.KeyManagementService.Model.SignResponse value) { - string var_keyId = value.KeyId; - System.IO.MemoryStream var_signature = value.Signature; - Amazon.KeyManagementService.SigningAlgorithmSpec var_signingAlgorithm = value.SigningAlgorithm; + string var_keyId = (string)value.KeyId; + System.IO.MemoryStream var_signature = (System.IO.MemoryStream)value.Signature; + Amazon.KeyManagementService.SigningAlgorithmSpec var_signingAlgorithm = (Amazon.KeyManagementService.SigningAlgorithmSpec)value.SigningAlgorithm; return new software.amazon.cryptography.services.kms.internaldafny.types.SignResponse(ToDafny_N3_com__N9_amazonaws__N3_kms__S12_SignResponse__M5_KeyId(var_keyId), ToDafny_N3_com__N9_amazonaws__N3_kms__S12_SignResponse__M9_Signature(var_signature), ToDafny_N3_com__N9_amazonaws__N3_kms__S12_SignResponse__M16_SigningAlgorithm(var_signingAlgorithm)); } public static Amazon.KeyManagementService.Model.TagException FromDafny_N3_com__N9_amazonaws__N3_kms__S12_TagException(software.amazon.cryptography.services.kms.internaldafny.types.Error_TagException value) @@ -2004,7 +2004,7 @@ public static Amazon.KeyManagementService.Model.TagException FromDafny_N3_com__N } public static software.amazon.cryptography.services.kms.internaldafny.types.Error_TagException ToDafny_N3_com__N9_amazonaws__N3_kms__S12_TagException(Amazon.KeyManagementService.Model.TagException value) { - string var_message = value.Message; + string var_message = (string)value.Message; return new software.amazon.cryptography.services.kms.internaldafny.types.Error_TagException( ToDafny_N3_com__N9_amazonaws__N3_kms__S12_TagException__M7_message(var_message) ); @@ -2028,7 +2028,7 @@ public static Amazon.KeyManagementService.Model.UnsupportedOperationException Fr } public static software.amazon.cryptography.services.kms.internaldafny.types.Error_UnsupportedOperationException ToDafny_N3_com__N9_amazonaws__N3_kms__S29_UnsupportedOperationException(Amazon.KeyManagementService.Model.UnsupportedOperationException value) { - string var_message = value.Message; + string var_message = (string)value.Message; return new software.amazon.cryptography.services.kms.internaldafny.types.Error_UnsupportedOperationException( ToDafny_N3_com__N9_amazonaws__N3_kms__S29_UnsupportedOperationException__M7_message(var_message) ); @@ -2070,14 +2070,14 @@ public static Amazon.KeyManagementService.Model.UpdateCustomKeyStoreRequest From public static software.amazon.cryptography.services.kms.internaldafny.types._IUpdateCustomKeyStoreRequest ToDafny_N3_com__N9_amazonaws__N3_kms__S27_UpdateCustomKeyStoreRequest(Amazon.KeyManagementService.Model.UpdateCustomKeyStoreRequest value) { - string var_newCustomKeyStoreName = value.NewCustomKeyStoreName; - string var_keyStorePassword = value.KeyStorePassword; - string var_cloudHsmClusterId = value.CloudHsmClusterId; - string var_xksProxyUriEndpoint = value.XksProxyUriEndpoint; - string var_xksProxyUriPath = value.XksProxyUriPath; - string var_xksProxyVpcEndpointServiceName = value.XksProxyVpcEndpointServiceName; - Amazon.KeyManagementService.Model.XksProxyAuthenticationCredentialType var_xksProxyAuthenticationCredential = value.XksProxyAuthenticationCredential; - Amazon.KeyManagementService.XksProxyConnectivityType var_xksProxyConnectivity = value.XksProxyConnectivity; + string var_newCustomKeyStoreName = (string)value.NewCustomKeyStoreName; + string var_keyStorePassword = (string)value.KeyStorePassword; + string var_cloudHsmClusterId = (string)value.CloudHsmClusterId; + string var_xksProxyUriEndpoint = (string)value.XksProxyUriEndpoint; + string var_xksProxyUriPath = (string)value.XksProxyUriPath; + string var_xksProxyVpcEndpointServiceName = (string)value.XksProxyVpcEndpointServiceName; + Amazon.KeyManagementService.Model.XksProxyAuthenticationCredentialType var_xksProxyAuthenticationCredential = (Amazon.KeyManagementService.Model.XksProxyAuthenticationCredentialType)value.XksProxyAuthenticationCredential; + Amazon.KeyManagementService.XksProxyConnectivityType var_xksProxyConnectivity = (Amazon.KeyManagementService.XksProxyConnectivityType)value.XksProxyConnectivity; return new software.amazon.cryptography.services.kms.internaldafny.types.UpdateCustomKeyStoreRequest(ToDafny_N3_com__N9_amazonaws__N3_kms__S27_UpdateCustomKeyStoreRequest__M16_CustomKeyStoreId(value.CustomKeyStoreId), ToDafny_N3_com__N9_amazonaws__N3_kms__S27_UpdateCustomKeyStoreRequest__M21_NewCustomKeyStoreName(var_newCustomKeyStoreName), ToDafny_N3_com__N9_amazonaws__N3_kms__S27_UpdateCustomKeyStoreRequest__M16_KeyStorePassword(var_keyStorePassword), ToDafny_N3_com__N9_amazonaws__N3_kms__S27_UpdateCustomKeyStoreRequest__M17_CloudHsmClusterId(var_cloudHsmClusterId), ToDafny_N3_com__N9_amazonaws__N3_kms__S27_UpdateCustomKeyStoreRequest__M19_XksProxyUriEndpoint(var_xksProxyUriEndpoint), ToDafny_N3_com__N9_amazonaws__N3_kms__S27_UpdateCustomKeyStoreRequest__M15_XksProxyUriPath(var_xksProxyUriPath), ToDafny_N3_com__N9_amazonaws__N3_kms__S27_UpdateCustomKeyStoreRequest__M30_XksProxyVpcEndpointServiceName(var_xksProxyVpcEndpointServiceName), ToDafny_N3_com__N9_amazonaws__N3_kms__S27_UpdateCustomKeyStoreRequest__M32_XksProxyAuthenticationCredential(var_xksProxyAuthenticationCredential), ToDafny_N3_com__N9_amazonaws__N3_kms__S27_UpdateCustomKeyStoreRequest__M20_XksProxyConnectivity(var_xksProxyConnectivity)); } public static Amazon.KeyManagementService.Model.UpdateCustomKeyStoreResponse FromDafny_N3_com__N9_amazonaws__N3_kms__S28_UpdateCustomKeyStoreResponse(software.amazon.cryptography.services.kms.internaldafny.types._IUpdateCustomKeyStoreResponse value) @@ -2124,8 +2124,8 @@ public static Amazon.KeyManagementService.Model.VerifyMacRequest FromDafny_N3_co public static software.amazon.cryptography.services.kms.internaldafny.types._IVerifyMacRequest ToDafny_N3_com__N9_amazonaws__N3_kms__S16_VerifyMacRequest(Amazon.KeyManagementService.Model.VerifyMacRequest value) { - System.Collections.Generic.List var_grantTokens = value.GrantTokens; - bool? var_dryRun = value.DryRun; + System.Collections.Generic.List var_grantTokens = (System.Collections.Generic.List)value.GrantTokens; + bool? var_dryRun = (bool?)value.DryRun; return new software.amazon.cryptography.services.kms.internaldafny.types.VerifyMacRequest(ToDafny_N3_com__N9_amazonaws__N3_kms__S16_VerifyMacRequest__M7_Message(value.Message), ToDafny_N3_com__N9_amazonaws__N3_kms__S16_VerifyMacRequest__M5_KeyId(value.KeyId), ToDafny_N3_com__N9_amazonaws__N3_kms__S16_VerifyMacRequest__M12_MacAlgorithm(value.MacAlgorithm), ToDafny_N3_com__N9_amazonaws__N3_kms__S16_VerifyMacRequest__M3_Mac(value.Mac), ToDafny_N3_com__N9_amazonaws__N3_kms__S16_VerifyMacRequest__M11_GrantTokens(var_grantTokens), ToDafny_N3_com__N9_amazonaws__N3_kms__S16_VerifyMacRequest__M6_DryRun(var_dryRun)); } public static Amazon.KeyManagementService.Model.VerifyMacResponse FromDafny_N3_com__N9_amazonaws__N3_kms__S17_VerifyMacResponse(software.amazon.cryptography.services.kms.internaldafny.types._IVerifyMacResponse value) @@ -2137,9 +2137,9 @@ public static Amazon.KeyManagementService.Model.VerifyMacResponse FromDafny_N3_c public static software.amazon.cryptography.services.kms.internaldafny.types._IVerifyMacResponse ToDafny_N3_com__N9_amazonaws__N3_kms__S17_VerifyMacResponse(Amazon.KeyManagementService.Model.VerifyMacResponse value) { - string var_keyId = value.KeyId; - bool? var_macValid = value.MacValid; - Amazon.KeyManagementService.MacAlgorithmSpec var_macAlgorithm = value.MacAlgorithm; + string var_keyId = (string)value.KeyId; + bool? var_macValid = (bool?)value.MacValid; + Amazon.KeyManagementService.MacAlgorithmSpec var_macAlgorithm = (Amazon.KeyManagementService.MacAlgorithmSpec)value.MacAlgorithm; return new software.amazon.cryptography.services.kms.internaldafny.types.VerifyMacResponse(ToDafny_N3_com__N9_amazonaws__N3_kms__S17_VerifyMacResponse__M5_KeyId(var_keyId), ToDafny_N3_com__N9_amazonaws__N3_kms__S17_VerifyMacResponse__M8_MacValid(var_macValid), ToDafny_N3_com__N9_amazonaws__N3_kms__S17_VerifyMacResponse__M12_MacAlgorithm(var_macAlgorithm)); } public static Amazon.KeyManagementService.Model.VerifyRequest FromDafny_N3_com__N9_amazonaws__N3_kms__S13_VerifyRequest(software.amazon.cryptography.services.kms.internaldafny.types._IVerifyRequest value) @@ -2155,9 +2155,9 @@ public static Amazon.KeyManagementService.Model.VerifyRequest FromDafny_N3_com__ public static software.amazon.cryptography.services.kms.internaldafny.types._IVerifyRequest ToDafny_N3_com__N9_amazonaws__N3_kms__S13_VerifyRequest(Amazon.KeyManagementService.Model.VerifyRequest value) { - Amazon.KeyManagementService.MessageType var_messageType = value.MessageType; - System.Collections.Generic.List var_grantTokens = value.GrantTokens; - bool? var_dryRun = value.DryRun; + Amazon.KeyManagementService.MessageType var_messageType = (Amazon.KeyManagementService.MessageType)value.MessageType; + System.Collections.Generic.List var_grantTokens = (System.Collections.Generic.List)value.GrantTokens; + bool? var_dryRun = (bool?)value.DryRun; return new software.amazon.cryptography.services.kms.internaldafny.types.VerifyRequest(ToDafny_N3_com__N9_amazonaws__N3_kms__S13_VerifyRequest__M5_KeyId(value.KeyId), ToDafny_N3_com__N9_amazonaws__N3_kms__S13_VerifyRequest__M7_Message(value.Message), ToDafny_N3_com__N9_amazonaws__N3_kms__S13_VerifyRequest__M11_MessageType(var_messageType), ToDafny_N3_com__N9_amazonaws__N3_kms__S13_VerifyRequest__M9_Signature(value.Signature), ToDafny_N3_com__N9_amazonaws__N3_kms__S13_VerifyRequest__M16_SigningAlgorithm(value.SigningAlgorithm), ToDafny_N3_com__N9_amazonaws__N3_kms__S13_VerifyRequest__M11_GrantTokens(var_grantTokens), ToDafny_N3_com__N9_amazonaws__N3_kms__S13_VerifyRequest__M6_DryRun(var_dryRun)); } public static Amazon.KeyManagementService.Model.VerifyResponse FromDafny_N3_com__N9_amazonaws__N3_kms__S14_VerifyResponse(software.amazon.cryptography.services.kms.internaldafny.types._IVerifyResponse value) @@ -2169,9 +2169,9 @@ public static Amazon.KeyManagementService.Model.VerifyResponse FromDafny_N3_com_ public static software.amazon.cryptography.services.kms.internaldafny.types._IVerifyResponse ToDafny_N3_com__N9_amazonaws__N3_kms__S14_VerifyResponse(Amazon.KeyManagementService.Model.VerifyResponse value) { - string var_keyId = value.KeyId; - bool? var_signatureValid = value.SignatureValid; - Amazon.KeyManagementService.SigningAlgorithmSpec var_signingAlgorithm = value.SigningAlgorithm; + string var_keyId = (string)value.KeyId; + bool? var_signatureValid = (bool?)value.SignatureValid; + Amazon.KeyManagementService.SigningAlgorithmSpec var_signingAlgorithm = (Amazon.KeyManagementService.SigningAlgorithmSpec)value.SigningAlgorithm; return new software.amazon.cryptography.services.kms.internaldafny.types.VerifyResponse(ToDafny_N3_com__N9_amazonaws__N3_kms__S14_VerifyResponse__M5_KeyId(var_keyId), ToDafny_N3_com__N9_amazonaws__N3_kms__S14_VerifyResponse__M14_SignatureValid(var_signatureValid), ToDafny_N3_com__N9_amazonaws__N3_kms__S14_VerifyResponse__M16_SigningAlgorithm(var_signingAlgorithm)); } public static Amazon.KeyManagementService.WrappingKeySpec FromDafny_N3_com__N9_amazonaws__N3_kms__S15_WrappingKeySpec(software.amazon.cryptography.services.kms.internaldafny.types._IWrappingKeySpec value) @@ -2198,7 +2198,7 @@ public static Amazon.KeyManagementService.Model.XksKeyAlreadyInUseException From } public static software.amazon.cryptography.services.kms.internaldafny.types.Error_XksKeyAlreadyInUseException ToDafny_N3_com__N9_amazonaws__N3_kms__S27_XksKeyAlreadyInUseException(Amazon.KeyManagementService.Model.XksKeyAlreadyInUseException value) { - string var_message = value.Message; + string var_message = (string)value.Message; return new software.amazon.cryptography.services.kms.internaldafny.types.Error_XksKeyAlreadyInUseException( ToDafny_N3_com__N9_amazonaws__N3_kms__S27_XksKeyAlreadyInUseException__M7_message(var_message) ); @@ -2211,7 +2211,7 @@ public static Amazon.KeyManagementService.Model.XksKeyInvalidConfigurationExcept } public static software.amazon.cryptography.services.kms.internaldafny.types.Error_XksKeyInvalidConfigurationException ToDafny_N3_com__N9_amazonaws__N3_kms__S35_XksKeyInvalidConfigurationException(Amazon.KeyManagementService.Model.XksKeyInvalidConfigurationException value) { - string var_message = value.Message; + string var_message = (string)value.Message; return new software.amazon.cryptography.services.kms.internaldafny.types.Error_XksKeyInvalidConfigurationException( ToDafny_N3_com__N9_amazonaws__N3_kms__S35_XksKeyInvalidConfigurationException__M7_message(var_message) ); @@ -2224,7 +2224,7 @@ public static Amazon.KeyManagementService.Model.XksKeyNotFoundException FromDafn } public static software.amazon.cryptography.services.kms.internaldafny.types.Error_XksKeyNotFoundException ToDafny_N3_com__N9_amazonaws__N3_kms__S23_XksKeyNotFoundException(Amazon.KeyManagementService.Model.XksKeyNotFoundException value) { - string var_message = value.Message; + string var_message = (string)value.Message; return new software.amazon.cryptography.services.kms.internaldafny.types.Error_XksKeyNotFoundException( ToDafny_N3_com__N9_amazonaws__N3_kms__S23_XksKeyNotFoundException__M7_message(var_message) ); @@ -2249,7 +2249,7 @@ public static Amazon.KeyManagementService.Model.XksProxyIncorrectAuthenticationC } public static software.amazon.cryptography.services.kms.internaldafny.types.Error_XksProxyIncorrectAuthenticationCredentialException ToDafny_N3_com__N9_amazonaws__N3_kms__S50_XksProxyIncorrectAuthenticationCredentialException(Amazon.KeyManagementService.Model.XksProxyIncorrectAuthenticationCredentialException value) { - string var_message = value.Message; + string var_message = (string)value.Message; return new software.amazon.cryptography.services.kms.internaldafny.types.Error_XksProxyIncorrectAuthenticationCredentialException( ToDafny_N3_com__N9_amazonaws__N3_kms__S50_XksProxyIncorrectAuthenticationCredentialException__M7_message(var_message) ); @@ -2262,7 +2262,7 @@ public static Amazon.KeyManagementService.Model.XksProxyInvalidConfigurationExce } public static software.amazon.cryptography.services.kms.internaldafny.types.Error_XksProxyInvalidConfigurationException ToDafny_N3_com__N9_amazonaws__N3_kms__S37_XksProxyInvalidConfigurationException(Amazon.KeyManagementService.Model.XksProxyInvalidConfigurationException value) { - string var_message = value.Message; + string var_message = (string)value.Message; return new software.amazon.cryptography.services.kms.internaldafny.types.Error_XksProxyInvalidConfigurationException( ToDafny_N3_com__N9_amazonaws__N3_kms__S37_XksProxyInvalidConfigurationException__M7_message(var_message) ); @@ -2275,7 +2275,7 @@ public static Amazon.KeyManagementService.Model.XksProxyInvalidResponseException } public static software.amazon.cryptography.services.kms.internaldafny.types.Error_XksProxyInvalidResponseException ToDafny_N3_com__N9_amazonaws__N3_kms__S32_XksProxyInvalidResponseException(Amazon.KeyManagementService.Model.XksProxyInvalidResponseException value) { - string var_message = value.Message; + string var_message = (string)value.Message; return new software.amazon.cryptography.services.kms.internaldafny.types.Error_XksProxyInvalidResponseException( ToDafny_N3_com__N9_amazonaws__N3_kms__S32_XksProxyInvalidResponseException__M7_message(var_message) ); @@ -2288,7 +2288,7 @@ public static Amazon.KeyManagementService.Model.XksProxyUriEndpointInUseExceptio } public static software.amazon.cryptography.services.kms.internaldafny.types.Error_XksProxyUriEndpointInUseException ToDafny_N3_com__N9_amazonaws__N3_kms__S33_XksProxyUriEndpointInUseException(Amazon.KeyManagementService.Model.XksProxyUriEndpointInUseException value) { - string var_message = value.Message; + string var_message = (string)value.Message; return new software.amazon.cryptography.services.kms.internaldafny.types.Error_XksProxyUriEndpointInUseException( ToDafny_N3_com__N9_amazonaws__N3_kms__S33_XksProxyUriEndpointInUseException__M7_message(var_message) ); @@ -2301,7 +2301,7 @@ public static Amazon.KeyManagementService.Model.XksProxyUriInUseException FromDa } public static software.amazon.cryptography.services.kms.internaldafny.types.Error_XksProxyUriInUseException ToDafny_N3_com__N9_amazonaws__N3_kms__S25_XksProxyUriInUseException(Amazon.KeyManagementService.Model.XksProxyUriInUseException value) { - string var_message = value.Message; + string var_message = (string)value.Message; return new software.amazon.cryptography.services.kms.internaldafny.types.Error_XksProxyUriInUseException( ToDafny_N3_com__N9_amazonaws__N3_kms__S25_XksProxyUriInUseException__M7_message(var_message) ); @@ -2314,7 +2314,7 @@ public static Amazon.KeyManagementService.Model.XksProxyUriUnreachableException } public static software.amazon.cryptography.services.kms.internaldafny.types.Error_XksProxyUriUnreachableException ToDafny_N3_com__N9_amazonaws__N3_kms__S31_XksProxyUriUnreachableException(Amazon.KeyManagementService.Model.XksProxyUriUnreachableException value) { - string var_message = value.Message; + string var_message = (string)value.Message; return new software.amazon.cryptography.services.kms.internaldafny.types.Error_XksProxyUriUnreachableException( ToDafny_N3_com__N9_amazonaws__N3_kms__S31_XksProxyUriUnreachableException__M7_message(var_message) ); @@ -2327,7 +2327,7 @@ public static Amazon.KeyManagementService.Model.XksProxyVpcEndpointServiceInUseE } public static software.amazon.cryptography.services.kms.internaldafny.types.Error_XksProxyVpcEndpointServiceInUseException ToDafny_N3_com__N9_amazonaws__N3_kms__S40_XksProxyVpcEndpointServiceInUseException(Amazon.KeyManagementService.Model.XksProxyVpcEndpointServiceInUseException value) { - string var_message = value.Message; + string var_message = (string)value.Message; return new software.amazon.cryptography.services.kms.internaldafny.types.Error_XksProxyVpcEndpointServiceInUseException( ToDafny_N3_com__N9_amazonaws__N3_kms__S40_XksProxyVpcEndpointServiceInUseException__M7_message(var_message) ); @@ -2340,7 +2340,7 @@ public static Amazon.KeyManagementService.Model.XksProxyVpcEndpointServiceInvali } public static software.amazon.cryptography.services.kms.internaldafny.types.Error_XksProxyVpcEndpointServiceInvalidConfigurationException ToDafny_N3_com__N9_amazonaws__N3_kms__S55_XksProxyVpcEndpointServiceInvalidConfigurationException(Amazon.KeyManagementService.Model.XksProxyVpcEndpointServiceInvalidConfigurationException value) { - string var_message = value.Message; + string var_message = (string)value.Message; return new software.amazon.cryptography.services.kms.internaldafny.types.Error_XksProxyVpcEndpointServiceInvalidConfigurationException( ToDafny_N3_com__N9_amazonaws__N3_kms__S55_XksProxyVpcEndpointServiceInvalidConfigurationException__M7_message(var_message) ); @@ -2353,7 +2353,7 @@ public static Amazon.KeyManagementService.Model.XksProxyVpcEndpointServiceNotFou } public static software.amazon.cryptography.services.kms.internaldafny.types.Error_XksProxyVpcEndpointServiceNotFoundException ToDafny_N3_com__N9_amazonaws__N3_kms__S43_XksProxyVpcEndpointServiceNotFoundException(Amazon.KeyManagementService.Model.XksProxyVpcEndpointServiceNotFoundException value) { - string var_message = value.Message; + string var_message = (string)value.Message; return new software.amazon.cryptography.services.kms.internaldafny.types.Error_XksProxyVpcEndpointServiceNotFoundException( ToDafny_N3_com__N9_amazonaws__N3_kms__S43_XksProxyVpcEndpointServiceNotFoundException__M7_message(var_message) ); @@ -2372,7 +2372,7 @@ public static string FromDafny_N3_com__N9_amazonaws__N3_kms__S24_CancelKeyDeleti } public static Dafny.ISequence ToDafny_N3_com__N9_amazonaws__N3_kms__S24_CancelKeyDeletionRequest__M5_KeyId(string value) { - return ToDafny_N3_com__N9_amazonaws__N3_kms__S9_KeyIdType(value); + return ToDafny_N3_com__N9_amazonaws__N3_kms__S9_KeyIdType((string)value); } public static string FromDafny_N3_com__N9_amazonaws__N3_kms__S25_CancelKeyDeletionResponse__M5_KeyId(Wrappers_Compile._IOption> value) { @@ -2436,7 +2436,7 @@ public static string FromDafny_N3_com__N9_amazonaws__N3_kms__S28_ConnectCustomKe } public static Dafny.ISequence ToDafny_N3_com__N9_amazonaws__N3_kms__S28_ConnectCustomKeyStoreRequest__M16_CustomKeyStoreId(string value) { - return ToDafny_N3_com__N9_amazonaws__N3_kms__S20_CustomKeyStoreIdType(value); + return ToDafny_N3_com__N9_amazonaws__N3_kms__S20_CustomKeyStoreIdType((string)value); } public static string FromDafny_N3_com__N9_amazonaws__N3_kms__S18_CreateAliasRequest__M9_AliasName(Dafny.ISequence value) { @@ -2444,7 +2444,7 @@ public static string FromDafny_N3_com__N9_amazonaws__N3_kms__S18_CreateAliasRequ } public static Dafny.ISequence ToDafny_N3_com__N9_amazonaws__N3_kms__S18_CreateAliasRequest__M9_AliasName(string value) { - return ToDafny_N3_com__N9_amazonaws__N3_kms__S13_AliasNameType(value); + return ToDafny_N3_com__N9_amazonaws__N3_kms__S13_AliasNameType((string)value); } public static string FromDafny_N3_com__N9_amazonaws__N3_kms__S18_CreateAliasRequest__M11_TargetKeyId(Dafny.ISequence value) { @@ -2452,7 +2452,7 @@ public static string FromDafny_N3_com__N9_amazonaws__N3_kms__S18_CreateAliasRequ } public static Dafny.ISequence ToDafny_N3_com__N9_amazonaws__N3_kms__S18_CreateAliasRequest__M11_TargetKeyId(string value) { - return ToDafny_N3_com__N9_amazonaws__N3_kms__S9_KeyIdType(value); + return ToDafny_N3_com__N9_amazonaws__N3_kms__S9_KeyIdType((string)value); } public static string FromDafny_N3_com__N9_amazonaws__N3_kms__S27_CreateCustomKeyStoreRequest__M18_CustomKeyStoreName(Dafny.ISequence value) { @@ -2460,7 +2460,7 @@ public static string FromDafny_N3_com__N9_amazonaws__N3_kms__S27_CreateCustomKey } public static Dafny.ISequence ToDafny_N3_com__N9_amazonaws__N3_kms__S27_CreateCustomKeyStoreRequest__M18_CustomKeyStoreName(string value) { - return ToDafny_N3_com__N9_amazonaws__N3_kms__S22_CustomKeyStoreNameType(value); + return ToDafny_N3_com__N9_amazonaws__N3_kms__S22_CustomKeyStoreNameType((string)value); } public static string FromDafny_N3_com__N9_amazonaws__N3_kms__S27_CreateCustomKeyStoreRequest__M17_CloudHsmClusterId(Wrappers_Compile._IOption> value) { @@ -2548,7 +2548,7 @@ public static string FromDafny_N3_com__N9_amazonaws__N3_kms__S18_CreateGrantRequ } public static Dafny.ISequence ToDafny_N3_com__N9_amazonaws__N3_kms__S18_CreateGrantRequest__M5_KeyId(string value) { - return ToDafny_N3_com__N9_amazonaws__N3_kms__S9_KeyIdType(value); + return ToDafny_N3_com__N9_amazonaws__N3_kms__S9_KeyIdType((string)value); } public static string FromDafny_N3_com__N9_amazonaws__N3_kms__S18_CreateGrantRequest__M16_GranteePrincipal(Dafny.ISequence value) { @@ -2556,7 +2556,7 @@ public static string FromDafny_N3_com__N9_amazonaws__N3_kms__S18_CreateGrantRequ } public static Dafny.ISequence ToDafny_N3_com__N9_amazonaws__N3_kms__S18_CreateGrantRequest__M16_GranteePrincipal(string value) { - return ToDafny_N3_com__N9_amazonaws__N3_kms__S15_PrincipalIdType(value); + return ToDafny_N3_com__N9_amazonaws__N3_kms__S15_PrincipalIdType((string)value); } public static string FromDafny_N3_com__N9_amazonaws__N3_kms__S18_CreateGrantRequest__M17_RetiringPrincipal(Wrappers_Compile._IOption> value) { @@ -2572,7 +2572,7 @@ public static System.Collections.Generic.List FromDafny_N3_com__N9_amazo } public static Dafny.ISequence ToDafny_N3_com__N9_amazonaws__N3_kms__S18_CreateGrantRequest__M10_Operations(System.Collections.Generic.List value) { - return ToDafny_N3_com__N9_amazonaws__N3_kms__S18_GrantOperationList(value); + return ToDafny_N3_com__N9_amazonaws__N3_kms__S18_GrantOperationList((System.Collections.Generic.List)value); } public static Amazon.KeyManagementService.Model.GrantConstraints FromDafny_N3_com__N9_amazonaws__N3_kms__S18_CreateGrantRequest__M11_Constraints(Wrappers_Compile._IOption value) { @@ -2756,7 +2756,7 @@ public static System.IO.MemoryStream FromDafny_N3_com__N9_amazonaws__N3_kms__S14 } public static Dafny.ISequence ToDafny_N3_com__N9_amazonaws__N3_kms__S14_DecryptRequest__M14_CiphertextBlob(System.IO.MemoryStream value) { - return ToDafny_N3_com__N9_amazonaws__N3_kms__S14_CiphertextType(value); + return ToDafny_N3_com__N9_amazonaws__N3_kms__S14_CiphertextType((System.IO.MemoryStream)value); } public static System.Collections.Generic.Dictionary FromDafny_N3_com__N9_amazonaws__N3_kms__S14_DecryptRequest__M17_EncryptionContext(Wrappers_Compile._IOption, Dafny.ISequence>> value) { @@ -2844,7 +2844,7 @@ public static string FromDafny_N3_com__N9_amazonaws__N3_kms__S18_DeleteAliasRequ } public static Dafny.ISequence ToDafny_N3_com__N9_amazonaws__N3_kms__S18_DeleteAliasRequest__M9_AliasName(string value) { - return ToDafny_N3_com__N9_amazonaws__N3_kms__S13_AliasNameType(value); + return ToDafny_N3_com__N9_amazonaws__N3_kms__S13_AliasNameType((string)value); } public static string FromDafny_N3_com__N9_amazonaws__N3_kms__S27_DeleteCustomKeyStoreRequest__M16_CustomKeyStoreId(Dafny.ISequence value) { @@ -2852,7 +2852,7 @@ public static string FromDafny_N3_com__N9_amazonaws__N3_kms__S27_DeleteCustomKey } public static Dafny.ISequence ToDafny_N3_com__N9_amazonaws__N3_kms__S27_DeleteCustomKeyStoreRequest__M16_CustomKeyStoreId(string value) { - return ToDafny_N3_com__N9_amazonaws__N3_kms__S20_CustomKeyStoreIdType(value); + return ToDafny_N3_com__N9_amazonaws__N3_kms__S20_CustomKeyStoreIdType((string)value); } public static string FromDafny_N3_com__N9_amazonaws__N3_kms__S32_DeleteImportedKeyMaterialRequest__M5_KeyId(Dafny.ISequence value) { @@ -2860,7 +2860,7 @@ public static string FromDafny_N3_com__N9_amazonaws__N3_kms__S32_DeleteImportedK } public static Dafny.ISequence ToDafny_N3_com__N9_amazonaws__N3_kms__S32_DeleteImportedKeyMaterialRequest__M5_KeyId(string value) { - return ToDafny_N3_com__N9_amazonaws__N3_kms__S9_KeyIdType(value); + return ToDafny_N3_com__N9_amazonaws__N3_kms__S9_KeyIdType((string)value); } public static string FromDafny_N3_com__N9_amazonaws__N3_kms__S26_DependencyTimeoutException__M7_message(Wrappers_Compile._IOption> value) { @@ -2876,7 +2876,7 @@ public static string FromDafny_N3_com__N9_amazonaws__N3_kms__S25_DeriveSharedSec } public static Dafny.ISequence ToDafny_N3_com__N9_amazonaws__N3_kms__S25_DeriveSharedSecretRequest__M5_KeyId(string value) { - return ToDafny_N3_com__N9_amazonaws__N3_kms__S9_KeyIdType(value); + return ToDafny_N3_com__N9_amazonaws__N3_kms__S9_KeyIdType((string)value); } public static Amazon.KeyManagementService.KeyAgreementAlgorithmSpec FromDafny_N3_com__N9_amazonaws__N3_kms__S25_DeriveSharedSecretRequest__M21_KeyAgreementAlgorithm(software.amazon.cryptography.services.kms.internaldafny.types._IKeyAgreementAlgorithmSpec value) { @@ -2884,7 +2884,7 @@ public static Amazon.KeyManagementService.KeyAgreementAlgorithmSpec FromDafny_N3 } public static software.amazon.cryptography.services.kms.internaldafny.types._IKeyAgreementAlgorithmSpec ToDafny_N3_com__N9_amazonaws__N3_kms__S25_DeriveSharedSecretRequest__M21_KeyAgreementAlgorithm(Amazon.KeyManagementService.KeyAgreementAlgorithmSpec value) { - return ToDafny_N3_com__N9_amazonaws__N3_kms__S25_KeyAgreementAlgorithmSpec(value); + return ToDafny_N3_com__N9_amazonaws__N3_kms__S25_KeyAgreementAlgorithmSpec((Amazon.KeyManagementService.KeyAgreementAlgorithmSpec)value); } public static System.IO.MemoryStream FromDafny_N3_com__N9_amazonaws__N3_kms__S25_DeriveSharedSecretRequest__M9_PublicKey(Dafny.ISequence value) { @@ -2892,7 +2892,7 @@ public static System.IO.MemoryStream FromDafny_N3_com__N9_amazonaws__N3_kms__S25 } public static Dafny.ISequence ToDafny_N3_com__N9_amazonaws__N3_kms__S25_DeriveSharedSecretRequest__M9_PublicKey(System.IO.MemoryStream value) { - return ToDafny_N3_com__N9_amazonaws__N3_kms__S13_PublicKeyType(value); + return ToDafny_N3_com__N9_amazonaws__N3_kms__S13_PublicKeyType((System.IO.MemoryStream)value); } public static System.Collections.Generic.List FromDafny_N3_com__N9_amazonaws__N3_kms__S25_DeriveSharedSecretRequest__M11_GrantTokens(Wrappers_Compile._IOption>> value) { @@ -3020,7 +3020,7 @@ public static string FromDafny_N3_com__N9_amazonaws__N3_kms__S18_DescribeKeyRequ } public static Dafny.ISequence ToDafny_N3_com__N9_amazonaws__N3_kms__S18_DescribeKeyRequest__M5_KeyId(string value) { - return ToDafny_N3_com__N9_amazonaws__N3_kms__S9_KeyIdType(value); + return ToDafny_N3_com__N9_amazonaws__N3_kms__S9_KeyIdType((string)value); } public static System.Collections.Generic.List FromDafny_N3_com__N9_amazonaws__N3_kms__S18_DescribeKeyRequest__M11_GrantTokens(Wrappers_Compile._IOption>> value) { @@ -3052,7 +3052,7 @@ public static string FromDafny_N3_com__N9_amazonaws__N3_kms__S17_DisableKeyReque } public static Dafny.ISequence ToDafny_N3_com__N9_amazonaws__N3_kms__S17_DisableKeyRequest__M5_KeyId(string value) { - return ToDafny_N3_com__N9_amazonaws__N3_kms__S9_KeyIdType(value); + return ToDafny_N3_com__N9_amazonaws__N3_kms__S9_KeyIdType((string)value); } public static string FromDafny_N3_com__N9_amazonaws__N3_kms__S25_DisableKeyRotationRequest__M5_KeyId(Dafny.ISequence value) { @@ -3060,7 +3060,7 @@ public static string FromDafny_N3_com__N9_amazonaws__N3_kms__S25_DisableKeyRotat } public static Dafny.ISequence ToDafny_N3_com__N9_amazonaws__N3_kms__S25_DisableKeyRotationRequest__M5_KeyId(string value) { - return ToDafny_N3_com__N9_amazonaws__N3_kms__S9_KeyIdType(value); + return ToDafny_N3_com__N9_amazonaws__N3_kms__S9_KeyIdType((string)value); } public static string FromDafny_N3_com__N9_amazonaws__N3_kms__S31_DisconnectCustomKeyStoreRequest__M16_CustomKeyStoreId(Dafny.ISequence value) { @@ -3068,7 +3068,7 @@ public static string FromDafny_N3_com__N9_amazonaws__N3_kms__S31_DisconnectCusto } public static Dafny.ISequence ToDafny_N3_com__N9_amazonaws__N3_kms__S31_DisconnectCustomKeyStoreRequest__M16_CustomKeyStoreId(string value) { - return ToDafny_N3_com__N9_amazonaws__N3_kms__S20_CustomKeyStoreIdType(value); + return ToDafny_N3_com__N9_amazonaws__N3_kms__S20_CustomKeyStoreIdType((string)value); } public static string FromDafny_N3_com__N9_amazonaws__N3_kms__S24_DryRunOperationException__M7_message(Wrappers_Compile._IOption> value) { @@ -3084,7 +3084,7 @@ public static string FromDafny_N3_com__N9_amazonaws__N3_kms__S16_EnableKeyReques } public static Dafny.ISequence ToDafny_N3_com__N9_amazonaws__N3_kms__S16_EnableKeyRequest__M5_KeyId(string value) { - return ToDafny_N3_com__N9_amazonaws__N3_kms__S9_KeyIdType(value); + return ToDafny_N3_com__N9_amazonaws__N3_kms__S9_KeyIdType((string)value); } public static string FromDafny_N3_com__N9_amazonaws__N3_kms__S24_EnableKeyRotationRequest__M5_KeyId(Dafny.ISequence value) { @@ -3092,7 +3092,7 @@ public static string FromDafny_N3_com__N9_amazonaws__N3_kms__S24_EnableKeyRotati } public static Dafny.ISequence ToDafny_N3_com__N9_amazonaws__N3_kms__S24_EnableKeyRotationRequest__M5_KeyId(string value) { - return ToDafny_N3_com__N9_amazonaws__N3_kms__S9_KeyIdType(value); + return ToDafny_N3_com__N9_amazonaws__N3_kms__S9_KeyIdType((string)value); } public static int? FromDafny_N3_com__N9_amazonaws__N3_kms__S24_EnableKeyRotationRequest__M20_RotationPeriodInDays(Wrappers_Compile._IOption value) { @@ -3108,7 +3108,7 @@ public static string FromDafny_N3_com__N9_amazonaws__N3_kms__S14_EncryptRequest_ } public static Dafny.ISequence ToDafny_N3_com__N9_amazonaws__N3_kms__S14_EncryptRequest__M5_KeyId(string value) { - return ToDafny_N3_com__N9_amazonaws__N3_kms__S9_KeyIdType(value); + return ToDafny_N3_com__N9_amazonaws__N3_kms__S9_KeyIdType((string)value); } public static System.IO.MemoryStream FromDafny_N3_com__N9_amazonaws__N3_kms__S14_EncryptRequest__M9_Plaintext(Dafny.ISequence value) { @@ -3116,7 +3116,7 @@ public static System.IO.MemoryStream FromDafny_N3_com__N9_amazonaws__N3_kms__S14 } public static Dafny.ISequence ToDafny_N3_com__N9_amazonaws__N3_kms__S14_EncryptRequest__M9_Plaintext(System.IO.MemoryStream value) { - return ToDafny_N3_com__N9_amazonaws__N3_kms__S13_PlaintextType(value); + return ToDafny_N3_com__N9_amazonaws__N3_kms__S13_PlaintextType((System.IO.MemoryStream)value); } public static System.Collections.Generic.Dictionary FromDafny_N3_com__N9_amazonaws__N3_kms__S14_EncryptRequest__M17_EncryptionContext(Wrappers_Compile._IOption, Dafny.ISequence>> value) { @@ -3196,7 +3196,7 @@ public static string FromDafny_N3_com__N9_amazonaws__N3_kms__S26_GenerateDataKey } public static Dafny.ISequence ToDafny_N3_com__N9_amazonaws__N3_kms__S26_GenerateDataKeyPairRequest__M5_KeyId(string value) { - return ToDafny_N3_com__N9_amazonaws__N3_kms__S9_KeyIdType(value); + return ToDafny_N3_com__N9_amazonaws__N3_kms__S9_KeyIdType((string)value); } public static Amazon.KeyManagementService.DataKeyPairSpec FromDafny_N3_com__N9_amazonaws__N3_kms__S26_GenerateDataKeyPairRequest__M11_KeyPairSpec(software.amazon.cryptography.services.kms.internaldafny.types._IDataKeyPairSpec value) { @@ -3204,7 +3204,7 @@ public static Amazon.KeyManagementService.DataKeyPairSpec FromDafny_N3_com__N9_a } public static software.amazon.cryptography.services.kms.internaldafny.types._IDataKeyPairSpec ToDafny_N3_com__N9_amazonaws__N3_kms__S26_GenerateDataKeyPairRequest__M11_KeyPairSpec(Amazon.KeyManagementService.DataKeyPairSpec value) { - return ToDafny_N3_com__N9_amazonaws__N3_kms__S15_DataKeyPairSpec(value); + return ToDafny_N3_com__N9_amazonaws__N3_kms__S15_DataKeyPairSpec((Amazon.KeyManagementService.DataKeyPairSpec)value); } public static System.Collections.Generic.List FromDafny_N3_com__N9_amazonaws__N3_kms__S26_GenerateDataKeyPairRequest__M11_GrantTokens(Wrappers_Compile._IOption>> value) { @@ -3292,7 +3292,7 @@ public static string FromDafny_N3_com__N9_amazonaws__N3_kms__S42_GenerateDataKey } public static Dafny.ISequence ToDafny_N3_com__N9_amazonaws__N3_kms__S42_GenerateDataKeyPairWithoutPlaintextRequest__M5_KeyId(string value) { - return ToDafny_N3_com__N9_amazonaws__N3_kms__S9_KeyIdType(value); + return ToDafny_N3_com__N9_amazonaws__N3_kms__S9_KeyIdType((string)value); } public static Amazon.KeyManagementService.DataKeyPairSpec FromDafny_N3_com__N9_amazonaws__N3_kms__S42_GenerateDataKeyPairWithoutPlaintextRequest__M11_KeyPairSpec(software.amazon.cryptography.services.kms.internaldafny.types._IDataKeyPairSpec value) { @@ -3300,7 +3300,7 @@ public static Amazon.KeyManagementService.DataKeyPairSpec FromDafny_N3_com__N9_a } public static software.amazon.cryptography.services.kms.internaldafny.types._IDataKeyPairSpec ToDafny_N3_com__N9_amazonaws__N3_kms__S42_GenerateDataKeyPairWithoutPlaintextRequest__M11_KeyPairSpec(Amazon.KeyManagementService.DataKeyPairSpec value) { - return ToDafny_N3_com__N9_amazonaws__N3_kms__S15_DataKeyPairSpec(value); + return ToDafny_N3_com__N9_amazonaws__N3_kms__S15_DataKeyPairSpec((Amazon.KeyManagementService.DataKeyPairSpec)value); } public static System.Collections.Generic.List FromDafny_N3_com__N9_amazonaws__N3_kms__S42_GenerateDataKeyPairWithoutPlaintextRequest__M11_GrantTokens(Wrappers_Compile._IOption>> value) { @@ -3356,7 +3356,7 @@ public static string FromDafny_N3_com__N9_amazonaws__N3_kms__S22_GenerateDataKey } public static Dafny.ISequence ToDafny_N3_com__N9_amazonaws__N3_kms__S22_GenerateDataKeyRequest__M5_KeyId(string value) { - return ToDafny_N3_com__N9_amazonaws__N3_kms__S9_KeyIdType(value); + return ToDafny_N3_com__N9_amazonaws__N3_kms__S9_KeyIdType((string)value); } public static System.Collections.Generic.Dictionary FromDafny_N3_com__N9_amazonaws__N3_kms__S22_GenerateDataKeyRequest__M17_EncryptionContext(Wrappers_Compile._IOption, Dafny.ISequence>> value) { @@ -3444,7 +3444,7 @@ public static string FromDafny_N3_com__N9_amazonaws__N3_kms__S38_GenerateDataKey } public static Dafny.ISequence ToDafny_N3_com__N9_amazonaws__N3_kms__S38_GenerateDataKeyWithoutPlaintextRequest__M5_KeyId(string value) { - return ToDafny_N3_com__N9_amazonaws__N3_kms__S9_KeyIdType(value); + return ToDafny_N3_com__N9_amazonaws__N3_kms__S9_KeyIdType((string)value); } public static System.Collections.Generic.Dictionary FromDafny_N3_com__N9_amazonaws__N3_kms__S38_GenerateDataKeyWithoutPlaintextRequest__M17_EncryptionContext(Wrappers_Compile._IOption, Dafny.ISequence>> value) { @@ -3508,7 +3508,7 @@ public static System.IO.MemoryStream FromDafny_N3_com__N9_amazonaws__N3_kms__S18 } public static Dafny.ISequence ToDafny_N3_com__N9_amazonaws__N3_kms__S18_GenerateMacRequest__M7_Message(System.IO.MemoryStream value) { - return ToDafny_N3_com__N9_amazonaws__N3_kms__S13_PlaintextType(value); + return ToDafny_N3_com__N9_amazonaws__N3_kms__S13_PlaintextType((System.IO.MemoryStream)value); } public static string FromDafny_N3_com__N9_amazonaws__N3_kms__S18_GenerateMacRequest__M5_KeyId(Dafny.ISequence value) { @@ -3516,7 +3516,7 @@ public static string FromDafny_N3_com__N9_amazonaws__N3_kms__S18_GenerateMacRequ } public static Dafny.ISequence ToDafny_N3_com__N9_amazonaws__N3_kms__S18_GenerateMacRequest__M5_KeyId(string value) { - return ToDafny_N3_com__N9_amazonaws__N3_kms__S9_KeyIdType(value); + return ToDafny_N3_com__N9_amazonaws__N3_kms__S9_KeyIdType((string)value); } public static Amazon.KeyManagementService.MacAlgorithmSpec FromDafny_N3_com__N9_amazonaws__N3_kms__S18_GenerateMacRequest__M12_MacAlgorithm(software.amazon.cryptography.services.kms.internaldafny.types._IMacAlgorithmSpec value) { @@ -3524,7 +3524,7 @@ public static Amazon.KeyManagementService.MacAlgorithmSpec FromDafny_N3_com__N9_ } public static software.amazon.cryptography.services.kms.internaldafny.types._IMacAlgorithmSpec ToDafny_N3_com__N9_amazonaws__N3_kms__S18_GenerateMacRequest__M12_MacAlgorithm(Amazon.KeyManagementService.MacAlgorithmSpec value) { - return ToDafny_N3_com__N9_amazonaws__N3_kms__S16_MacAlgorithmSpec(value); + return ToDafny_N3_com__N9_amazonaws__N3_kms__S16_MacAlgorithmSpec((Amazon.KeyManagementService.MacAlgorithmSpec)value); } public static System.Collections.Generic.List FromDafny_N3_com__N9_amazonaws__N3_kms__S18_GenerateMacRequest__M11_GrantTokens(Wrappers_Compile._IOption>> value) { @@ -3612,7 +3612,7 @@ public static string FromDafny_N3_com__N9_amazonaws__N3_kms__S19_GetKeyPolicyReq } public static Dafny.ISequence ToDafny_N3_com__N9_amazonaws__N3_kms__S19_GetKeyPolicyRequest__M5_KeyId(string value) { - return ToDafny_N3_com__N9_amazonaws__N3_kms__S9_KeyIdType(value); + return ToDafny_N3_com__N9_amazonaws__N3_kms__S9_KeyIdType((string)value); } public static string FromDafny_N3_com__N9_amazonaws__N3_kms__S19_GetKeyPolicyRequest__M10_PolicyName(Wrappers_Compile._IOption> value) { @@ -3644,7 +3644,7 @@ public static string FromDafny_N3_com__N9_amazonaws__N3_kms__S27_GetKeyRotationS } public static Dafny.ISequence ToDafny_N3_com__N9_amazonaws__N3_kms__S27_GetKeyRotationStatusRequest__M5_KeyId(string value) { - return ToDafny_N3_com__N9_amazonaws__N3_kms__S9_KeyIdType(value); + return ToDafny_N3_com__N9_amazonaws__N3_kms__S9_KeyIdType((string)value); } public static bool? FromDafny_N3_com__N9_amazonaws__N3_kms__S28_GetKeyRotationStatusResponse__M18_KeyRotationEnabled(Wrappers_Compile._IOption value) { @@ -3692,7 +3692,7 @@ public static string FromDafny_N3_com__N9_amazonaws__N3_kms__S29_GetParametersFo } public static Dafny.ISequence ToDafny_N3_com__N9_amazonaws__N3_kms__S29_GetParametersForImportRequest__M5_KeyId(string value) { - return ToDafny_N3_com__N9_amazonaws__N3_kms__S9_KeyIdType(value); + return ToDafny_N3_com__N9_amazonaws__N3_kms__S9_KeyIdType((string)value); } public static Amazon.KeyManagementService.AlgorithmSpec FromDafny_N3_com__N9_amazonaws__N3_kms__S29_GetParametersForImportRequest__M17_WrappingAlgorithm(software.amazon.cryptography.services.kms.internaldafny.types._IAlgorithmSpec value) { @@ -3700,7 +3700,7 @@ public static Amazon.KeyManagementService.AlgorithmSpec FromDafny_N3_com__N9_ama } public static software.amazon.cryptography.services.kms.internaldafny.types._IAlgorithmSpec ToDafny_N3_com__N9_amazonaws__N3_kms__S29_GetParametersForImportRequest__M17_WrappingAlgorithm(Amazon.KeyManagementService.AlgorithmSpec value) { - return ToDafny_N3_com__N9_amazonaws__N3_kms__S13_AlgorithmSpec(value); + return ToDafny_N3_com__N9_amazonaws__N3_kms__S13_AlgorithmSpec((Amazon.KeyManagementService.AlgorithmSpec)value); } public static Amazon.KeyManagementService.WrappingKeySpec FromDafny_N3_com__N9_amazonaws__N3_kms__S29_GetParametersForImportRequest__M15_WrappingKeySpec(software.amazon.cryptography.services.kms.internaldafny.types._IWrappingKeySpec value) { @@ -3708,7 +3708,7 @@ public static Amazon.KeyManagementService.WrappingKeySpec FromDafny_N3_com__N9_a } public static software.amazon.cryptography.services.kms.internaldafny.types._IWrappingKeySpec ToDafny_N3_com__N9_amazonaws__N3_kms__S29_GetParametersForImportRequest__M15_WrappingKeySpec(Amazon.KeyManagementService.WrappingKeySpec value) { - return ToDafny_N3_com__N9_amazonaws__N3_kms__S15_WrappingKeySpec(value); + return ToDafny_N3_com__N9_amazonaws__N3_kms__S15_WrappingKeySpec((Amazon.KeyManagementService.WrappingKeySpec)value); } public static string FromDafny_N3_com__N9_amazonaws__N3_kms__S30_GetParametersForImportResponse__M5_KeyId(Wrappers_Compile._IOption> value) { @@ -3748,7 +3748,7 @@ public static string FromDafny_N3_com__N9_amazonaws__N3_kms__S19_GetPublicKeyReq } public static Dafny.ISequence ToDafny_N3_com__N9_amazonaws__N3_kms__S19_GetPublicKeyRequest__M5_KeyId(string value) { - return ToDafny_N3_com__N9_amazonaws__N3_kms__S9_KeyIdType(value); + return ToDafny_N3_com__N9_amazonaws__N3_kms__S9_KeyIdType((string)value); } public static System.Collections.Generic.List FromDafny_N3_com__N9_amazonaws__N3_kms__S19_GetPublicKeyRequest__M11_GrantTokens(Wrappers_Compile._IOption>> value) { @@ -3828,7 +3828,7 @@ public static string FromDafny_N3_com__N9_amazonaws__N3_kms__S24_ImportKeyMateri } public static Dafny.ISequence ToDafny_N3_com__N9_amazonaws__N3_kms__S24_ImportKeyMaterialRequest__M5_KeyId(string value) { - return ToDafny_N3_com__N9_amazonaws__N3_kms__S9_KeyIdType(value); + return ToDafny_N3_com__N9_amazonaws__N3_kms__S9_KeyIdType((string)value); } public static System.IO.MemoryStream FromDafny_N3_com__N9_amazonaws__N3_kms__S24_ImportKeyMaterialRequest__M11_ImportToken(Dafny.ISequence value) { @@ -3836,7 +3836,7 @@ public static System.IO.MemoryStream FromDafny_N3_com__N9_amazonaws__N3_kms__S24 } public static Dafny.ISequence ToDafny_N3_com__N9_amazonaws__N3_kms__S24_ImportKeyMaterialRequest__M11_ImportToken(System.IO.MemoryStream value) { - return ToDafny_N3_com__N9_amazonaws__N3_kms__S14_CiphertextType(value); + return ToDafny_N3_com__N9_amazonaws__N3_kms__S14_CiphertextType((System.IO.MemoryStream)value); } public static System.IO.MemoryStream FromDafny_N3_com__N9_amazonaws__N3_kms__S24_ImportKeyMaterialRequest__M20_EncryptedKeyMaterial(Dafny.ISequence value) { @@ -3844,7 +3844,7 @@ public static System.IO.MemoryStream FromDafny_N3_com__N9_amazonaws__N3_kms__S24 } public static Dafny.ISequence ToDafny_N3_com__N9_amazonaws__N3_kms__S24_ImportKeyMaterialRequest__M20_EncryptedKeyMaterial(System.IO.MemoryStream value) { - return ToDafny_N3_com__N9_amazonaws__N3_kms__S14_CiphertextType(value); + return ToDafny_N3_com__N9_amazonaws__N3_kms__S14_CiphertextType((System.IO.MemoryStream)value); } public static System.DateTime? FromDafny_N3_com__N9_amazonaws__N3_kms__S24_ImportKeyMaterialRequest__M7_ValidTo(Wrappers_Compile._IOption> value) { @@ -4068,7 +4068,7 @@ public static string FromDafny_N3_com__N9_amazonaws__N3_kms__S17_ListGrantsReque } public static Dafny.ISequence ToDafny_N3_com__N9_amazonaws__N3_kms__S17_ListGrantsRequest__M5_KeyId(string value) { - return ToDafny_N3_com__N9_amazonaws__N3_kms__S9_KeyIdType(value); + return ToDafny_N3_com__N9_amazonaws__N3_kms__S9_KeyIdType((string)value); } public static string FromDafny_N3_com__N9_amazonaws__N3_kms__S17_ListGrantsRequest__M7_GrantId(Wrappers_Compile._IOption> value) { @@ -4116,7 +4116,7 @@ public static string FromDafny_N3_com__N9_amazonaws__N3_kms__S22_ListKeyPolicies } public static Dafny.ISequence ToDafny_N3_com__N9_amazonaws__N3_kms__S22_ListKeyPoliciesRequest__M5_KeyId(string value) { - return ToDafny_N3_com__N9_amazonaws__N3_kms__S9_KeyIdType(value); + return ToDafny_N3_com__N9_amazonaws__N3_kms__S9_KeyIdType((string)value); } public static int? FromDafny_N3_com__N9_amazonaws__N3_kms__S22_ListKeyPoliciesRequest__M5_Limit(Wrappers_Compile._IOption value) { @@ -4164,7 +4164,7 @@ public static string FromDafny_N3_com__N9_amazonaws__N3_kms__S23_ListKeyRotation } public static Dafny.ISequence ToDafny_N3_com__N9_amazonaws__N3_kms__S23_ListKeyRotationsRequest__M5_KeyId(string value) { - return ToDafny_N3_com__N9_amazonaws__N3_kms__S9_KeyIdType(value); + return ToDafny_N3_com__N9_amazonaws__N3_kms__S9_KeyIdType((string)value); } public static int? FromDafny_N3_com__N9_amazonaws__N3_kms__S23_ListKeyRotationsRequest__M5_Limit(Wrappers_Compile._IOption value) { @@ -4252,7 +4252,7 @@ public static string FromDafny_N3_com__N9_amazonaws__N3_kms__S23_ListResourceTag } public static Dafny.ISequence ToDafny_N3_com__N9_amazonaws__N3_kms__S23_ListResourceTagsRequest__M5_KeyId(string value) { - return ToDafny_N3_com__N9_amazonaws__N3_kms__S9_KeyIdType(value); + return ToDafny_N3_com__N9_amazonaws__N3_kms__S9_KeyIdType((string)value); } public static int? FromDafny_N3_com__N9_amazonaws__N3_kms__S23_ListResourceTagsRequest__M5_Limit(Wrappers_Compile._IOption value) { @@ -4316,7 +4316,7 @@ public static string FromDafny_N3_com__N9_amazonaws__N3_kms__S19_PutKeyPolicyReq } public static Dafny.ISequence ToDafny_N3_com__N9_amazonaws__N3_kms__S19_PutKeyPolicyRequest__M5_KeyId(string value) { - return ToDafny_N3_com__N9_amazonaws__N3_kms__S9_KeyIdType(value); + return ToDafny_N3_com__N9_amazonaws__N3_kms__S9_KeyIdType((string)value); } public static string FromDafny_N3_com__N9_amazonaws__N3_kms__S19_PutKeyPolicyRequest__M10_PolicyName(Wrappers_Compile._IOption> value) { @@ -4332,7 +4332,7 @@ public static string FromDafny_N3_com__N9_amazonaws__N3_kms__S19_PutKeyPolicyReq } public static Dafny.ISequence ToDafny_N3_com__N9_amazonaws__N3_kms__S19_PutKeyPolicyRequest__M6_Policy(string value) { - return ToDafny_N3_com__N9_amazonaws__N3_kms__S10_PolicyType(value); + return ToDafny_N3_com__N9_amazonaws__N3_kms__S10_PolicyType((string)value); } public static bool? FromDafny_N3_com__N9_amazonaws__N3_kms__S19_PutKeyPolicyRequest__M30_BypassPolicyLockoutSafetyCheck(Wrappers_Compile._IOption value) { @@ -4348,7 +4348,7 @@ public static System.IO.MemoryStream FromDafny_N3_com__N9_amazonaws__N3_kms__S16 } public static Dafny.ISequence ToDafny_N3_com__N9_amazonaws__N3_kms__S16_ReEncryptRequest__M14_CiphertextBlob(System.IO.MemoryStream value) { - return ToDafny_N3_com__N9_amazonaws__N3_kms__S14_CiphertextType(value); + return ToDafny_N3_com__N9_amazonaws__N3_kms__S14_CiphertextType((System.IO.MemoryStream)value); } public static System.Collections.Generic.Dictionary FromDafny_N3_com__N9_amazonaws__N3_kms__S16_ReEncryptRequest__M23_SourceEncryptionContext(Wrappers_Compile._IOption, Dafny.ISequence>> value) { @@ -4372,7 +4372,7 @@ public static string FromDafny_N3_com__N9_amazonaws__N3_kms__S16_ReEncryptReques } public static Dafny.ISequence ToDafny_N3_com__N9_amazonaws__N3_kms__S16_ReEncryptRequest__M16_DestinationKeyId(string value) { - return ToDafny_N3_com__N9_amazonaws__N3_kms__S9_KeyIdType(value); + return ToDafny_N3_com__N9_amazonaws__N3_kms__S9_KeyIdType((string)value); } public static System.Collections.Generic.Dictionary FromDafny_N3_com__N9_amazonaws__N3_kms__S16_ReEncryptRequest__M28_DestinationEncryptionContext(Wrappers_Compile._IOption, Dafny.ISequence>> value) { @@ -4460,7 +4460,7 @@ public static string FromDafny_N3_com__N9_amazonaws__N3_kms__S19_ReplicateKeyReq } public static Dafny.ISequence ToDafny_N3_com__N9_amazonaws__N3_kms__S19_ReplicateKeyRequest__M5_KeyId(string value) { - return ToDafny_N3_com__N9_amazonaws__N3_kms__S9_KeyIdType(value); + return ToDafny_N3_com__N9_amazonaws__N3_kms__S9_KeyIdType((string)value); } public static string FromDafny_N3_com__N9_amazonaws__N3_kms__S19_ReplicateKeyRequest__M13_ReplicaRegion(Dafny.ISequence value) { @@ -4468,7 +4468,7 @@ public static string FromDafny_N3_com__N9_amazonaws__N3_kms__S19_ReplicateKeyReq } public static Dafny.ISequence ToDafny_N3_com__N9_amazonaws__N3_kms__S19_ReplicateKeyRequest__M13_ReplicaRegion(string value) { - return ToDafny_N3_com__N9_amazonaws__N3_kms__S10_RegionType(value); + return ToDafny_N3_com__N9_amazonaws__N3_kms__S10_RegionType((string)value); } public static string FromDafny_N3_com__N9_amazonaws__N3_kms__S19_ReplicateKeyRequest__M6_Policy(Wrappers_Compile._IOption> value) { @@ -4564,7 +4564,7 @@ public static string FromDafny_N3_com__N9_amazonaws__N3_kms__S18_RevokeGrantRequ } public static Dafny.ISequence ToDafny_N3_com__N9_amazonaws__N3_kms__S18_RevokeGrantRequest__M5_KeyId(string value) { - return ToDafny_N3_com__N9_amazonaws__N3_kms__S9_KeyIdType(value); + return ToDafny_N3_com__N9_amazonaws__N3_kms__S9_KeyIdType((string)value); } public static string FromDafny_N3_com__N9_amazonaws__N3_kms__S18_RevokeGrantRequest__M7_GrantId(Dafny.ISequence value) { @@ -4572,7 +4572,7 @@ public static string FromDafny_N3_com__N9_amazonaws__N3_kms__S18_RevokeGrantRequ } public static Dafny.ISequence ToDafny_N3_com__N9_amazonaws__N3_kms__S18_RevokeGrantRequest__M7_GrantId(string value) { - return ToDafny_N3_com__N9_amazonaws__N3_kms__S11_GrantIdType(value); + return ToDafny_N3_com__N9_amazonaws__N3_kms__S11_GrantIdType((string)value); } public static bool? FromDafny_N3_com__N9_amazonaws__N3_kms__S18_RevokeGrantRequest__M6_DryRun(Wrappers_Compile._IOption value) { @@ -4588,7 +4588,7 @@ public static string FromDafny_N3_com__N9_amazonaws__N3_kms__S24_RotateKeyOnDema } public static Dafny.ISequence ToDafny_N3_com__N9_amazonaws__N3_kms__S24_RotateKeyOnDemandRequest__M5_KeyId(string value) { - return ToDafny_N3_com__N9_amazonaws__N3_kms__S9_KeyIdType(value); + return ToDafny_N3_com__N9_amazonaws__N3_kms__S9_KeyIdType((string)value); } public static string FromDafny_N3_com__N9_amazonaws__N3_kms__S25_RotateKeyOnDemandResponse__M5_KeyId(Wrappers_Compile._IOption> value) { @@ -4604,7 +4604,7 @@ public static string FromDafny_N3_com__N9_amazonaws__N3_kms__S26_ScheduleKeyDele } public static Dafny.ISequence ToDafny_N3_com__N9_amazonaws__N3_kms__S26_ScheduleKeyDeletionRequest__M5_KeyId(string value) { - return ToDafny_N3_com__N9_amazonaws__N3_kms__S9_KeyIdType(value); + return ToDafny_N3_com__N9_amazonaws__N3_kms__S9_KeyIdType((string)value); } public static int? FromDafny_N3_com__N9_amazonaws__N3_kms__S26_ScheduleKeyDeletionRequest__M19_PendingWindowInDays(Wrappers_Compile._IOption value) { @@ -4652,7 +4652,7 @@ public static string FromDafny_N3_com__N9_amazonaws__N3_kms__S11_SignRequest__M5 } public static Dafny.ISequence ToDafny_N3_com__N9_amazonaws__N3_kms__S11_SignRequest__M5_KeyId(string value) { - return ToDafny_N3_com__N9_amazonaws__N3_kms__S9_KeyIdType(value); + return ToDafny_N3_com__N9_amazonaws__N3_kms__S9_KeyIdType((string)value); } public static System.IO.MemoryStream FromDafny_N3_com__N9_amazonaws__N3_kms__S11_SignRequest__M7_Message(Dafny.ISequence value) { @@ -4660,7 +4660,7 @@ public static System.IO.MemoryStream FromDafny_N3_com__N9_amazonaws__N3_kms__S11 } public static Dafny.ISequence ToDafny_N3_com__N9_amazonaws__N3_kms__S11_SignRequest__M7_Message(System.IO.MemoryStream value) { - return ToDafny_N3_com__N9_amazonaws__N3_kms__S13_PlaintextType(value); + return ToDafny_N3_com__N9_amazonaws__N3_kms__S13_PlaintextType((System.IO.MemoryStream)value); } public static Amazon.KeyManagementService.MessageType FromDafny_N3_com__N9_amazonaws__N3_kms__S11_SignRequest__M11_MessageType(Wrappers_Compile._IOption value) { @@ -4684,7 +4684,7 @@ public static Amazon.KeyManagementService.SigningAlgorithmSpec FromDafny_N3_com_ } public static software.amazon.cryptography.services.kms.internaldafny.types._ISigningAlgorithmSpec ToDafny_N3_com__N9_amazonaws__N3_kms__S11_SignRequest__M16_SigningAlgorithm(Amazon.KeyManagementService.SigningAlgorithmSpec value) { - return ToDafny_N3_com__N9_amazonaws__N3_kms__S20_SigningAlgorithmSpec(value); + return ToDafny_N3_com__N9_amazonaws__N3_kms__S20_SigningAlgorithmSpec((Amazon.KeyManagementService.SigningAlgorithmSpec)value); } public static bool? FromDafny_N3_com__N9_amazonaws__N3_kms__S11_SignRequest__M6_DryRun(Wrappers_Compile._IOption value) { @@ -4732,7 +4732,7 @@ public static string FromDafny_N3_com__N9_amazonaws__N3_kms__S18_TagResourceRequ } public static Dafny.ISequence ToDafny_N3_com__N9_amazonaws__N3_kms__S18_TagResourceRequest__M5_KeyId(string value) { - return ToDafny_N3_com__N9_amazonaws__N3_kms__S9_KeyIdType(value); + return ToDafny_N3_com__N9_amazonaws__N3_kms__S9_KeyIdType((string)value); } public static System.Collections.Generic.List FromDafny_N3_com__N9_amazonaws__N3_kms__S18_TagResourceRequest__M4_Tags(Dafny.ISequence value) { @@ -4740,7 +4740,7 @@ public static Dafny.ISequence ToDafny_N3_com__N9_amazonaws__N3_kms__S18_Ta } public static Dafny.ISequence ToDafny_N3_com__N9_amazonaws__N3_kms__S18_TagResourceRequest__M4_Tags(System.Collections.Generic.List value) { - return ToDafny_N3_com__N9_amazonaws__N3_kms__S7_TagList(value); + return ToDafny_N3_com__N9_amazonaws__N3_kms__S7_TagList((System.Collections.Generic.List)value); } public static string FromDafny_N3_com__N9_amazonaws__N3_kms__S29_UnsupportedOperationException__M7_message(Wrappers_Compile._IOption> value) { @@ -4756,7 +4756,7 @@ public static string FromDafny_N3_com__N9_amazonaws__N3_kms__S20_UntagResourceRe } public static Dafny.ISequence ToDafny_N3_com__N9_amazonaws__N3_kms__S20_UntagResourceRequest__M5_KeyId(string value) { - return ToDafny_N3_com__N9_amazonaws__N3_kms__S9_KeyIdType(value); + return ToDafny_N3_com__N9_amazonaws__N3_kms__S9_KeyIdType((string)value); } public static System.Collections.Generic.List FromDafny_N3_com__N9_amazonaws__N3_kms__S20_UntagResourceRequest__M7_TagKeys(Dafny.ISequence> value) { @@ -4764,7 +4764,7 @@ public static System.Collections.Generic.List FromDafny_N3_com__N9_amazo } public static Dafny.ISequence> ToDafny_N3_com__N9_amazonaws__N3_kms__S20_UntagResourceRequest__M7_TagKeys(System.Collections.Generic.List value) { - return ToDafny_N3_com__N9_amazonaws__N3_kms__S10_TagKeyList(value); + return ToDafny_N3_com__N9_amazonaws__N3_kms__S10_TagKeyList((System.Collections.Generic.List)value); } public static string FromDafny_N3_com__N9_amazonaws__N3_kms__S18_UpdateAliasRequest__M9_AliasName(Dafny.ISequence value) { @@ -4772,7 +4772,7 @@ public static string FromDafny_N3_com__N9_amazonaws__N3_kms__S18_UpdateAliasRequ } public static Dafny.ISequence ToDafny_N3_com__N9_amazonaws__N3_kms__S18_UpdateAliasRequest__M9_AliasName(string value) { - return ToDafny_N3_com__N9_amazonaws__N3_kms__S13_AliasNameType(value); + return ToDafny_N3_com__N9_amazonaws__N3_kms__S13_AliasNameType((string)value); } public static string FromDafny_N3_com__N9_amazonaws__N3_kms__S18_UpdateAliasRequest__M11_TargetKeyId(Dafny.ISequence value) { @@ -4780,7 +4780,7 @@ public static string FromDafny_N3_com__N9_amazonaws__N3_kms__S18_UpdateAliasRequ } public static Dafny.ISequence ToDafny_N3_com__N9_amazonaws__N3_kms__S18_UpdateAliasRequest__M11_TargetKeyId(string value) { - return ToDafny_N3_com__N9_amazonaws__N3_kms__S9_KeyIdType(value); + return ToDafny_N3_com__N9_amazonaws__N3_kms__S9_KeyIdType((string)value); } public static string FromDafny_N3_com__N9_amazonaws__N3_kms__S27_UpdateCustomKeyStoreRequest__M16_CustomKeyStoreId(Dafny.ISequence value) { @@ -4788,7 +4788,7 @@ public static string FromDafny_N3_com__N9_amazonaws__N3_kms__S27_UpdateCustomKey } public static Dafny.ISequence ToDafny_N3_com__N9_amazonaws__N3_kms__S27_UpdateCustomKeyStoreRequest__M16_CustomKeyStoreId(string value) { - return ToDafny_N3_com__N9_amazonaws__N3_kms__S20_CustomKeyStoreIdType(value); + return ToDafny_N3_com__N9_amazonaws__N3_kms__S20_CustomKeyStoreIdType((string)value); } public static string FromDafny_N3_com__N9_amazonaws__N3_kms__S27_UpdateCustomKeyStoreRequest__M21_NewCustomKeyStoreName(Wrappers_Compile._IOption> value) { @@ -4860,7 +4860,7 @@ public static string FromDafny_N3_com__N9_amazonaws__N3_kms__S27_UpdateKeyDescri } public static Dafny.ISequence ToDafny_N3_com__N9_amazonaws__N3_kms__S27_UpdateKeyDescriptionRequest__M5_KeyId(string value) { - return ToDafny_N3_com__N9_amazonaws__N3_kms__S9_KeyIdType(value); + return ToDafny_N3_com__N9_amazonaws__N3_kms__S9_KeyIdType((string)value); } public static string FromDafny_N3_com__N9_amazonaws__N3_kms__S27_UpdateKeyDescriptionRequest__M11_Description(Dafny.ISequence value) { @@ -4868,7 +4868,7 @@ public static string FromDafny_N3_com__N9_amazonaws__N3_kms__S27_UpdateKeyDescri } public static Dafny.ISequence ToDafny_N3_com__N9_amazonaws__N3_kms__S27_UpdateKeyDescriptionRequest__M11_Description(string value) { - return ToDafny_N3_com__N9_amazonaws__N3_kms__S15_DescriptionType(value); + return ToDafny_N3_com__N9_amazonaws__N3_kms__S15_DescriptionType((string)value); } public static string FromDafny_N3_com__N9_amazonaws__N3_kms__S26_UpdatePrimaryRegionRequest__M5_KeyId(Dafny.ISequence value) { @@ -4876,7 +4876,7 @@ public static string FromDafny_N3_com__N9_amazonaws__N3_kms__S26_UpdatePrimaryRe } public static Dafny.ISequence ToDafny_N3_com__N9_amazonaws__N3_kms__S26_UpdatePrimaryRegionRequest__M5_KeyId(string value) { - return ToDafny_N3_com__N9_amazonaws__N3_kms__S9_KeyIdType(value); + return ToDafny_N3_com__N9_amazonaws__N3_kms__S9_KeyIdType((string)value); } public static string FromDafny_N3_com__N9_amazonaws__N3_kms__S26_UpdatePrimaryRegionRequest__M13_PrimaryRegion(Dafny.ISequence value) { @@ -4884,7 +4884,7 @@ public static string FromDafny_N3_com__N9_amazonaws__N3_kms__S26_UpdatePrimaryRe } public static Dafny.ISequence ToDafny_N3_com__N9_amazonaws__N3_kms__S26_UpdatePrimaryRegionRequest__M13_PrimaryRegion(string value) { - return ToDafny_N3_com__N9_amazonaws__N3_kms__S10_RegionType(value); + return ToDafny_N3_com__N9_amazonaws__N3_kms__S10_RegionType((string)value); } public static System.IO.MemoryStream FromDafny_N3_com__N9_amazonaws__N3_kms__S16_VerifyMacRequest__M7_Message(Dafny.ISequence value) { @@ -4892,7 +4892,7 @@ public static System.IO.MemoryStream FromDafny_N3_com__N9_amazonaws__N3_kms__S16 } public static Dafny.ISequence ToDafny_N3_com__N9_amazonaws__N3_kms__S16_VerifyMacRequest__M7_Message(System.IO.MemoryStream value) { - return ToDafny_N3_com__N9_amazonaws__N3_kms__S13_PlaintextType(value); + return ToDafny_N3_com__N9_amazonaws__N3_kms__S13_PlaintextType((System.IO.MemoryStream)value); } public static string FromDafny_N3_com__N9_amazonaws__N3_kms__S16_VerifyMacRequest__M5_KeyId(Dafny.ISequence value) { @@ -4900,7 +4900,7 @@ public static string FromDafny_N3_com__N9_amazonaws__N3_kms__S16_VerifyMacReques } public static Dafny.ISequence ToDafny_N3_com__N9_amazonaws__N3_kms__S16_VerifyMacRequest__M5_KeyId(string value) { - return ToDafny_N3_com__N9_amazonaws__N3_kms__S9_KeyIdType(value); + return ToDafny_N3_com__N9_amazonaws__N3_kms__S9_KeyIdType((string)value); } public static Amazon.KeyManagementService.MacAlgorithmSpec FromDafny_N3_com__N9_amazonaws__N3_kms__S16_VerifyMacRequest__M12_MacAlgorithm(software.amazon.cryptography.services.kms.internaldafny.types._IMacAlgorithmSpec value) { @@ -4908,7 +4908,7 @@ public static Amazon.KeyManagementService.MacAlgorithmSpec FromDafny_N3_com__N9_ } public static software.amazon.cryptography.services.kms.internaldafny.types._IMacAlgorithmSpec ToDafny_N3_com__N9_amazonaws__N3_kms__S16_VerifyMacRequest__M12_MacAlgorithm(Amazon.KeyManagementService.MacAlgorithmSpec value) { - return ToDafny_N3_com__N9_amazonaws__N3_kms__S16_MacAlgorithmSpec(value); + return ToDafny_N3_com__N9_amazonaws__N3_kms__S16_MacAlgorithmSpec((Amazon.KeyManagementService.MacAlgorithmSpec)value); } public static System.IO.MemoryStream FromDafny_N3_com__N9_amazonaws__N3_kms__S16_VerifyMacRequest__M3_Mac(Dafny.ISequence value) { @@ -4916,7 +4916,7 @@ public static System.IO.MemoryStream FromDafny_N3_com__N9_amazonaws__N3_kms__S16 } public static Dafny.ISequence ToDafny_N3_com__N9_amazonaws__N3_kms__S16_VerifyMacRequest__M3_Mac(System.IO.MemoryStream value) { - return ToDafny_N3_com__N9_amazonaws__N3_kms__S14_CiphertextType(value); + return ToDafny_N3_com__N9_amazonaws__N3_kms__S14_CiphertextType((System.IO.MemoryStream)value); } public static System.Collections.Generic.List FromDafny_N3_com__N9_amazonaws__N3_kms__S16_VerifyMacRequest__M11_GrantTokens(Wrappers_Compile._IOption>> value) { @@ -4964,7 +4964,7 @@ public static string FromDafny_N3_com__N9_amazonaws__N3_kms__S13_VerifyRequest__ } public static Dafny.ISequence ToDafny_N3_com__N9_amazonaws__N3_kms__S13_VerifyRequest__M5_KeyId(string value) { - return ToDafny_N3_com__N9_amazonaws__N3_kms__S9_KeyIdType(value); + return ToDafny_N3_com__N9_amazonaws__N3_kms__S9_KeyIdType((string)value); } public static System.IO.MemoryStream FromDafny_N3_com__N9_amazonaws__N3_kms__S13_VerifyRequest__M7_Message(Dafny.ISequence value) { @@ -4972,7 +4972,7 @@ public static System.IO.MemoryStream FromDafny_N3_com__N9_amazonaws__N3_kms__S13 } public static Dafny.ISequence ToDafny_N3_com__N9_amazonaws__N3_kms__S13_VerifyRequest__M7_Message(System.IO.MemoryStream value) { - return ToDafny_N3_com__N9_amazonaws__N3_kms__S13_PlaintextType(value); + return ToDafny_N3_com__N9_amazonaws__N3_kms__S13_PlaintextType((System.IO.MemoryStream)value); } public static Amazon.KeyManagementService.MessageType FromDafny_N3_com__N9_amazonaws__N3_kms__S13_VerifyRequest__M11_MessageType(Wrappers_Compile._IOption value) { @@ -4988,7 +4988,7 @@ public static System.IO.MemoryStream FromDafny_N3_com__N9_amazonaws__N3_kms__S13 } public static Dafny.ISequence ToDafny_N3_com__N9_amazonaws__N3_kms__S13_VerifyRequest__M9_Signature(System.IO.MemoryStream value) { - return ToDafny_N3_com__N9_amazonaws__N3_kms__S14_CiphertextType(value); + return ToDafny_N3_com__N9_amazonaws__N3_kms__S14_CiphertextType((System.IO.MemoryStream)value); } public static Amazon.KeyManagementService.SigningAlgorithmSpec FromDafny_N3_com__N9_amazonaws__N3_kms__S13_VerifyRequest__M16_SigningAlgorithm(software.amazon.cryptography.services.kms.internaldafny.types._ISigningAlgorithmSpec value) { @@ -4996,7 +4996,7 @@ public static Amazon.KeyManagementService.SigningAlgorithmSpec FromDafny_N3_com_ } public static software.amazon.cryptography.services.kms.internaldafny.types._ISigningAlgorithmSpec ToDafny_N3_com__N9_amazonaws__N3_kms__S13_VerifyRequest__M16_SigningAlgorithm(Amazon.KeyManagementService.SigningAlgorithmSpec value) { - return ToDafny_N3_com__N9_amazonaws__N3_kms__S20_SigningAlgorithmSpec(value); + return ToDafny_N3_com__N9_amazonaws__N3_kms__S20_SigningAlgorithmSpec((Amazon.KeyManagementService.SigningAlgorithmSpec)value); } public static System.Collections.Generic.List FromDafny_N3_com__N9_amazonaws__N3_kms__S13_VerifyRequest__M11_GrantTokens(Wrappers_Compile._IOption>> value) { @@ -5257,8 +5257,8 @@ public static Amazon.KeyManagementService.Model.GrantConstraints FromDafny_N3_co public static software.amazon.cryptography.services.kms.internaldafny.types._IGrantConstraints ToDafny_N3_com__N9_amazonaws__N3_kms__S16_GrantConstraints(Amazon.KeyManagementService.Model.GrantConstraints value) { - System.Collections.Generic.Dictionary var_encryptionContextSubset = value.EncryptionContextSubset; - System.Collections.Generic.Dictionary var_encryptionContextEquals = value.EncryptionContextEquals; + System.Collections.Generic.Dictionary var_encryptionContextSubset = (System.Collections.Generic.Dictionary)value.EncryptionContextSubset; + System.Collections.Generic.Dictionary var_encryptionContextEquals = (System.Collections.Generic.Dictionary)value.EncryptionContextEquals; return new software.amazon.cryptography.services.kms.internaldafny.types.GrantConstraints(ToDafny_N3_com__N9_amazonaws__N3_kms__S16_GrantConstraints__M23_EncryptionContextSubset(var_encryptionContextSubset), ToDafny_N3_com__N9_amazonaws__N3_kms__S16_GrantConstraints__M23_EncryptionContextEquals(var_encryptionContextEquals)); } public static System.Collections.Generic.List FromDafny_N3_com__N9_amazonaws__N3_kms__S14_GrantTokenList(Dafny.ISequence> value) @@ -5372,30 +5372,30 @@ public static Amazon.KeyManagementService.Model.KeyMetadata FromDafny_N3_com__N9 public static software.amazon.cryptography.services.kms.internaldafny.types._IKeyMetadata ToDafny_N3_com__N9_amazonaws__N3_kms__S11_KeyMetadata(Amazon.KeyManagementService.Model.KeyMetadata value) { - string var_aWSAccountId = value.AWSAccountId; - string var_arn = value.Arn; - System.DateTime? var_creationDate = value.CreationDate; - bool? var_enabled = value.Enabled; - string var_description = value.Description; - Amazon.KeyManagementService.KeyUsageType var_keyUsage = value.KeyUsage; - Amazon.KeyManagementService.KeyState var_keyState = value.KeyState; - System.DateTime? var_deletionDate = value.DeletionDate; - System.DateTime? var_validTo = value.ValidTo; - Amazon.KeyManagementService.OriginType var_origin = value.Origin; - string var_customKeyStoreId = value.CustomKeyStoreId; - string var_cloudHsmClusterId = value.CloudHsmClusterId; - Amazon.KeyManagementService.ExpirationModelType var_expirationModel = value.ExpirationModel; - Amazon.KeyManagementService.KeyManagerType var_keyManager = value.KeyManager; - Amazon.KeyManagementService.CustomerMasterKeySpec var_customerMasterKeySpec = value.CustomerMasterKeySpec; - Amazon.KeyManagementService.KeySpec var_keySpec = value.KeySpec; - System.Collections.Generic.List var_encryptionAlgorithms = value.EncryptionAlgorithms; - System.Collections.Generic.List var_signingAlgorithms = value.SigningAlgorithms; - System.Collections.Generic.List var_keyAgreementAlgorithms = value.KeyAgreementAlgorithms; - bool? var_multiRegion = value.MultiRegion; - Amazon.KeyManagementService.Model.MultiRegionConfiguration var_multiRegionConfiguration = value.MultiRegionConfiguration; - int? var_pendingDeletionWindowInDays = value.PendingDeletionWindowInDays; - System.Collections.Generic.List var_macAlgorithms = value.MacAlgorithms; - Amazon.KeyManagementService.Model.XksKeyConfigurationType var_xksKeyConfiguration = value.XksKeyConfiguration; + string var_aWSAccountId = (string)value.AWSAccountId; + string var_arn = (string)value.Arn; + System.DateTime? var_creationDate = (System.DateTime?)value.CreationDate; + bool? var_enabled = (bool?)value.Enabled; + string var_description = (string)value.Description; + Amazon.KeyManagementService.KeyUsageType var_keyUsage = (Amazon.KeyManagementService.KeyUsageType)value.KeyUsage; + Amazon.KeyManagementService.KeyState var_keyState = (Amazon.KeyManagementService.KeyState)value.KeyState; + System.DateTime? var_deletionDate = (System.DateTime?)value.DeletionDate; + System.DateTime? var_validTo = (System.DateTime?)value.ValidTo; + Amazon.KeyManagementService.OriginType var_origin = (Amazon.KeyManagementService.OriginType)value.Origin; + string var_customKeyStoreId = (string)value.CustomKeyStoreId; + string var_cloudHsmClusterId = (string)value.CloudHsmClusterId; + Amazon.KeyManagementService.ExpirationModelType var_expirationModel = (Amazon.KeyManagementService.ExpirationModelType)value.ExpirationModel; + Amazon.KeyManagementService.KeyManagerType var_keyManager = (Amazon.KeyManagementService.KeyManagerType)value.KeyManager; + Amazon.KeyManagementService.CustomerMasterKeySpec var_customerMasterKeySpec = (Amazon.KeyManagementService.CustomerMasterKeySpec)value.CustomerMasterKeySpec; + Amazon.KeyManagementService.KeySpec var_keySpec = (Amazon.KeyManagementService.KeySpec)value.KeySpec; + System.Collections.Generic.List var_encryptionAlgorithms = (System.Collections.Generic.List)value.EncryptionAlgorithms; + System.Collections.Generic.List var_signingAlgorithms = (System.Collections.Generic.List)value.SigningAlgorithms; + System.Collections.Generic.List var_keyAgreementAlgorithms = (System.Collections.Generic.List)value.KeyAgreementAlgorithms; + bool? var_multiRegion = (bool?)value.MultiRegion; + Amazon.KeyManagementService.Model.MultiRegionConfiguration var_multiRegionConfiguration = (Amazon.KeyManagementService.Model.MultiRegionConfiguration)value.MultiRegionConfiguration; + int? var_pendingDeletionWindowInDays = (int?)value.PendingDeletionWindowInDays; + System.Collections.Generic.List var_macAlgorithms = (System.Collections.Generic.List)value.MacAlgorithms; + Amazon.KeyManagementService.Model.XksKeyConfigurationType var_xksKeyConfiguration = (Amazon.KeyManagementService.Model.XksKeyConfigurationType)value.XksKeyConfiguration; return new software.amazon.cryptography.services.kms.internaldafny.types.KeyMetadata(ToDafny_N3_com__N9_amazonaws__N3_kms__S11_KeyMetadata__M12_AWSAccountId(var_aWSAccountId), ToDafny_N3_com__N9_amazonaws__N3_kms__S11_KeyMetadata__M5_KeyId(value.KeyId), ToDafny_N3_com__N9_amazonaws__N3_kms__S11_KeyMetadata__M3_Arn(var_arn), ToDafny_N3_com__N9_amazonaws__N3_kms__S11_KeyMetadata__M12_CreationDate(var_creationDate), ToDafny_N3_com__N9_amazonaws__N3_kms__S11_KeyMetadata__M7_Enabled(var_enabled), ToDafny_N3_com__N9_amazonaws__N3_kms__S11_KeyMetadata__M11_Description(var_description), ToDafny_N3_com__N9_amazonaws__N3_kms__S11_KeyMetadata__M8_KeyUsage(var_keyUsage), ToDafny_N3_com__N9_amazonaws__N3_kms__S11_KeyMetadata__M8_KeyState(var_keyState), ToDafny_N3_com__N9_amazonaws__N3_kms__S11_KeyMetadata__M12_DeletionDate(var_deletionDate), ToDafny_N3_com__N9_amazonaws__N3_kms__S11_KeyMetadata__M7_ValidTo(var_validTo), ToDafny_N3_com__N9_amazonaws__N3_kms__S11_KeyMetadata__M6_Origin(var_origin), ToDafny_N3_com__N9_amazonaws__N3_kms__S11_KeyMetadata__M16_CustomKeyStoreId(var_customKeyStoreId), ToDafny_N3_com__N9_amazonaws__N3_kms__S11_KeyMetadata__M17_CloudHsmClusterId(var_cloudHsmClusterId), ToDafny_N3_com__N9_amazonaws__N3_kms__S11_KeyMetadata__M15_ExpirationModel(var_expirationModel), ToDafny_N3_com__N9_amazonaws__N3_kms__S11_KeyMetadata__M10_KeyManager(var_keyManager), ToDafny_N3_com__N9_amazonaws__N3_kms__S11_KeyMetadata__M21_CustomerMasterKeySpec(var_customerMasterKeySpec), ToDafny_N3_com__N9_amazonaws__N3_kms__S11_KeyMetadata__M7_KeySpec(var_keySpec), ToDafny_N3_com__N9_amazonaws__N3_kms__S11_KeyMetadata__M20_EncryptionAlgorithms(var_encryptionAlgorithms), ToDafny_N3_com__N9_amazonaws__N3_kms__S11_KeyMetadata__M17_SigningAlgorithms(var_signingAlgorithms), ToDafny_N3_com__N9_amazonaws__N3_kms__S11_KeyMetadata__M22_KeyAgreementAlgorithms(var_keyAgreementAlgorithms), ToDafny_N3_com__N9_amazonaws__N3_kms__S11_KeyMetadata__M11_MultiRegion(var_multiRegion), ToDafny_N3_com__N9_amazonaws__N3_kms__S11_KeyMetadata__M24_MultiRegionConfiguration(var_multiRegionConfiguration), ToDafny_N3_com__N9_amazonaws__N3_kms__S11_KeyMetadata__M27_PendingDeletionWindowInDays(var_pendingDeletionWindowInDays), ToDafny_N3_com__N9_amazonaws__N3_kms__S11_KeyMetadata__M13_MacAlgorithms(var_macAlgorithms), ToDafny_N3_com__N9_amazonaws__N3_kms__S11_KeyMetadata__M19_XksKeyConfiguration(var_xksKeyConfiguration)); } public static System.IO.MemoryStream FromDafny_N3_com__N9_amazonaws__N3_kms__S14_CiphertextType(Dafny.ISequence value) @@ -5429,8 +5429,8 @@ public static Amazon.KeyManagementService.Model.RecipientInfo FromDafny_N3_com__ public static software.amazon.cryptography.services.kms.internaldafny.types._IRecipientInfo ToDafny_N3_com__N9_amazonaws__N3_kms__S13_RecipientInfo(Amazon.KeyManagementService.Model.RecipientInfo value) { - Amazon.KeyManagementService.KeyEncryptionMechanism var_keyEncryptionAlgorithm = value.KeyEncryptionAlgorithm; - System.IO.MemoryStream var_attestationDocument = value.AttestationDocument; + Amazon.KeyManagementService.KeyEncryptionMechanism var_keyEncryptionAlgorithm = (Amazon.KeyManagementService.KeyEncryptionMechanism)value.KeyEncryptionAlgorithm; + System.IO.MemoryStream var_attestationDocument = (System.IO.MemoryStream)value.AttestationDocument; return new software.amazon.cryptography.services.kms.internaldafny.types.RecipientInfo(ToDafny_N3_com__N9_amazonaws__N3_kms__S13_RecipientInfo__M22_KeyEncryptionAlgorithm(var_keyEncryptionAlgorithm), ToDafny_N3_com__N9_amazonaws__N3_kms__S13_RecipientInfo__M19_AttestationDocument(var_attestationDocument)); } public static System.IO.MemoryStream FromDafny_N3_com__N9_amazonaws__N3_kms__S13_PlaintextType(Dafny.ISequence value) @@ -5613,7 +5613,7 @@ public static string FromDafny_N3_com__N9_amazonaws__N3_kms__S36_XksProxyAuthent } public static Dafny.ISequence ToDafny_N3_com__N9_amazonaws__N3_kms__S36_XksProxyAuthenticationCredentialType__M11_AccessKeyId(string value) { - return ToDafny_N3_com__N9_amazonaws__N3_kms__S37_XksProxyAuthenticationAccessKeyIdType(value); + return ToDafny_N3_com__N9_amazonaws__N3_kms__S37_XksProxyAuthenticationAccessKeyIdType((string)value); } public static string FromDafny_N3_com__N9_amazonaws__N3_kms__S36_XksProxyAuthenticationCredentialType__M18_RawSecretAccessKey(Dafny.ISequence value) { @@ -5621,7 +5621,7 @@ public static string FromDafny_N3_com__N9_amazonaws__N3_kms__S36_XksProxyAuthent } public static Dafny.ISequence ToDafny_N3_com__N9_amazonaws__N3_kms__S36_XksProxyAuthenticationCredentialType__M18_RawSecretAccessKey(string value) { - return ToDafny_N3_com__N9_amazonaws__N3_kms__S44_XksProxyAuthenticationRawSecretAccessKeyType(value); + return ToDafny_N3_com__N9_amazonaws__N3_kms__S44_XksProxyAuthenticationRawSecretAccessKeyType((string)value); } public static Amazon.KeyManagementService.GrantOperation FromDafny_N3_com__N9_amazonaws__N3_kms__S18_GrantOperationList__M6_member(software.amazon.cryptography.services.kms.internaldafny.types._IGrantOperation value) { @@ -5629,7 +5629,7 @@ public static Amazon.KeyManagementService.GrantOperation FromDafny_N3_com__N9_am } public static software.amazon.cryptography.services.kms.internaldafny.types._IGrantOperation ToDafny_N3_com__N9_amazonaws__N3_kms__S18_GrantOperationList__M6_member(Amazon.KeyManagementService.GrantOperation value) { - return ToDafny_N3_com__N9_amazonaws__N3_kms__S14_GrantOperation(value); + return ToDafny_N3_com__N9_amazonaws__N3_kms__S14_GrantOperation((Amazon.KeyManagementService.GrantOperation)value); } public static System.Collections.Generic.Dictionary FromDafny_N3_com__N9_amazonaws__N3_kms__S16_GrantConstraints__M23_EncryptionContextSubset(Wrappers_Compile._IOption, Dafny.ISequence>> value) { @@ -5653,7 +5653,7 @@ public static string FromDafny_N3_com__N9_amazonaws__N3_kms__S14_GrantTokenList_ } public static Dafny.ISequence ToDafny_N3_com__N9_amazonaws__N3_kms__S14_GrantTokenList__M6_member(string value) { - return ToDafny_N3_com__N9_amazonaws__N3_kms__S14_GrantTokenType(value); + return ToDafny_N3_com__N9_amazonaws__N3_kms__S14_GrantTokenType((string)value); } public static Amazon.KeyManagementService.Model.Tag FromDafny_N3_com__N9_amazonaws__N3_kms__S7_TagList__M6_member(software.amazon.cryptography.services.kms.internaldafny.types._ITag value) { @@ -5661,7 +5661,7 @@ public static Amazon.KeyManagementService.Model.Tag FromDafny_N3_com__N9_amazona } public static software.amazon.cryptography.services.kms.internaldafny.types._ITag ToDafny_N3_com__N9_amazonaws__N3_kms__S7_TagList__M6_member(Amazon.KeyManagementService.Model.Tag value) { - return ToDafny_N3_com__N9_amazonaws__N3_kms__S3_Tag(value); + return ToDafny_N3_com__N9_amazonaws__N3_kms__S3_Tag((Amazon.KeyManagementService.Model.Tag)value); } public static string FromDafny_N3_com__N9_amazonaws__N3_kms__S11_KeyMetadata__M12_AWSAccountId(Wrappers_Compile._IOption> value) { @@ -5677,7 +5677,7 @@ public static string FromDafny_N3_com__N9_amazonaws__N3_kms__S11_KeyMetadata__M5 } public static Dafny.ISequence ToDafny_N3_com__N9_amazonaws__N3_kms__S11_KeyMetadata__M5_KeyId(string value) { - return ToDafny_N3_com__N9_amazonaws__N3_kms__S9_KeyIdType(value); + return ToDafny_N3_com__N9_amazonaws__N3_kms__S9_KeyIdType((string)value); } public static string FromDafny_N3_com__N9_amazonaws__N3_kms__S11_KeyMetadata__M3_Arn(Wrappers_Compile._IOption> value) { @@ -5869,7 +5869,7 @@ public static string FromDafny_N3_com__N9_amazonaws__N3_kms__S21_EncryptionConte } public static Dafny.ISequence ToDafny_N3_com__N9_amazonaws__N3_kms__S21_EncryptionContextType__M3_key(string value) { - return ToDafny_N3_com__N9_amazonaws__N3_kms__S20_EncryptionContextKey(value); + return ToDafny_N3_com__N9_amazonaws__N3_kms__S20_EncryptionContextKey((string)value); } public static string FromDafny_N3_com__N9_amazonaws__N3_kms__S21_EncryptionContextType__M5_value(Dafny.ISequence value) { @@ -5877,7 +5877,7 @@ public static string FromDafny_N3_com__N9_amazonaws__N3_kms__S21_EncryptionConte } public static Dafny.ISequence ToDafny_N3_com__N9_amazonaws__N3_kms__S21_EncryptionContextType__M5_value(string value) { - return ToDafny_N3_com__N9_amazonaws__N3_kms__S22_EncryptionContextValue(value); + return ToDafny_N3_com__N9_amazonaws__N3_kms__S22_EncryptionContextValue((string)value); } public static Amazon.KeyManagementService.KeyEncryptionMechanism FromDafny_N3_com__N9_amazonaws__N3_kms__S13_RecipientInfo__M22_KeyEncryptionAlgorithm(Wrappers_Compile._IOption value) { @@ -5901,7 +5901,7 @@ public static Amazon.KeyManagementService.Model.CustomKeyStoresListEntry FromDaf } public static software.amazon.cryptography.services.kms.internaldafny.types._ICustomKeyStoresListEntry ToDafny_N3_com__N9_amazonaws__N3_kms__S19_CustomKeyStoresList__M6_member(Amazon.KeyManagementService.Model.CustomKeyStoresListEntry value) { - return ToDafny_N3_com__N9_amazonaws__N3_kms__S24_CustomKeyStoresListEntry(value); + return ToDafny_N3_com__N9_amazonaws__N3_kms__S24_CustomKeyStoresListEntry((Amazon.KeyManagementService.Model.CustomKeyStoresListEntry)value); } public static Amazon.KeyManagementService.EncryptionAlgorithmSpec FromDafny_N3_com__N9_amazonaws__N3_kms__S27_EncryptionAlgorithmSpecList__M6_member(software.amazon.cryptography.services.kms.internaldafny.types._IEncryptionAlgorithmSpec value) { @@ -5909,7 +5909,7 @@ public static Amazon.KeyManagementService.EncryptionAlgorithmSpec FromDafny_N3_c } public static software.amazon.cryptography.services.kms.internaldafny.types._IEncryptionAlgorithmSpec ToDafny_N3_com__N9_amazonaws__N3_kms__S27_EncryptionAlgorithmSpecList__M6_member(Amazon.KeyManagementService.EncryptionAlgorithmSpec value) { - return ToDafny_N3_com__N9_amazonaws__N3_kms__S23_EncryptionAlgorithmSpec(value); + return ToDafny_N3_com__N9_amazonaws__N3_kms__S23_EncryptionAlgorithmSpec((Amazon.KeyManagementService.EncryptionAlgorithmSpec)value); } public static Amazon.KeyManagementService.SigningAlgorithmSpec FromDafny_N3_com__N9_amazonaws__N3_kms__S24_SigningAlgorithmSpecList__M6_member(software.amazon.cryptography.services.kms.internaldafny.types._ISigningAlgorithmSpec value) { @@ -5917,7 +5917,7 @@ public static Amazon.KeyManagementService.SigningAlgorithmSpec FromDafny_N3_com_ } public static software.amazon.cryptography.services.kms.internaldafny.types._ISigningAlgorithmSpec ToDafny_N3_com__N9_amazonaws__N3_kms__S24_SigningAlgorithmSpecList__M6_member(Amazon.KeyManagementService.SigningAlgorithmSpec value) { - return ToDafny_N3_com__N9_amazonaws__N3_kms__S20_SigningAlgorithmSpec(value); + return ToDafny_N3_com__N9_amazonaws__N3_kms__S20_SigningAlgorithmSpec((Amazon.KeyManagementService.SigningAlgorithmSpec)value); } public static Amazon.KeyManagementService.KeyAgreementAlgorithmSpec FromDafny_N3_com__N9_amazonaws__N3_kms__S29_KeyAgreementAlgorithmSpecList__M6_member(software.amazon.cryptography.services.kms.internaldafny.types._IKeyAgreementAlgorithmSpec value) { @@ -5925,7 +5925,7 @@ public static Amazon.KeyManagementService.KeyAgreementAlgorithmSpec FromDafny_N3 } public static software.amazon.cryptography.services.kms.internaldafny.types._IKeyAgreementAlgorithmSpec ToDafny_N3_com__N9_amazonaws__N3_kms__S29_KeyAgreementAlgorithmSpecList__M6_member(Amazon.KeyManagementService.KeyAgreementAlgorithmSpec value) { - return ToDafny_N3_com__N9_amazonaws__N3_kms__S25_KeyAgreementAlgorithmSpec(value); + return ToDafny_N3_com__N9_amazonaws__N3_kms__S25_KeyAgreementAlgorithmSpec((Amazon.KeyManagementService.KeyAgreementAlgorithmSpec)value); } public static Amazon.KeyManagementService.Model.AliasListEntry FromDafny_N3_com__N9_amazonaws__N3_kms__S9_AliasList__M6_member(software.amazon.cryptography.services.kms.internaldafny.types._IAliasListEntry value) { @@ -5933,7 +5933,7 @@ public static Amazon.KeyManagementService.Model.AliasListEntry FromDafny_N3_com_ } public static software.amazon.cryptography.services.kms.internaldafny.types._IAliasListEntry ToDafny_N3_com__N9_amazonaws__N3_kms__S9_AliasList__M6_member(Amazon.KeyManagementService.Model.AliasListEntry value) { - return ToDafny_N3_com__N9_amazonaws__N3_kms__S14_AliasListEntry(value); + return ToDafny_N3_com__N9_amazonaws__N3_kms__S14_AliasListEntry((Amazon.KeyManagementService.Model.AliasListEntry)value); } public static Amazon.KeyManagementService.Model.GrantListEntry FromDafny_N3_com__N9_amazonaws__N3_kms__S9_GrantList__M6_member(software.amazon.cryptography.services.kms.internaldafny.types._IGrantListEntry value) { @@ -5941,7 +5941,7 @@ public static Amazon.KeyManagementService.Model.GrantListEntry FromDafny_N3_com_ } public static software.amazon.cryptography.services.kms.internaldafny.types._IGrantListEntry ToDafny_N3_com__N9_amazonaws__N3_kms__S9_GrantList__M6_member(Amazon.KeyManagementService.Model.GrantListEntry value) { - return ToDafny_N3_com__N9_amazonaws__N3_kms__S14_GrantListEntry(value); + return ToDafny_N3_com__N9_amazonaws__N3_kms__S14_GrantListEntry((Amazon.KeyManagementService.Model.GrantListEntry)value); } public static string FromDafny_N3_com__N9_amazonaws__N3_kms__S14_PolicyNameList__M6_member(Dafny.ISequence value) { @@ -5949,7 +5949,7 @@ public static string FromDafny_N3_com__N9_amazonaws__N3_kms__S14_PolicyNameList_ } public static Dafny.ISequence ToDafny_N3_com__N9_amazonaws__N3_kms__S14_PolicyNameList__M6_member(string value) { - return ToDafny_N3_com__N9_amazonaws__N3_kms__S14_PolicyNameType(value); + return ToDafny_N3_com__N9_amazonaws__N3_kms__S14_PolicyNameType((string)value); } public static Amazon.KeyManagementService.Model.RotationsListEntry FromDafny_N3_com__N9_amazonaws__N3_kms__S13_RotationsList__M6_member(software.amazon.cryptography.services.kms.internaldafny.types._IRotationsListEntry value) { @@ -5957,7 +5957,7 @@ public static Amazon.KeyManagementService.Model.RotationsListEntry FromDafny_N3_ } public static software.amazon.cryptography.services.kms.internaldafny.types._IRotationsListEntry ToDafny_N3_com__N9_amazonaws__N3_kms__S13_RotationsList__M6_member(Amazon.KeyManagementService.Model.RotationsListEntry value) { - return ToDafny_N3_com__N9_amazonaws__N3_kms__S18_RotationsListEntry(value); + return ToDafny_N3_com__N9_amazonaws__N3_kms__S18_RotationsListEntry((Amazon.KeyManagementService.Model.RotationsListEntry)value); } public static Amazon.KeyManagementService.Model.KeyListEntry FromDafny_N3_com__N9_amazonaws__N3_kms__S7_KeyList__M6_member(software.amazon.cryptography.services.kms.internaldafny.types._IKeyListEntry value) { @@ -5965,7 +5965,7 @@ public static Amazon.KeyManagementService.Model.KeyListEntry FromDafny_N3_com__N } public static software.amazon.cryptography.services.kms.internaldafny.types._IKeyListEntry ToDafny_N3_com__N9_amazonaws__N3_kms__S7_KeyList__M6_member(Amazon.KeyManagementService.Model.KeyListEntry value) { - return ToDafny_N3_com__N9_amazonaws__N3_kms__S12_KeyListEntry(value); + return ToDafny_N3_com__N9_amazonaws__N3_kms__S12_KeyListEntry((Amazon.KeyManagementService.Model.KeyListEntry)value); } public static string FromDafny_N3_com__N9_amazonaws__N3_kms__S10_TagKeyList__M6_member(Dafny.ISequence value) { @@ -5973,7 +5973,7 @@ public static string FromDafny_N3_com__N9_amazonaws__N3_kms__S10_TagKeyList__M6_ } public static Dafny.ISequence ToDafny_N3_com__N9_amazonaws__N3_kms__S10_TagKeyList__M6_member(string value) { - return ToDafny_N3_com__N9_amazonaws__N3_kms__S10_TagKeyType(value); + return ToDafny_N3_com__N9_amazonaws__N3_kms__S10_TagKeyType((string)value); } public static string FromDafny_N3_com__N9_amazonaws__N3_kms__S37_XksProxyAuthenticationAccessKeyIdType(Dafny.ISequence value) { @@ -6027,9 +6027,9 @@ public static Amazon.KeyManagementService.Model.MultiRegionConfiguration FromDaf public static software.amazon.cryptography.services.kms.internaldafny.types._IMultiRegionConfiguration ToDafny_N3_com__N9_amazonaws__N3_kms__S24_MultiRegionConfiguration(Amazon.KeyManagementService.Model.MultiRegionConfiguration value) { - Amazon.KeyManagementService.MultiRegionKeyType var_multiRegionKeyType = value.MultiRegionKeyType; - Amazon.KeyManagementService.Model.MultiRegionKey var_primaryKey = value.PrimaryKey; - System.Collections.Generic.List var_replicaKeys = value.ReplicaKeys; + Amazon.KeyManagementService.MultiRegionKeyType var_multiRegionKeyType = (Amazon.KeyManagementService.MultiRegionKeyType)value.MultiRegionKeyType; + Amazon.KeyManagementService.Model.MultiRegionKey var_primaryKey = (Amazon.KeyManagementService.Model.MultiRegionKey)value.PrimaryKey; + System.Collections.Generic.List var_replicaKeys = (System.Collections.Generic.List)value.ReplicaKeys; return new software.amazon.cryptography.services.kms.internaldafny.types.MultiRegionConfiguration(ToDafny_N3_com__N9_amazonaws__N3_kms__S24_MultiRegionConfiguration__M18_MultiRegionKeyType(var_multiRegionKeyType), ToDafny_N3_com__N9_amazonaws__N3_kms__S24_MultiRegionConfiguration__M10_PrimaryKey(var_primaryKey), ToDafny_N3_com__N9_amazonaws__N3_kms__S24_MultiRegionConfiguration__M11_ReplicaKeys(var_replicaKeys)); } public static System.Collections.Generic.List FromDafny_N3_com__N9_amazonaws__N3_kms__S20_MacAlgorithmSpecList(Dafny.ISequence value) @@ -6047,7 +6047,7 @@ public static Amazon.KeyManagementService.Model.XksKeyConfigurationType FromDafn public static software.amazon.cryptography.services.kms.internaldafny.types._IXksKeyConfigurationType ToDafny_N3_com__N9_amazonaws__N3_kms__S23_XksKeyConfigurationType(Amazon.KeyManagementService.Model.XksKeyConfigurationType value) { - string var_id = value.Id; + string var_id = (string)value.Id; return new software.amazon.cryptography.services.kms.internaldafny.types.XksKeyConfigurationType(ToDafny_N3_com__N9_amazonaws__N3_kms__S23_XksKeyConfigurationType__M2_Id(var_id)); } public static string FromDafny_N3_com__N9_amazonaws__N3_kms__S20_EncryptionContextKey(Dafny.ISequence value) @@ -6094,15 +6094,15 @@ public static Amazon.KeyManagementService.Model.CustomKeyStoresListEntry FromDaf public static software.amazon.cryptography.services.kms.internaldafny.types._ICustomKeyStoresListEntry ToDafny_N3_com__N9_amazonaws__N3_kms__S24_CustomKeyStoresListEntry(Amazon.KeyManagementService.Model.CustomKeyStoresListEntry value) { - string var_customKeyStoreId = value.CustomKeyStoreId; - string var_customKeyStoreName = value.CustomKeyStoreName; - string var_cloudHsmClusterId = value.CloudHsmClusterId; - string var_trustAnchorCertificate = value.TrustAnchorCertificate; - Amazon.KeyManagementService.ConnectionStateType var_connectionState = value.ConnectionState; - Amazon.KeyManagementService.ConnectionErrorCodeType var_connectionErrorCode = value.ConnectionErrorCode; - System.DateTime? var_creationDate = value.CreationDate; - Amazon.KeyManagementService.CustomKeyStoreType var_customKeyStoreType = value.CustomKeyStoreType; - Amazon.KeyManagementService.Model.XksProxyConfigurationType var_xksProxyConfiguration = value.XksProxyConfiguration; + string var_customKeyStoreId = (string)value.CustomKeyStoreId; + string var_customKeyStoreName = (string)value.CustomKeyStoreName; + string var_cloudHsmClusterId = (string)value.CloudHsmClusterId; + string var_trustAnchorCertificate = (string)value.TrustAnchorCertificate; + Amazon.KeyManagementService.ConnectionStateType var_connectionState = (Amazon.KeyManagementService.ConnectionStateType)value.ConnectionState; + Amazon.KeyManagementService.ConnectionErrorCodeType var_connectionErrorCode = (Amazon.KeyManagementService.ConnectionErrorCodeType)value.ConnectionErrorCode; + System.DateTime? var_creationDate = (System.DateTime?)value.CreationDate; + Amazon.KeyManagementService.CustomKeyStoreType var_customKeyStoreType = (Amazon.KeyManagementService.CustomKeyStoreType)value.CustomKeyStoreType; + Amazon.KeyManagementService.Model.XksProxyConfigurationType var_xksProxyConfiguration = (Amazon.KeyManagementService.Model.XksProxyConfigurationType)value.XksProxyConfiguration; return new software.amazon.cryptography.services.kms.internaldafny.types.CustomKeyStoresListEntry(ToDafny_N3_com__N9_amazonaws__N3_kms__S24_CustomKeyStoresListEntry__M16_CustomKeyStoreId(var_customKeyStoreId), ToDafny_N3_com__N9_amazonaws__N3_kms__S24_CustomKeyStoresListEntry__M18_CustomKeyStoreName(var_customKeyStoreName), ToDafny_N3_com__N9_amazonaws__N3_kms__S24_CustomKeyStoresListEntry__M17_CloudHsmClusterId(var_cloudHsmClusterId), ToDafny_N3_com__N9_amazonaws__N3_kms__S24_CustomKeyStoresListEntry__M22_TrustAnchorCertificate(var_trustAnchorCertificate), ToDafny_N3_com__N9_amazonaws__N3_kms__S24_CustomKeyStoresListEntry__M15_ConnectionState(var_connectionState), ToDafny_N3_com__N9_amazonaws__N3_kms__S24_CustomKeyStoresListEntry__M19_ConnectionErrorCode(var_connectionErrorCode), ToDafny_N3_com__N9_amazonaws__N3_kms__S24_CustomKeyStoresListEntry__M12_CreationDate(var_creationDate), ToDafny_N3_com__N9_amazonaws__N3_kms__S24_CustomKeyStoresListEntry__M18_CustomKeyStoreType(var_customKeyStoreType), ToDafny_N3_com__N9_amazonaws__N3_kms__S24_CustomKeyStoresListEntry__M21_XksProxyConfiguration(var_xksProxyConfiguration)); } public static Amazon.KeyManagementService.Model.AliasListEntry FromDafny_N3_com__N9_amazonaws__N3_kms__S14_AliasListEntry(software.amazon.cryptography.services.kms.internaldafny.types._IAliasListEntry value) @@ -6116,11 +6116,11 @@ public static Amazon.KeyManagementService.Model.AliasListEntry FromDafny_N3_com_ public static software.amazon.cryptography.services.kms.internaldafny.types._IAliasListEntry ToDafny_N3_com__N9_amazonaws__N3_kms__S14_AliasListEntry(Amazon.KeyManagementService.Model.AliasListEntry value) { - string var_aliasName = value.AliasName; - string var_aliasArn = value.AliasArn; - string var_targetKeyId = value.TargetKeyId; - System.DateTime? var_creationDate = value.CreationDate; - System.DateTime? var_lastUpdatedDate = value.LastUpdatedDate; + string var_aliasName = (string)value.AliasName; + string var_aliasArn = (string)value.AliasArn; + string var_targetKeyId = (string)value.TargetKeyId; + System.DateTime? var_creationDate = (System.DateTime?)value.CreationDate; + System.DateTime? var_lastUpdatedDate = (System.DateTime?)value.LastUpdatedDate; return new software.amazon.cryptography.services.kms.internaldafny.types.AliasListEntry(ToDafny_N3_com__N9_amazonaws__N3_kms__S14_AliasListEntry__M9_AliasName(var_aliasName), ToDafny_N3_com__N9_amazonaws__N3_kms__S14_AliasListEntry__M8_AliasArn(var_aliasArn), ToDafny_N3_com__N9_amazonaws__N3_kms__S14_AliasListEntry__M11_TargetKeyId(var_targetKeyId), ToDafny_N3_com__N9_amazonaws__N3_kms__S14_AliasListEntry__M12_CreationDate(var_creationDate), ToDafny_N3_com__N9_amazonaws__N3_kms__S14_AliasListEntry__M15_LastUpdatedDate(var_lastUpdatedDate)); } public static Amazon.KeyManagementService.Model.GrantListEntry FromDafny_N3_com__N9_amazonaws__N3_kms__S14_GrantListEntry(software.amazon.cryptography.services.kms.internaldafny.types._IGrantListEntry value) @@ -6138,15 +6138,15 @@ public static Amazon.KeyManagementService.Model.GrantListEntry FromDafny_N3_com_ public static software.amazon.cryptography.services.kms.internaldafny.types._IGrantListEntry ToDafny_N3_com__N9_amazonaws__N3_kms__S14_GrantListEntry(Amazon.KeyManagementService.Model.GrantListEntry value) { - string var_keyId = value.KeyId; - string var_grantId = value.GrantId; - string var_name = value.Name; - System.DateTime? var_creationDate = value.CreationDate; - string var_granteePrincipal = value.GranteePrincipal; - string var_retiringPrincipal = value.RetiringPrincipal; - string var_issuingAccount = value.IssuingAccount; - System.Collections.Generic.List var_operations = value.Operations; - Amazon.KeyManagementService.Model.GrantConstraints var_constraints = value.Constraints; + string var_keyId = (string)value.KeyId; + string var_grantId = (string)value.GrantId; + string var_name = (string)value.Name; + System.DateTime? var_creationDate = (System.DateTime?)value.CreationDate; + string var_granteePrincipal = (string)value.GranteePrincipal; + string var_retiringPrincipal = (string)value.RetiringPrincipal; + string var_issuingAccount = (string)value.IssuingAccount; + System.Collections.Generic.List var_operations = (System.Collections.Generic.List)value.Operations; + Amazon.KeyManagementService.Model.GrantConstraints var_constraints = (Amazon.KeyManagementService.Model.GrantConstraints)value.Constraints; return new software.amazon.cryptography.services.kms.internaldafny.types.GrantListEntry(ToDafny_N3_com__N9_amazonaws__N3_kms__S14_GrantListEntry__M5_KeyId(var_keyId), ToDafny_N3_com__N9_amazonaws__N3_kms__S14_GrantListEntry__M7_GrantId(var_grantId), ToDafny_N3_com__N9_amazonaws__N3_kms__S14_GrantListEntry__M4_Name(var_name), ToDafny_N3_com__N9_amazonaws__N3_kms__S14_GrantListEntry__M12_CreationDate(var_creationDate), ToDafny_N3_com__N9_amazonaws__N3_kms__S14_GrantListEntry__M16_GranteePrincipal(var_granteePrincipal), ToDafny_N3_com__N9_amazonaws__N3_kms__S14_GrantListEntry__M17_RetiringPrincipal(var_retiringPrincipal), ToDafny_N3_com__N9_amazonaws__N3_kms__S14_GrantListEntry__M14_IssuingAccount(var_issuingAccount), ToDafny_N3_com__N9_amazonaws__N3_kms__S14_GrantListEntry__M10_Operations(var_operations), ToDafny_N3_com__N9_amazonaws__N3_kms__S14_GrantListEntry__M11_Constraints(var_constraints)); } public static Amazon.KeyManagementService.Model.RotationsListEntry FromDafny_N3_com__N9_amazonaws__N3_kms__S18_RotationsListEntry(software.amazon.cryptography.services.kms.internaldafny.types._IRotationsListEntry value) @@ -6158,9 +6158,9 @@ public static Amazon.KeyManagementService.Model.RotationsListEntry FromDafny_N3_ public static software.amazon.cryptography.services.kms.internaldafny.types._IRotationsListEntry ToDafny_N3_com__N9_amazonaws__N3_kms__S18_RotationsListEntry(Amazon.KeyManagementService.Model.RotationsListEntry value) { - string var_keyId = value.KeyId; - System.DateTime? var_rotationDate = value.RotationDate; - Amazon.KeyManagementService.RotationType var_rotationType = value.RotationType; + string var_keyId = (string)value.KeyId; + System.DateTime? var_rotationDate = (System.DateTime?)value.RotationDate; + Amazon.KeyManagementService.RotationType var_rotationType = (Amazon.KeyManagementService.RotationType)value.RotationType; return new software.amazon.cryptography.services.kms.internaldafny.types.RotationsListEntry(ToDafny_N3_com__N9_amazonaws__N3_kms__S18_RotationsListEntry__M5_KeyId(var_keyId), ToDafny_N3_com__N9_amazonaws__N3_kms__S18_RotationsListEntry__M12_RotationDate(var_rotationDate), ToDafny_N3_com__N9_amazonaws__N3_kms__S18_RotationsListEntry__M12_RotationType(var_rotationType)); } public static Amazon.KeyManagementService.Model.KeyListEntry FromDafny_N3_com__N9_amazonaws__N3_kms__S12_KeyListEntry(software.amazon.cryptography.services.kms.internaldafny.types._IKeyListEntry value) @@ -6171,8 +6171,8 @@ public static Amazon.KeyManagementService.Model.KeyListEntry FromDafny_N3_com__N public static software.amazon.cryptography.services.kms.internaldafny.types._IKeyListEntry ToDafny_N3_com__N9_amazonaws__N3_kms__S12_KeyListEntry(Amazon.KeyManagementService.Model.KeyListEntry value) { - string var_keyId = value.KeyId; - string var_keyArn = value.KeyArn; + string var_keyId = (string)value.KeyId; + string var_keyArn = (string)value.KeyArn; return new software.amazon.cryptography.services.kms.internaldafny.types.KeyListEntry(ToDafny_N3_com__N9_amazonaws__N3_kms__S12_KeyListEntry__M5_KeyId(var_keyId), ToDafny_N3_com__N9_amazonaws__N3_kms__S12_KeyListEntry__M6_KeyArn(var_keyArn)); } public static string FromDafny_N3_com__N9_amazonaws__N3_kms__S10_TagKeyType(Dafny.ISequence value) @@ -6189,7 +6189,7 @@ public static string FromDafny_N3_com__N9_amazonaws__N3_kms__S3_Tag__M6_TagKey(D } public static Dafny.ISequence ToDafny_N3_com__N9_amazonaws__N3_kms__S3_Tag__M6_TagKey(string value) { - return ToDafny_N3_com__N9_amazonaws__N3_kms__S10_TagKeyType(value); + return ToDafny_N3_com__N9_amazonaws__N3_kms__S10_TagKeyType((string)value); } public static string FromDafny_N3_com__N9_amazonaws__N3_kms__S3_Tag__M8_TagValue(Dafny.ISequence value) { @@ -6197,7 +6197,7 @@ public static string FromDafny_N3_com__N9_amazonaws__N3_kms__S3_Tag__M8_TagValue } public static Dafny.ISequence ToDafny_N3_com__N9_amazonaws__N3_kms__S3_Tag__M8_TagValue(string value) { - return ToDafny_N3_com__N9_amazonaws__N3_kms__S12_TagValueType(value); + return ToDafny_N3_com__N9_amazonaws__N3_kms__S12_TagValueType((string)value); } public static Amazon.KeyManagementService.MultiRegionKeyType FromDafny_N3_com__N9_amazonaws__N3_kms__S24_MultiRegionConfiguration__M18_MultiRegionKeyType(Wrappers_Compile._IOption value) { @@ -6229,7 +6229,7 @@ public static Amazon.KeyManagementService.MacAlgorithmSpec FromDafny_N3_com__N9_ } public static software.amazon.cryptography.services.kms.internaldafny.types._IMacAlgorithmSpec ToDafny_N3_com__N9_amazonaws__N3_kms__S20_MacAlgorithmSpecList__M6_member(Amazon.KeyManagementService.MacAlgorithmSpec value) { - return ToDafny_N3_com__N9_amazonaws__N3_kms__S16_MacAlgorithmSpec(value); + return ToDafny_N3_com__N9_amazonaws__N3_kms__S16_MacAlgorithmSpec((Amazon.KeyManagementService.MacAlgorithmSpec)value); } public static string FromDafny_N3_com__N9_amazonaws__N3_kms__S23_XksKeyConfigurationType__M2_Id(Wrappers_Compile._IOption> value) { @@ -6479,8 +6479,8 @@ public static Amazon.KeyManagementService.Model.MultiRegionKey FromDafny_N3_com_ public static software.amazon.cryptography.services.kms.internaldafny.types._IMultiRegionKey ToDafny_N3_com__N9_amazonaws__N3_kms__S14_MultiRegionKey(Amazon.KeyManagementService.Model.MultiRegionKey value) { - string var_arn = value.Arn; - string var_region = value.Region; + string var_arn = (string)value.Arn; + string var_region = (string)value.Region; return new software.amazon.cryptography.services.kms.internaldafny.types.MultiRegionKey(ToDafny_N3_com__N9_amazonaws__N3_kms__S14_MultiRegionKey__M3_Arn(var_arn), ToDafny_N3_com__N9_amazonaws__N3_kms__S14_MultiRegionKey__M6_Region(var_region)); } public static System.Collections.Generic.List FromDafny_N3_com__N9_amazonaws__N3_kms__S18_MultiRegionKeyList(Dafny.ISequence value) @@ -6502,11 +6502,11 @@ public static Amazon.KeyManagementService.Model.XksProxyConfigurationType FromDa public static software.amazon.cryptography.services.kms.internaldafny.types._IXksProxyConfigurationType ToDafny_N3_com__N9_amazonaws__N3_kms__S25_XksProxyConfigurationType(Amazon.KeyManagementService.Model.XksProxyConfigurationType value) { - Amazon.KeyManagementService.XksProxyConnectivityType var_connectivity = value.Connectivity; - string var_accessKeyId = value.AccessKeyId; - string var_uriEndpoint = value.UriEndpoint; - string var_uriPath = value.UriPath; - string var_vpcEndpointServiceName = value.VpcEndpointServiceName; + Amazon.KeyManagementService.XksProxyConnectivityType var_connectivity = (Amazon.KeyManagementService.XksProxyConnectivityType)value.Connectivity; + string var_accessKeyId = (string)value.AccessKeyId; + string var_uriEndpoint = (string)value.UriEndpoint; + string var_uriPath = (string)value.UriPath; + string var_vpcEndpointServiceName = (string)value.VpcEndpointServiceName; return new software.amazon.cryptography.services.kms.internaldafny.types.XksProxyConfigurationType(ToDafny_N3_com__N9_amazonaws__N3_kms__S25_XksProxyConfigurationType__M12_Connectivity(var_connectivity), ToDafny_N3_com__N9_amazonaws__N3_kms__S25_XksProxyConfigurationType__M11_AccessKeyId(var_accessKeyId), ToDafny_N3_com__N9_amazonaws__N3_kms__S25_XksProxyConfigurationType__M11_UriEndpoint(var_uriEndpoint), ToDafny_N3_com__N9_amazonaws__N3_kms__S25_XksProxyConfigurationType__M7_UriPath(var_uriPath), ToDafny_N3_com__N9_amazonaws__N3_kms__S25_XksProxyConfigurationType__M22_VpcEndpointServiceName(var_vpcEndpointServiceName)); } public static string FromDafny_N3_com__N9_amazonaws__N3_kms__S14_MultiRegionKey__M3_Arn(Wrappers_Compile._IOption> value) @@ -6531,7 +6531,7 @@ public static Amazon.KeyManagementService.Model.MultiRegionKey FromDafny_N3_com_ } public static software.amazon.cryptography.services.kms.internaldafny.types._IMultiRegionKey ToDafny_N3_com__N9_amazonaws__N3_kms__S18_MultiRegionKeyList__M6_member(Amazon.KeyManagementService.Model.MultiRegionKey value) { - return ToDafny_N3_com__N9_amazonaws__N3_kms__S14_MultiRegionKey(value); + return ToDafny_N3_com__N9_amazonaws__N3_kms__S14_MultiRegionKey((Amazon.KeyManagementService.Model.MultiRegionKey)value); } public static Amazon.KeyManagementService.XksProxyConnectivityType FromDafny_N3_com__N9_amazonaws__N3_kms__S25_XksProxyConfigurationType__M12_Connectivity(Wrappers_Compile._IOption value) { diff --git a/TestVectorsAwsCryptographicMaterialProviders/runtimes/net/Generated/KeyVectors/TypeConversion.cs b/TestVectorsAwsCryptographicMaterialProviders/runtimes/net/Generated/KeyVectors/TypeConversion.cs index d37b12d1e..faeb3eee6 100644 --- a/TestVectorsAwsCryptographicMaterialProviders/runtimes/net/Generated/KeyVectors/TypeConversion.cs +++ b/TestVectorsAwsCryptographicMaterialProviders/runtimes/net/Generated/KeyVectors/TypeConversion.cs @@ -64,62 +64,62 @@ public static AWS.Cryptography.MaterialProvidersTestVectorKeys.KeyDescription Fr software.amazon.cryptography.materialproviderstestvectorkeys.internaldafny.types.KeyDescription concrete = (software.amazon.cryptography.materialproviderstestvectorkeys.internaldafny.types.KeyDescription)value; var converted = new AWS.Cryptography.MaterialProvidersTestVectorKeys.KeyDescription(); if (value.is_Kms) { - converted.Kms = FromDafny_N3_aws__N12_cryptography__N31_materialProvidersTestVectorKeys__S14_KeyDescription__M3_Kms(concrete.dtor_Kms); + converted.Kms = (AWS.Cryptography.MaterialProvidersTestVectorKeys.KMSInfo)(FromDafny_N3_aws__N12_cryptography__N31_materialProvidersTestVectorKeys__S14_KeyDescription__M3_Kms(concrete.dtor_Kms)); return converted; } if (value.is_KmsMrk) { - converted.KmsMrk = FromDafny_N3_aws__N12_cryptography__N31_materialProvidersTestVectorKeys__S14_KeyDescription__M6_KmsMrk(concrete.dtor_KmsMrk); + converted.KmsMrk = (AWS.Cryptography.MaterialProvidersTestVectorKeys.KmsMrkAware)(FromDafny_N3_aws__N12_cryptography__N31_materialProvidersTestVectorKeys__S14_KeyDescription__M6_KmsMrk(concrete.dtor_KmsMrk)); return converted; } if (value.is_KmsMrkDiscovery) { - converted.KmsMrkDiscovery = FromDafny_N3_aws__N12_cryptography__N31_materialProvidersTestVectorKeys__S14_KeyDescription__M15_KmsMrkDiscovery(concrete.dtor_KmsMrkDiscovery); + converted.KmsMrkDiscovery = (AWS.Cryptography.MaterialProvidersTestVectorKeys.KmsMrkAwareDiscovery)(FromDafny_N3_aws__N12_cryptography__N31_materialProvidersTestVectorKeys__S14_KeyDescription__M15_KmsMrkDiscovery(concrete.dtor_KmsMrkDiscovery)); return converted; } if (value.is_RSA) { - converted.RSA = FromDafny_N3_aws__N12_cryptography__N31_materialProvidersTestVectorKeys__S14_KeyDescription__M3_RSA(concrete.dtor_RSA); + converted.RSA = (AWS.Cryptography.MaterialProvidersTestVectorKeys.RawRSA)(FromDafny_N3_aws__N12_cryptography__N31_materialProvidersTestVectorKeys__S14_KeyDescription__M3_RSA(concrete.dtor_RSA)); return converted; } if (value.is_AES) { - converted.AES = FromDafny_N3_aws__N12_cryptography__N31_materialProvidersTestVectorKeys__S14_KeyDescription__M3_AES(concrete.dtor_AES); + converted.AES = (AWS.Cryptography.MaterialProvidersTestVectorKeys.RawAES)(FromDafny_N3_aws__N12_cryptography__N31_materialProvidersTestVectorKeys__S14_KeyDescription__M3_AES(concrete.dtor_AES)); return converted; } if (value.is_ECDH) { - converted.ECDH = FromDafny_N3_aws__N12_cryptography__N31_materialProvidersTestVectorKeys__S14_KeyDescription__M4_ECDH(concrete.dtor_ECDH); + converted.ECDH = (AWS.Cryptography.MaterialProvidersTestVectorKeys.RawEcdh)(FromDafny_N3_aws__N12_cryptography__N31_materialProvidersTestVectorKeys__S14_KeyDescription__M4_ECDH(concrete.dtor_ECDH)); return converted; } if (value.is_Static) { - converted.Static = FromDafny_N3_aws__N12_cryptography__N31_materialProvidersTestVectorKeys__S14_KeyDescription__M6_Static(concrete.dtor_Static); + converted.Static = (AWS.Cryptography.MaterialProvidersTestVectorKeys.StaticKeyring)(FromDafny_N3_aws__N12_cryptography__N31_materialProvidersTestVectorKeys__S14_KeyDescription__M6_Static(concrete.dtor_Static)); return converted; } if (value.is_KmsRsa) { - converted.KmsRsa = FromDafny_N3_aws__N12_cryptography__N31_materialProvidersTestVectorKeys__S14_KeyDescription__M6_KmsRsa(concrete.dtor_KmsRsa); + converted.KmsRsa = (AWS.Cryptography.MaterialProvidersTestVectorKeys.KmsRsaKeyring)(FromDafny_N3_aws__N12_cryptography__N31_materialProvidersTestVectorKeys__S14_KeyDescription__M6_KmsRsa(concrete.dtor_KmsRsa)); return converted; } if (value.is_KmsECDH) { - converted.KmsECDH = FromDafny_N3_aws__N12_cryptography__N31_materialProvidersTestVectorKeys__S14_KeyDescription__M7_KmsECDH(concrete.dtor_KmsECDH); + converted.KmsECDH = (AWS.Cryptography.MaterialProvidersTestVectorKeys.KmsEcdhKeyring)(FromDafny_N3_aws__N12_cryptography__N31_materialProvidersTestVectorKeys__S14_KeyDescription__M7_KmsECDH(concrete.dtor_KmsECDH)); return converted; } if (value.is_Hierarchy) { - converted.Hierarchy = FromDafny_N3_aws__N12_cryptography__N31_materialProvidersTestVectorKeys__S14_KeyDescription__M9_Hierarchy(concrete.dtor_Hierarchy); + converted.Hierarchy = (AWS.Cryptography.MaterialProvidersTestVectorKeys.HierarchyKeyring)(FromDafny_N3_aws__N12_cryptography__N31_materialProvidersTestVectorKeys__S14_KeyDescription__M9_Hierarchy(concrete.dtor_Hierarchy)); return converted; } if (value.is_Multi) { - converted.Multi = FromDafny_N3_aws__N12_cryptography__N31_materialProvidersTestVectorKeys__S14_KeyDescription__M5_Multi(concrete.dtor_Multi); + converted.Multi = (AWS.Cryptography.MaterialProvidersTestVectorKeys.MultiKeyring)(FromDafny_N3_aws__N12_cryptography__N31_materialProvidersTestVectorKeys__S14_KeyDescription__M5_Multi(concrete.dtor_Multi)); return converted; } if (value.is_RequiredEncryptionContext) { - converted.RequiredEncryptionContext = FromDafny_N3_aws__N12_cryptography__N31_materialProvidersTestVectorKeys__S14_KeyDescription__M25_RequiredEncryptionContext(concrete.dtor_RequiredEncryptionContext); + converted.RequiredEncryptionContext = (AWS.Cryptography.MaterialProvidersTestVectorKeys.RequiredEncryptionContextCMM)(FromDafny_N3_aws__N12_cryptography__N31_materialProvidersTestVectorKeys__S14_KeyDescription__M25_RequiredEncryptionContext(concrete.dtor_RequiredEncryptionContext)); return converted; } throw new System.ArgumentException("Invalid AWS.Cryptography.MaterialProvidersTestVectorKeys.KeyDescription state"); @@ -246,7 +246,7 @@ public static AWS.Cryptography.MaterialProviders.IKeyring FromDafny_N3_aws__N12_ } public static software.amazon.cryptography.materialproviders.internaldafny.types.IKeyring ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S19_CreateKeyringOutput__M7_keyring(AWS.Cryptography.MaterialProviders.IKeyring value) { - return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S16_KeyringReference(value); + return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S16_KeyringReference((AWS.Cryptography.MaterialProviders.IKeyring)value); } public static AWS.Cryptography.MaterialProviders.ICryptographicMaterialsManager FromDafny_N3_aws__N12_cryptography__N31_materialProvidersTestVectorKeys__S32_CreateWrappedTestVectorCmmOutput__M3_cmm(software.amazon.cryptography.materialproviders.internaldafny.types.ICryptographicMaterialsManager value) { @@ -254,7 +254,7 @@ public static AWS.Cryptography.MaterialProviders.ICryptographicMaterialsManager } public static software.amazon.cryptography.materialproviders.internaldafny.types.ICryptographicMaterialsManager ToDafny_N3_aws__N12_cryptography__N31_materialProvidersTestVectorKeys__S32_CreateWrappedTestVectorCmmOutput__M3_cmm(AWS.Cryptography.MaterialProviders.ICryptographicMaterialsManager value) { - return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S38_CryptographicMaterialsManagerReference(value); + return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S38_CryptographicMaterialsManagerReference((AWS.Cryptography.MaterialProviders.ICryptographicMaterialsManager)value); } public static System.IO.MemoryStream FromDafny_N3_aws__N12_cryptography__N31_materialProvidersTestVectorKeys__S22_GetKeyDescriptionInput__M4_json(Dafny.ISequence value) { @@ -262,7 +262,7 @@ public static System.IO.MemoryStream FromDafny_N3_aws__N12_cryptography__N31_mat } public static Dafny.ISequence ToDafny_N3_aws__N12_cryptography__N31_materialProvidersTestVectorKeys__S22_GetKeyDescriptionInput__M4_json(System.IO.MemoryStream value) { - return ToDafny_N6_smithy__N3_api__S4_Blob(value); + return ToDafny_N6_smithy__N3_api__S4_Blob((System.IO.MemoryStream)value); } public static AWS.Cryptography.MaterialProvidersTestVectorKeys.KeyDescription FromDafny_N3_aws__N12_cryptography__N31_materialProvidersTestVectorKeys__S23_GetKeyDescriptionOutput__M14_keyDescription(software.amazon.cryptography.materialproviderstestvectorkeys.internaldafny.types._IKeyDescription value) { @@ -270,7 +270,7 @@ public static AWS.Cryptography.MaterialProvidersTestVectorKeys.KeyDescription Fr } public static software.amazon.cryptography.materialproviderstestvectorkeys.internaldafny.types._IKeyDescription ToDafny_N3_aws__N12_cryptography__N31_materialProvidersTestVectorKeys__S23_GetKeyDescriptionOutput__M14_keyDescription(AWS.Cryptography.MaterialProvidersTestVectorKeys.KeyDescription value) { - return ToDafny_N3_aws__N12_cryptography__N31_materialProvidersTestVectorKeys__S14_KeyDescription(value); + return ToDafny_N3_aws__N12_cryptography__N31_materialProvidersTestVectorKeys__S14_KeyDescription((AWS.Cryptography.MaterialProvidersTestVectorKeys.KeyDescription)value); } public static AWS.Cryptography.MaterialProvidersTestVectorKeys.KMSInfo FromDafny_N3_aws__N12_cryptography__N31_materialProvidersTestVectorKeys__S14_KeyDescription__M3_Kms(software.amazon.cryptography.materialproviderstestvectorkeys.internaldafny.types._IKMSInfo value) { @@ -278,7 +278,7 @@ public static AWS.Cryptography.MaterialProvidersTestVectorKeys.KMSInfo FromDafny } public static software.amazon.cryptography.materialproviderstestvectorkeys.internaldafny.types._IKMSInfo ToDafny_N3_aws__N12_cryptography__N31_materialProvidersTestVectorKeys__S14_KeyDescription__M3_Kms(AWS.Cryptography.MaterialProvidersTestVectorKeys.KMSInfo value) { - return ToDafny_N3_aws__N12_cryptography__N31_materialProvidersTestVectorKeys__S7_KMSInfo(value); + return ToDafny_N3_aws__N12_cryptography__N31_materialProvidersTestVectorKeys__S7_KMSInfo((AWS.Cryptography.MaterialProvidersTestVectorKeys.KMSInfo)value); } public static AWS.Cryptography.MaterialProvidersTestVectorKeys.KmsMrkAware FromDafny_N3_aws__N12_cryptography__N31_materialProvidersTestVectorKeys__S14_KeyDescription__M6_KmsMrk(software.amazon.cryptography.materialproviderstestvectorkeys.internaldafny.types._IKmsMrkAware value) { @@ -286,7 +286,7 @@ public static AWS.Cryptography.MaterialProvidersTestVectorKeys.KmsMrkAware FromD } public static software.amazon.cryptography.materialproviderstestvectorkeys.internaldafny.types._IKmsMrkAware ToDafny_N3_aws__N12_cryptography__N31_materialProvidersTestVectorKeys__S14_KeyDescription__M6_KmsMrk(AWS.Cryptography.MaterialProvidersTestVectorKeys.KmsMrkAware value) { - return ToDafny_N3_aws__N12_cryptography__N31_materialProvidersTestVectorKeys__S11_KmsMrkAware(value); + return ToDafny_N3_aws__N12_cryptography__N31_materialProvidersTestVectorKeys__S11_KmsMrkAware((AWS.Cryptography.MaterialProvidersTestVectorKeys.KmsMrkAware)value); } public static AWS.Cryptography.MaterialProvidersTestVectorKeys.KmsMrkAwareDiscovery FromDafny_N3_aws__N12_cryptography__N31_materialProvidersTestVectorKeys__S14_KeyDescription__M15_KmsMrkDiscovery(software.amazon.cryptography.materialproviderstestvectorkeys.internaldafny.types._IKmsMrkAwareDiscovery value) { @@ -294,7 +294,7 @@ public static AWS.Cryptography.MaterialProvidersTestVectorKeys.KmsMrkAwareDiscov } public static software.amazon.cryptography.materialproviderstestvectorkeys.internaldafny.types._IKmsMrkAwareDiscovery ToDafny_N3_aws__N12_cryptography__N31_materialProvidersTestVectorKeys__S14_KeyDescription__M15_KmsMrkDiscovery(AWS.Cryptography.MaterialProvidersTestVectorKeys.KmsMrkAwareDiscovery value) { - return ToDafny_N3_aws__N12_cryptography__N31_materialProvidersTestVectorKeys__S20_KmsMrkAwareDiscovery(value); + return ToDafny_N3_aws__N12_cryptography__N31_materialProvidersTestVectorKeys__S20_KmsMrkAwareDiscovery((AWS.Cryptography.MaterialProvidersTestVectorKeys.KmsMrkAwareDiscovery)value); } public static AWS.Cryptography.MaterialProvidersTestVectorKeys.RawRSA FromDafny_N3_aws__N12_cryptography__N31_materialProvidersTestVectorKeys__S14_KeyDescription__M3_RSA(software.amazon.cryptography.materialproviderstestvectorkeys.internaldafny.types._IRawRSA value) { @@ -302,7 +302,7 @@ public static AWS.Cryptography.MaterialProvidersTestVectorKeys.RawRSA FromDafny_ } public static software.amazon.cryptography.materialproviderstestvectorkeys.internaldafny.types._IRawRSA ToDafny_N3_aws__N12_cryptography__N31_materialProvidersTestVectorKeys__S14_KeyDescription__M3_RSA(AWS.Cryptography.MaterialProvidersTestVectorKeys.RawRSA value) { - return ToDafny_N3_aws__N12_cryptography__N31_materialProvidersTestVectorKeys__S6_RawRSA(value); + return ToDafny_N3_aws__N12_cryptography__N31_materialProvidersTestVectorKeys__S6_RawRSA((AWS.Cryptography.MaterialProvidersTestVectorKeys.RawRSA)value); } public static AWS.Cryptography.MaterialProvidersTestVectorKeys.RawAES FromDafny_N3_aws__N12_cryptography__N31_materialProvidersTestVectorKeys__S14_KeyDescription__M3_AES(software.amazon.cryptography.materialproviderstestvectorkeys.internaldafny.types._IRawAES value) { @@ -310,7 +310,7 @@ public static AWS.Cryptography.MaterialProvidersTestVectorKeys.RawAES FromDafny_ } public static software.amazon.cryptography.materialproviderstestvectorkeys.internaldafny.types._IRawAES ToDafny_N3_aws__N12_cryptography__N31_materialProvidersTestVectorKeys__S14_KeyDescription__M3_AES(AWS.Cryptography.MaterialProvidersTestVectorKeys.RawAES value) { - return ToDafny_N3_aws__N12_cryptography__N31_materialProvidersTestVectorKeys__S6_RawAES(value); + return ToDafny_N3_aws__N12_cryptography__N31_materialProvidersTestVectorKeys__S6_RawAES((AWS.Cryptography.MaterialProvidersTestVectorKeys.RawAES)value); } public static AWS.Cryptography.MaterialProvidersTestVectorKeys.RawEcdh FromDafny_N3_aws__N12_cryptography__N31_materialProvidersTestVectorKeys__S14_KeyDescription__M4_ECDH(software.amazon.cryptography.materialproviderstestvectorkeys.internaldafny.types._IRawEcdh value) { @@ -318,7 +318,7 @@ public static AWS.Cryptography.MaterialProvidersTestVectorKeys.RawEcdh FromDafny } public static software.amazon.cryptography.materialproviderstestvectorkeys.internaldafny.types._IRawEcdh ToDafny_N3_aws__N12_cryptography__N31_materialProvidersTestVectorKeys__S14_KeyDescription__M4_ECDH(AWS.Cryptography.MaterialProvidersTestVectorKeys.RawEcdh value) { - return ToDafny_N3_aws__N12_cryptography__N31_materialProvidersTestVectorKeys__S7_RawEcdh(value); + return ToDafny_N3_aws__N12_cryptography__N31_materialProvidersTestVectorKeys__S7_RawEcdh((AWS.Cryptography.MaterialProvidersTestVectorKeys.RawEcdh)value); } public static AWS.Cryptography.MaterialProvidersTestVectorKeys.StaticKeyring FromDafny_N3_aws__N12_cryptography__N31_materialProvidersTestVectorKeys__S14_KeyDescription__M6_Static(software.amazon.cryptography.materialproviderstestvectorkeys.internaldafny.types._IStaticKeyring value) { @@ -326,7 +326,7 @@ public static AWS.Cryptography.MaterialProvidersTestVectorKeys.StaticKeyring Fro } public static software.amazon.cryptography.materialproviderstestvectorkeys.internaldafny.types._IStaticKeyring ToDafny_N3_aws__N12_cryptography__N31_materialProvidersTestVectorKeys__S14_KeyDescription__M6_Static(AWS.Cryptography.MaterialProvidersTestVectorKeys.StaticKeyring value) { - return ToDafny_N3_aws__N12_cryptography__N31_materialProvidersTestVectorKeys__S13_StaticKeyring(value); + return ToDafny_N3_aws__N12_cryptography__N31_materialProvidersTestVectorKeys__S13_StaticKeyring((AWS.Cryptography.MaterialProvidersTestVectorKeys.StaticKeyring)value); } public static AWS.Cryptography.MaterialProvidersTestVectorKeys.KmsRsaKeyring FromDafny_N3_aws__N12_cryptography__N31_materialProvidersTestVectorKeys__S14_KeyDescription__M6_KmsRsa(software.amazon.cryptography.materialproviderstestvectorkeys.internaldafny.types._IKmsRsaKeyring value) { @@ -334,7 +334,7 @@ public static AWS.Cryptography.MaterialProvidersTestVectorKeys.KmsRsaKeyring Fro } public static software.amazon.cryptography.materialproviderstestvectorkeys.internaldafny.types._IKmsRsaKeyring ToDafny_N3_aws__N12_cryptography__N31_materialProvidersTestVectorKeys__S14_KeyDescription__M6_KmsRsa(AWS.Cryptography.MaterialProvidersTestVectorKeys.KmsRsaKeyring value) { - return ToDafny_N3_aws__N12_cryptography__N31_materialProvidersTestVectorKeys__S13_KmsRsaKeyring(value); + return ToDafny_N3_aws__N12_cryptography__N31_materialProvidersTestVectorKeys__S13_KmsRsaKeyring((AWS.Cryptography.MaterialProvidersTestVectorKeys.KmsRsaKeyring)value); } public static AWS.Cryptography.MaterialProvidersTestVectorKeys.KmsEcdhKeyring FromDafny_N3_aws__N12_cryptography__N31_materialProvidersTestVectorKeys__S14_KeyDescription__M7_KmsECDH(software.amazon.cryptography.materialproviderstestvectorkeys.internaldafny.types._IKmsEcdhKeyring value) { @@ -342,7 +342,7 @@ public static AWS.Cryptography.MaterialProvidersTestVectorKeys.KmsEcdhKeyring Fr } public static software.amazon.cryptography.materialproviderstestvectorkeys.internaldafny.types._IKmsEcdhKeyring ToDafny_N3_aws__N12_cryptography__N31_materialProvidersTestVectorKeys__S14_KeyDescription__M7_KmsECDH(AWS.Cryptography.MaterialProvidersTestVectorKeys.KmsEcdhKeyring value) { - return ToDafny_N3_aws__N12_cryptography__N31_materialProvidersTestVectorKeys__S14_KmsEcdhKeyring(value); + return ToDafny_N3_aws__N12_cryptography__N31_materialProvidersTestVectorKeys__S14_KmsEcdhKeyring((AWS.Cryptography.MaterialProvidersTestVectorKeys.KmsEcdhKeyring)value); } public static AWS.Cryptography.MaterialProvidersTestVectorKeys.HierarchyKeyring FromDafny_N3_aws__N12_cryptography__N31_materialProvidersTestVectorKeys__S14_KeyDescription__M9_Hierarchy(software.amazon.cryptography.materialproviderstestvectorkeys.internaldafny.types._IHierarchyKeyring value) { @@ -350,7 +350,7 @@ public static AWS.Cryptography.MaterialProvidersTestVectorKeys.HierarchyKeyring } public static software.amazon.cryptography.materialproviderstestvectorkeys.internaldafny.types._IHierarchyKeyring ToDafny_N3_aws__N12_cryptography__N31_materialProvidersTestVectorKeys__S14_KeyDescription__M9_Hierarchy(AWS.Cryptography.MaterialProvidersTestVectorKeys.HierarchyKeyring value) { - return ToDafny_N3_aws__N12_cryptography__N31_materialProvidersTestVectorKeys__S16_HierarchyKeyring(value); + return ToDafny_N3_aws__N12_cryptography__N31_materialProvidersTestVectorKeys__S16_HierarchyKeyring((AWS.Cryptography.MaterialProvidersTestVectorKeys.HierarchyKeyring)value); } public static AWS.Cryptography.MaterialProvidersTestVectorKeys.MultiKeyring FromDafny_N3_aws__N12_cryptography__N31_materialProvidersTestVectorKeys__S14_KeyDescription__M5_Multi(software.amazon.cryptography.materialproviderstestvectorkeys.internaldafny.types._IMultiKeyring value) { @@ -358,7 +358,7 @@ public static AWS.Cryptography.MaterialProvidersTestVectorKeys.MultiKeyring From } public static software.amazon.cryptography.materialproviderstestvectorkeys.internaldafny.types._IMultiKeyring ToDafny_N3_aws__N12_cryptography__N31_materialProvidersTestVectorKeys__S14_KeyDescription__M5_Multi(AWS.Cryptography.MaterialProvidersTestVectorKeys.MultiKeyring value) { - return ToDafny_N3_aws__N12_cryptography__N31_materialProvidersTestVectorKeys__S12_MultiKeyring(value); + return ToDafny_N3_aws__N12_cryptography__N31_materialProvidersTestVectorKeys__S12_MultiKeyring((AWS.Cryptography.MaterialProvidersTestVectorKeys.MultiKeyring)value); } public static AWS.Cryptography.MaterialProvidersTestVectorKeys.RequiredEncryptionContextCMM FromDafny_N3_aws__N12_cryptography__N31_materialProvidersTestVectorKeys__S14_KeyDescription__M25_RequiredEncryptionContext(software.amazon.cryptography.materialproviderstestvectorkeys.internaldafny.types._IRequiredEncryptionContextCMM value) { @@ -366,7 +366,7 @@ public static AWS.Cryptography.MaterialProvidersTestVectorKeys.RequiredEncryptio } public static software.amazon.cryptography.materialproviderstestvectorkeys.internaldafny.types._IRequiredEncryptionContextCMM ToDafny_N3_aws__N12_cryptography__N31_materialProvidersTestVectorKeys__S14_KeyDescription__M25_RequiredEncryptionContext(AWS.Cryptography.MaterialProvidersTestVectorKeys.RequiredEncryptionContextCMM value) { - return ToDafny_N3_aws__N12_cryptography__N31_materialProvidersTestVectorKeys__S28_RequiredEncryptionContextCMM(value); + return ToDafny_N3_aws__N12_cryptography__N31_materialProvidersTestVectorKeys__S28_RequiredEncryptionContextCMM((AWS.Cryptography.MaterialProvidersTestVectorKeys.RequiredEncryptionContextCMM)value); } public static string FromDafny_N3_aws__N12_cryptography__N31_materialProvidersTestVectorKeys__S18_KeyVectorException__M7_message(Dafny.ISequence value) { @@ -374,7 +374,7 @@ public static string FromDafny_N3_aws__N12_cryptography__N31_materialProvidersTe } public static Dafny.ISequence ToDafny_N3_aws__N12_cryptography__N31_materialProvidersTestVectorKeys__S18_KeyVectorException__M7_message(string value) { - return ToDafny_N6_smithy__N3_api__S6_String(value); + return ToDafny_N6_smithy__N3_api__S6_String((string)value); } public static string FromDafny_N3_aws__N12_cryptography__N31_materialProvidersTestVectorKeys__S16_KeyVectorsConfig__M15_keyManifestPath(Dafny.ISequence value) { @@ -382,7 +382,7 @@ public static string FromDafny_N3_aws__N12_cryptography__N31_materialProvidersTe } public static Dafny.ISequence ToDafny_N3_aws__N12_cryptography__N31_materialProvidersTestVectorKeys__S16_KeyVectorsConfig__M15_keyManifestPath(string value) { - return ToDafny_N6_smithy__N3_api__S6_String(value); + return ToDafny_N6_smithy__N3_api__S6_String((string)value); } public static AWS.Cryptography.MaterialProvidersTestVectorKeys.KeyDescription FromDafny_N3_aws__N12_cryptography__N31_materialProvidersTestVectorKeys__S28_SerializeKeyDescriptionInput__M14_keyDescription(software.amazon.cryptography.materialproviderstestvectorkeys.internaldafny.types._IKeyDescription value) { @@ -390,7 +390,7 @@ public static AWS.Cryptography.MaterialProvidersTestVectorKeys.KeyDescription Fr } public static software.amazon.cryptography.materialproviderstestvectorkeys.internaldafny.types._IKeyDescription ToDafny_N3_aws__N12_cryptography__N31_materialProvidersTestVectorKeys__S28_SerializeKeyDescriptionInput__M14_keyDescription(AWS.Cryptography.MaterialProvidersTestVectorKeys.KeyDescription value) { - return ToDafny_N3_aws__N12_cryptography__N31_materialProvidersTestVectorKeys__S14_KeyDescription(value); + return ToDafny_N3_aws__N12_cryptography__N31_materialProvidersTestVectorKeys__S14_KeyDescription((AWS.Cryptography.MaterialProvidersTestVectorKeys.KeyDescription)value); } public static System.IO.MemoryStream FromDafny_N3_aws__N12_cryptography__N31_materialProvidersTestVectorKeys__S29_SerializeKeyDescriptionOutput__M4_json(Dafny.ISequence value) { @@ -398,7 +398,7 @@ public static System.IO.MemoryStream FromDafny_N3_aws__N12_cryptography__N31_mat } public static Dafny.ISequence ToDafny_N3_aws__N12_cryptography__N31_materialProvidersTestVectorKeys__S29_SerializeKeyDescriptionOutput__M4_json(System.IO.MemoryStream value) { - return ToDafny_N6_smithy__N3_api__S4_Blob(value); + return ToDafny_N6_smithy__N3_api__S4_Blob((System.IO.MemoryStream)value); } public static AWS.Cryptography.MaterialProvidersTestVectorKeys.KeyDescription FromDafny_N3_aws__N12_cryptography__N31_materialProvidersTestVectorKeys__S18_TestVectorCmmInput__M14_keyDescription(software.amazon.cryptography.materialproviderstestvectorkeys.internaldafny.types._IKeyDescription value) { @@ -406,7 +406,7 @@ public static AWS.Cryptography.MaterialProvidersTestVectorKeys.KeyDescription Fr } public static software.amazon.cryptography.materialproviderstestvectorkeys.internaldafny.types._IKeyDescription ToDafny_N3_aws__N12_cryptography__N31_materialProvidersTestVectorKeys__S18_TestVectorCmmInput__M14_keyDescription(AWS.Cryptography.MaterialProvidersTestVectorKeys.KeyDescription value) { - return ToDafny_N3_aws__N12_cryptography__N31_materialProvidersTestVectorKeys__S14_KeyDescription(value); + return ToDafny_N3_aws__N12_cryptography__N31_materialProvidersTestVectorKeys__S14_KeyDescription((AWS.Cryptography.MaterialProvidersTestVectorKeys.KeyDescription)value); } public static AWS.Cryptography.MaterialProvidersTestVectorKeys.CmmOperation FromDafny_N3_aws__N12_cryptography__N31_materialProvidersTestVectorKeys__S18_TestVectorCmmInput__M12_forOperation(software.amazon.cryptography.materialproviderstestvectorkeys.internaldafny.types._ICmmOperation value) { @@ -414,7 +414,7 @@ public static AWS.Cryptography.MaterialProvidersTestVectorKeys.CmmOperation From } public static software.amazon.cryptography.materialproviderstestvectorkeys.internaldafny.types._ICmmOperation ToDafny_N3_aws__N12_cryptography__N31_materialProvidersTestVectorKeys__S18_TestVectorCmmInput__M12_forOperation(AWS.Cryptography.MaterialProvidersTestVectorKeys.CmmOperation value) { - return ToDafny_N3_aws__N12_cryptography__N31_materialProvidersTestVectorKeys__S12_CmmOperation(value); + return ToDafny_N3_aws__N12_cryptography__N31_materialProvidersTestVectorKeys__S12_CmmOperation((AWS.Cryptography.MaterialProvidersTestVectorKeys.CmmOperation)value); } public static AWS.Cryptography.MaterialProvidersTestVectorKeys.KeyDescription FromDafny_N3_aws__N12_cryptography__N31_materialProvidersTestVectorKeys__S22_TestVectorKeyringInput__M14_keyDescription(software.amazon.cryptography.materialproviderstestvectorkeys.internaldafny.types._IKeyDescription value) { @@ -422,7 +422,7 @@ public static AWS.Cryptography.MaterialProvidersTestVectorKeys.KeyDescription Fr } public static software.amazon.cryptography.materialproviderstestvectorkeys.internaldafny.types._IKeyDescription ToDafny_N3_aws__N12_cryptography__N31_materialProvidersTestVectorKeys__S22_TestVectorKeyringInput__M14_keyDescription(AWS.Cryptography.MaterialProvidersTestVectorKeys.KeyDescription value) { - return ToDafny_N3_aws__N12_cryptography__N31_materialProvidersTestVectorKeys__S14_KeyDescription(value); + return ToDafny_N3_aws__N12_cryptography__N31_materialProvidersTestVectorKeys__S14_KeyDescription((AWS.Cryptography.MaterialProvidersTestVectorKeys.KeyDescription)value); } public static AWS.Cryptography.MaterialProviders.IKeyring FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S16_KeyringReference(software.amazon.cryptography.materialproviders.internaldafny.types.IKeyring value) { @@ -614,7 +614,7 @@ public static string FromDafny_N3_aws__N12_cryptography__N31_materialProvidersTe } public static Dafny.ISequence ToDafny_N3_aws__N12_cryptography__N31_materialProvidersTestVectorKeys__S7_KMSInfo__M5_keyId(string value) { - return ToDafny_N6_smithy__N3_api__S6_String(value); + return ToDafny_N6_smithy__N3_api__S6_String((string)value); } public static string FromDafny_N3_aws__N12_cryptography__N31_materialProvidersTestVectorKeys__S11_KmsMrkAware__M5_keyId(Dafny.ISequence value) { @@ -622,7 +622,7 @@ public static string FromDafny_N3_aws__N12_cryptography__N31_materialProvidersTe } public static Dafny.ISequence ToDafny_N3_aws__N12_cryptography__N31_materialProvidersTestVectorKeys__S11_KmsMrkAware__M5_keyId(string value) { - return ToDafny_N6_smithy__N3_api__S6_String(value); + return ToDafny_N6_smithy__N3_api__S6_String((string)value); } public static string FromDafny_N3_aws__N12_cryptography__N31_materialProvidersTestVectorKeys__S20_KmsMrkAwareDiscovery__M5_keyId(Dafny.ISequence value) { @@ -630,7 +630,7 @@ public static string FromDafny_N3_aws__N12_cryptography__N31_materialProvidersTe } public static Dafny.ISequence ToDafny_N3_aws__N12_cryptography__N31_materialProvidersTestVectorKeys__S20_KmsMrkAwareDiscovery__M5_keyId(string value) { - return ToDafny_N6_smithy__N3_api__S6_String(value); + return ToDafny_N6_smithy__N3_api__S6_String((string)value); } public static string FromDafny_N3_aws__N12_cryptography__N31_materialProvidersTestVectorKeys__S20_KmsMrkAwareDiscovery__M16_defaultMrkRegion(Dafny.ISequence value) { @@ -638,7 +638,7 @@ public static string FromDafny_N3_aws__N12_cryptography__N31_materialProvidersTe } public static Dafny.ISequence ToDafny_N3_aws__N12_cryptography__N31_materialProvidersTestVectorKeys__S20_KmsMrkAwareDiscovery__M16_defaultMrkRegion(string value) { - return ToDafny_N6_smithy__N3_api__S6_String(value); + return ToDafny_N6_smithy__N3_api__S6_String((string)value); } public static AWS.Cryptography.MaterialProviders.DiscoveryFilter FromDafny_N3_aws__N12_cryptography__N31_materialProvidersTestVectorKeys__S20_KmsMrkAwareDiscovery__M21_awsKmsDiscoveryFilter(Wrappers_Compile._IOption value) { @@ -654,7 +654,7 @@ public static string FromDafny_N3_aws__N12_cryptography__N31_materialProvidersTe } public static Dafny.ISequence ToDafny_N3_aws__N12_cryptography__N31_materialProvidersTestVectorKeys__S6_RawRSA__M5_keyId(string value) { - return ToDafny_N6_smithy__N3_api__S6_String(value); + return ToDafny_N6_smithy__N3_api__S6_String((string)value); } public static string FromDafny_N3_aws__N12_cryptography__N31_materialProvidersTestVectorKeys__S6_RawRSA__M10_providerId(Dafny.ISequence value) { @@ -662,7 +662,7 @@ public static string FromDafny_N3_aws__N12_cryptography__N31_materialProvidersTe } public static Dafny.ISequence ToDafny_N3_aws__N12_cryptography__N31_materialProvidersTestVectorKeys__S6_RawRSA__M10_providerId(string value) { - return ToDafny_N6_smithy__N3_api__S6_String(value); + return ToDafny_N6_smithy__N3_api__S6_String((string)value); } public static AWS.Cryptography.MaterialProviders.PaddingScheme FromDafny_N3_aws__N12_cryptography__N31_materialProvidersTestVectorKeys__S6_RawRSA__M7_padding(software.amazon.cryptography.materialproviders.internaldafny.types._IPaddingScheme value) { @@ -670,7 +670,7 @@ public static AWS.Cryptography.MaterialProviders.PaddingScheme FromDafny_N3_aws_ } public static software.amazon.cryptography.materialproviders.internaldafny.types._IPaddingScheme ToDafny_N3_aws__N12_cryptography__N31_materialProvidersTestVectorKeys__S6_RawRSA__M7_padding(AWS.Cryptography.MaterialProviders.PaddingScheme value) { - return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S13_PaddingScheme(value); + return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S13_PaddingScheme((AWS.Cryptography.MaterialProviders.PaddingScheme)value); } public static string FromDafny_N3_aws__N12_cryptography__N31_materialProvidersTestVectorKeys__S6_RawAES__M5_keyId(Dafny.ISequence value) { @@ -678,7 +678,7 @@ public static string FromDafny_N3_aws__N12_cryptography__N31_materialProvidersTe } public static Dafny.ISequence ToDafny_N3_aws__N12_cryptography__N31_materialProvidersTestVectorKeys__S6_RawAES__M5_keyId(string value) { - return ToDafny_N6_smithy__N3_api__S6_String(value); + return ToDafny_N6_smithy__N3_api__S6_String((string)value); } public static string FromDafny_N3_aws__N12_cryptography__N31_materialProvidersTestVectorKeys__S6_RawAES__M10_providerId(Dafny.ISequence value) { @@ -686,7 +686,7 @@ public static string FromDafny_N3_aws__N12_cryptography__N31_materialProvidersTe } public static Dafny.ISequence ToDafny_N3_aws__N12_cryptography__N31_materialProvidersTestVectorKeys__S6_RawAES__M10_providerId(string value) { - return ToDafny_N6_smithy__N3_api__S6_String(value); + return ToDafny_N6_smithy__N3_api__S6_String((string)value); } public static string FromDafny_N3_aws__N12_cryptography__N31_materialProvidersTestVectorKeys__S7_RawEcdh__M11_senderKeyId(Dafny.ISequence value) { @@ -694,7 +694,7 @@ public static string FromDafny_N3_aws__N12_cryptography__N31_materialProvidersTe } public static Dafny.ISequence ToDafny_N3_aws__N12_cryptography__N31_materialProvidersTestVectorKeys__S7_RawEcdh__M11_senderKeyId(string value) { - return ToDafny_N6_smithy__N3_api__S6_String(value); + return ToDafny_N6_smithy__N3_api__S6_String((string)value); } public static string FromDafny_N3_aws__N12_cryptography__N31_materialProvidersTestVectorKeys__S7_RawEcdh__M14_recipientKeyId(Dafny.ISequence value) { @@ -702,7 +702,7 @@ public static string FromDafny_N3_aws__N12_cryptography__N31_materialProvidersTe } public static Dafny.ISequence ToDafny_N3_aws__N12_cryptography__N31_materialProvidersTestVectorKeys__S7_RawEcdh__M14_recipientKeyId(string value) { - return ToDafny_N6_smithy__N3_api__S6_String(value); + return ToDafny_N6_smithy__N3_api__S6_String((string)value); } public static string FromDafny_N3_aws__N12_cryptography__N31_materialProvidersTestVectorKeys__S7_RawEcdh__M15_senderPublicKey(Dafny.ISequence value) { @@ -710,7 +710,7 @@ public static string FromDafny_N3_aws__N12_cryptography__N31_materialProvidersTe } public static Dafny.ISequence ToDafny_N3_aws__N12_cryptography__N31_materialProvidersTestVectorKeys__S7_RawEcdh__M15_senderPublicKey(string value) { - return ToDafny_N6_smithy__N3_api__S6_String(value); + return ToDafny_N6_smithy__N3_api__S6_String((string)value); } public static string FromDafny_N3_aws__N12_cryptography__N31_materialProvidersTestVectorKeys__S7_RawEcdh__M18_recipientPublicKey(Dafny.ISequence value) { @@ -718,7 +718,7 @@ public static string FromDafny_N3_aws__N12_cryptography__N31_materialProvidersTe } public static Dafny.ISequence ToDafny_N3_aws__N12_cryptography__N31_materialProvidersTestVectorKeys__S7_RawEcdh__M18_recipientPublicKey(string value) { - return ToDafny_N6_smithy__N3_api__S6_String(value); + return ToDafny_N6_smithy__N3_api__S6_String((string)value); } public static string FromDafny_N3_aws__N12_cryptography__N31_materialProvidersTestVectorKeys__S7_RawEcdh__M10_providerId(Dafny.ISequence value) { @@ -726,7 +726,7 @@ public static string FromDafny_N3_aws__N12_cryptography__N31_materialProvidersTe } public static Dafny.ISequence ToDafny_N3_aws__N12_cryptography__N31_materialProvidersTestVectorKeys__S7_RawEcdh__M10_providerId(string value) { - return ToDafny_N6_smithy__N3_api__S6_String(value); + return ToDafny_N6_smithy__N3_api__S6_String((string)value); } public static string FromDafny_N3_aws__N12_cryptography__N31_materialProvidersTestVectorKeys__S7_RawEcdh__M9_curveSpec(Dafny.ISequence value) { @@ -734,7 +734,7 @@ public static string FromDafny_N3_aws__N12_cryptography__N31_materialProvidersTe } public static Dafny.ISequence ToDafny_N3_aws__N12_cryptography__N31_materialProvidersTestVectorKeys__S7_RawEcdh__M9_curveSpec(string value) { - return ToDafny_N6_smithy__N3_api__S6_String(value); + return ToDafny_N6_smithy__N3_api__S6_String((string)value); } public static string FromDafny_N3_aws__N12_cryptography__N31_materialProvidersTestVectorKeys__S7_RawEcdh__M18_keyAgreementScheme(Dafny.ISequence value) { @@ -742,7 +742,7 @@ public static string FromDafny_N3_aws__N12_cryptography__N31_materialProvidersTe } public static Dafny.ISequence ToDafny_N3_aws__N12_cryptography__N31_materialProvidersTestVectorKeys__S7_RawEcdh__M18_keyAgreementScheme(string value) { - return ToDafny_N6_smithy__N3_api__S6_String(value); + return ToDafny_N6_smithy__N3_api__S6_String((string)value); } public static string FromDafny_N3_aws__N12_cryptography__N31_materialProvidersTestVectorKeys__S13_StaticKeyring__M5_keyId(Dafny.ISequence value) { @@ -750,7 +750,7 @@ public static string FromDafny_N3_aws__N12_cryptography__N31_materialProvidersTe } public static Dafny.ISequence ToDafny_N3_aws__N12_cryptography__N31_materialProvidersTestVectorKeys__S13_StaticKeyring__M5_keyId(string value) { - return ToDafny_N6_smithy__N3_api__S6_String(value); + return ToDafny_N6_smithy__N3_api__S6_String((string)value); } public static string FromDafny_N3_aws__N12_cryptography__N31_materialProvidersTestVectorKeys__S13_KmsRsaKeyring__M5_keyId(Dafny.ISequence value) { @@ -758,7 +758,7 @@ public static string FromDafny_N3_aws__N12_cryptography__N31_materialProvidersTe } public static Dafny.ISequence ToDafny_N3_aws__N12_cryptography__N31_materialProvidersTestVectorKeys__S13_KmsRsaKeyring__M5_keyId(string value) { - return ToDafny_N6_smithy__N3_api__S6_String(value); + return ToDafny_N6_smithy__N3_api__S6_String((string)value); } public static Amazon.KeyManagementService.EncryptionAlgorithmSpec FromDafny_N3_aws__N12_cryptography__N31_materialProvidersTestVectorKeys__S13_KmsRsaKeyring__M19_encryptionAlgorithm(software.amazon.cryptography.services.kms.internaldafny.types._IEncryptionAlgorithmSpec value) { @@ -766,7 +766,7 @@ public static Amazon.KeyManagementService.EncryptionAlgorithmSpec FromDafny_N3_a } public static software.amazon.cryptography.services.kms.internaldafny.types._IEncryptionAlgorithmSpec ToDafny_N3_aws__N12_cryptography__N31_materialProvidersTestVectorKeys__S13_KmsRsaKeyring__M19_encryptionAlgorithm(Amazon.KeyManagementService.EncryptionAlgorithmSpec value) { - return ToDafny_N3_com__N9_amazonaws__N3_kms__S23_EncryptionAlgorithmSpec(value); + return ToDafny_N3_com__N9_amazonaws__N3_kms__S23_EncryptionAlgorithmSpec((Amazon.KeyManagementService.EncryptionAlgorithmSpec)value); } public static string FromDafny_N3_aws__N12_cryptography__N31_materialProvidersTestVectorKeys__S14_KmsEcdhKeyring__M11_senderKeyId(Dafny.ISequence value) { @@ -774,7 +774,7 @@ public static string FromDafny_N3_aws__N12_cryptography__N31_materialProvidersTe } public static Dafny.ISequence ToDafny_N3_aws__N12_cryptography__N31_materialProvidersTestVectorKeys__S14_KmsEcdhKeyring__M11_senderKeyId(string value) { - return ToDafny_N6_smithy__N3_api__S6_String(value); + return ToDafny_N6_smithy__N3_api__S6_String((string)value); } public static string FromDafny_N3_aws__N12_cryptography__N31_materialProvidersTestVectorKeys__S14_KmsEcdhKeyring__M14_recipientKeyId(Dafny.ISequence value) { @@ -782,7 +782,7 @@ public static string FromDafny_N3_aws__N12_cryptography__N31_materialProvidersTe } public static Dafny.ISequence ToDafny_N3_aws__N12_cryptography__N31_materialProvidersTestVectorKeys__S14_KmsEcdhKeyring__M14_recipientKeyId(string value) { - return ToDafny_N6_smithy__N3_api__S6_String(value); + return ToDafny_N6_smithy__N3_api__S6_String((string)value); } public static string FromDafny_N3_aws__N12_cryptography__N31_materialProvidersTestVectorKeys__S14_KmsEcdhKeyring__M15_senderPublicKey(Dafny.ISequence value) { @@ -790,7 +790,7 @@ public static string FromDafny_N3_aws__N12_cryptography__N31_materialProvidersTe } public static Dafny.ISequence ToDafny_N3_aws__N12_cryptography__N31_materialProvidersTestVectorKeys__S14_KmsEcdhKeyring__M15_senderPublicKey(string value) { - return ToDafny_N6_smithy__N3_api__S6_String(value); + return ToDafny_N6_smithy__N3_api__S6_String((string)value); } public static string FromDafny_N3_aws__N12_cryptography__N31_materialProvidersTestVectorKeys__S14_KmsEcdhKeyring__M18_recipientPublicKey(Dafny.ISequence value) { @@ -798,7 +798,7 @@ public static string FromDafny_N3_aws__N12_cryptography__N31_materialProvidersTe } public static Dafny.ISequence ToDafny_N3_aws__N12_cryptography__N31_materialProvidersTestVectorKeys__S14_KmsEcdhKeyring__M18_recipientPublicKey(string value) { - return ToDafny_N6_smithy__N3_api__S6_String(value); + return ToDafny_N6_smithy__N3_api__S6_String((string)value); } public static string FromDafny_N3_aws__N12_cryptography__N31_materialProvidersTestVectorKeys__S14_KmsEcdhKeyring__M9_curveSpec(Dafny.ISequence value) { @@ -806,7 +806,7 @@ public static string FromDafny_N3_aws__N12_cryptography__N31_materialProvidersTe } public static Dafny.ISequence ToDafny_N3_aws__N12_cryptography__N31_materialProvidersTestVectorKeys__S14_KmsEcdhKeyring__M9_curveSpec(string value) { - return ToDafny_N6_smithy__N3_api__S6_String(value); + return ToDafny_N6_smithy__N3_api__S6_String((string)value); } public static string FromDafny_N3_aws__N12_cryptography__N31_materialProvidersTestVectorKeys__S14_KmsEcdhKeyring__M18_keyAgreementScheme(Dafny.ISequence value) { @@ -814,7 +814,7 @@ public static string FromDafny_N3_aws__N12_cryptography__N31_materialProvidersTe } public static Dafny.ISequence ToDafny_N3_aws__N12_cryptography__N31_materialProvidersTestVectorKeys__S14_KmsEcdhKeyring__M18_keyAgreementScheme(string value) { - return ToDafny_N6_smithy__N3_api__S6_String(value); + return ToDafny_N6_smithy__N3_api__S6_String((string)value); } public static string FromDafny_N3_aws__N12_cryptography__N31_materialProvidersTestVectorKeys__S16_HierarchyKeyring__M5_keyId(Dafny.ISequence value) { @@ -822,7 +822,7 @@ public static string FromDafny_N3_aws__N12_cryptography__N31_materialProvidersTe } public static Dafny.ISequence ToDafny_N3_aws__N12_cryptography__N31_materialProvidersTestVectorKeys__S16_HierarchyKeyring__M5_keyId(string value) { - return ToDafny_N6_smithy__N3_api__S6_String(value); + return ToDafny_N6_smithy__N3_api__S6_String((string)value); } public static AWS.Cryptography.MaterialProvidersTestVectorKeys.KeyDescription FromDafny_N3_aws__N12_cryptography__N31_materialProvidersTestVectorKeys__S12_MultiKeyring__M9_generator(Wrappers_Compile._IOption value) { @@ -838,7 +838,7 @@ public static AWS.Cryptography.MaterialProvidersTestVectorKeys.KeyDescription Fr } public static Dafny.ISequence ToDafny_N3_aws__N12_cryptography__N31_materialProvidersTestVectorKeys__S12_MultiKeyring__M13_childKeyrings(System.Collections.Generic.List value) { - return ToDafny_N3_aws__N12_cryptography__N31_materialProvidersTestVectorKeys__S18_KeyDescriptionList(value); + return ToDafny_N3_aws__N12_cryptography__N31_materialProvidersTestVectorKeys__S18_KeyDescriptionList((System.Collections.Generic.List)value); } public static AWS.Cryptography.MaterialProvidersTestVectorKeys.KeyDescription FromDafny_N3_aws__N12_cryptography__N31_materialProvidersTestVectorKeys__S28_RequiredEncryptionContextCMM__M10_underlying(software.amazon.cryptography.materialproviderstestvectorkeys.internaldafny.types._IKeyDescription value) { @@ -846,7 +846,7 @@ public static AWS.Cryptography.MaterialProvidersTestVectorKeys.KeyDescription Fr } public static software.amazon.cryptography.materialproviderstestvectorkeys.internaldafny.types._IKeyDescription ToDafny_N3_aws__N12_cryptography__N31_materialProvidersTestVectorKeys__S28_RequiredEncryptionContextCMM__M10_underlying(AWS.Cryptography.MaterialProvidersTestVectorKeys.KeyDescription value) { - return ToDafny_N3_aws__N12_cryptography__N31_materialProvidersTestVectorKeys__S14_KeyDescription(value); + return ToDafny_N3_aws__N12_cryptography__N31_materialProvidersTestVectorKeys__S14_KeyDescription((AWS.Cryptography.MaterialProvidersTestVectorKeys.KeyDescription)value); } public static System.Collections.Generic.List FromDafny_N3_aws__N12_cryptography__N31_materialProvidersTestVectorKeys__S28_RequiredEncryptionContextCMM__M29_requiredEncryptionContextKeys(Dafny.ISequence> value) { @@ -854,7 +854,7 @@ public static System.Collections.Generic.List FromDafny_N3_aws__N12_cryp } public static Dafny.ISequence> ToDafny_N3_aws__N12_cryptography__N31_materialProvidersTestVectorKeys__S28_RequiredEncryptionContextCMM__M29_requiredEncryptionContextKeys(System.Collections.Generic.List value) { - return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S21_EncryptionContextKeys(value); + return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S21_EncryptionContextKeys((System.Collections.Generic.List)value); } public static AWS.Cryptography.MaterialProviders.DiscoveryFilter FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S15_DiscoveryFilter(software.amazon.cryptography.materialproviders.internaldafny.types._IDiscoveryFilter value) { @@ -921,7 +921,7 @@ public static System.Collections.Generic.List FromDafny_N3_aws__N12_cryp } public static Dafny.ISequence> ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S15_DiscoveryFilter__M10_accountIds(System.Collections.Generic.List value) { - return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S13_AccountIdList(value); + return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S13_AccountIdList((System.Collections.Generic.List)value); } public static string FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S15_DiscoveryFilter__M9_partition(Dafny.ISequence value) { @@ -929,7 +929,7 @@ public static string FromDafny_N3_aws__N12_cryptography__N17_materialProviders__ } public static Dafny.ISequence ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S15_DiscoveryFilter__M9_partition(string value) { - return ToDafny_N6_smithy__N3_api__S6_String(value); + return ToDafny_N6_smithy__N3_api__S6_String((string)value); } public static AWS.Cryptography.MaterialProvidersTestVectorKeys.KeyDescription FromDafny_N3_aws__N12_cryptography__N31_materialProvidersTestVectorKeys__S18_KeyDescriptionList__M6_member(software.amazon.cryptography.materialproviderstestvectorkeys.internaldafny.types._IKeyDescription value) { @@ -937,7 +937,7 @@ public static AWS.Cryptography.MaterialProvidersTestVectorKeys.KeyDescription Fr } public static software.amazon.cryptography.materialproviderstestvectorkeys.internaldafny.types._IKeyDescription ToDafny_N3_aws__N12_cryptography__N31_materialProvidersTestVectorKeys__S18_KeyDescriptionList__M6_member(AWS.Cryptography.MaterialProvidersTestVectorKeys.KeyDescription value) { - return ToDafny_N3_aws__N12_cryptography__N31_materialProvidersTestVectorKeys__S14_KeyDescription(value); + return ToDafny_N3_aws__N12_cryptography__N31_materialProvidersTestVectorKeys__S14_KeyDescription((AWS.Cryptography.MaterialProvidersTestVectorKeys.KeyDescription)value); } public static string FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S21_EncryptionContextKeys__M6_member(Dafny.ISequence value) { @@ -945,7 +945,7 @@ public static string FromDafny_N3_aws__N12_cryptography__N17_materialProviders__ } public static Dafny.ISequence ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S21_EncryptionContextKeys__M6_member(string value) { - return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S9_Utf8Bytes(value); + return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S9_Utf8Bytes((string)value); } public static System.Collections.Generic.List FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S13_AccountIdList(Dafny.ISequence> value) { @@ -971,7 +971,7 @@ public static string FromDafny_N3_aws__N12_cryptography__N17_materialProviders__ } public static Dafny.ISequence ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S13_AccountIdList__M6_member(string value) { - return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S9_AccountId(value); + return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S9_AccountId((string)value); } public static string FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S9_AccountId(Dafny.ISequence value) { diff --git a/TestVectorsAwsCryptographicMaterialProviders/runtimes/net/Generated/TestVectorsAwsCryptographicMaterialProviders/TypeConversion.cs b/TestVectorsAwsCryptographicMaterialProviders/runtimes/net/Generated/TestVectorsAwsCryptographicMaterialProviders/TypeConversion.cs index e4b15bae0..192fbfa12 100644 --- a/TestVectorsAwsCryptographicMaterialProviders/runtimes/net/Generated/TestVectorsAwsCryptographicMaterialProviders/TypeConversion.cs +++ b/TestVectorsAwsCryptographicMaterialProviders/runtimes/net/Generated/TestVectorsAwsCryptographicMaterialProviders/TypeConversion.cs @@ -30,12 +30,12 @@ public static AWS.Cryptography.MaterialProviders.AlgorithmSuiteId FromDafny_N3_a software.amazon.cryptography.materialproviders.internaldafny.types.AlgorithmSuiteId concrete = (software.amazon.cryptography.materialproviders.internaldafny.types.AlgorithmSuiteId)value; var converted = new AWS.Cryptography.MaterialProviders.AlgorithmSuiteId(); if (value.is_ESDK) { - converted.ESDK = FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S16_AlgorithmSuiteId__M4_ESDK(concrete.dtor_ESDK); + converted.ESDK = (AWS.Cryptography.MaterialProviders.ESDKAlgorithmSuiteId)(FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S16_AlgorithmSuiteId__M4_ESDK(concrete.dtor_ESDK)); return converted; } if (value.is_DBE) { - converted.DBE = FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S16_AlgorithmSuiteId__M3_DBE(concrete.dtor_DBE); + converted.DBE = (AWS.Cryptography.MaterialProviders.DBEAlgorithmSuiteId)(FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S16_AlgorithmSuiteId__M3_DBE(concrete.dtor_DBE)); return converted; } throw new System.ArgumentException("Invalid AWS.Cryptography.MaterialProviders.AlgorithmSuiteId state"); @@ -88,32 +88,32 @@ public static AWS.Cryptography.MaterialProviders.CacheType FromDafny_N3_aws__N12 software.amazon.cryptography.materialproviders.internaldafny.types.CacheType concrete = (software.amazon.cryptography.materialproviders.internaldafny.types.CacheType)value; var converted = new AWS.Cryptography.MaterialProviders.CacheType(); if (value.is_Default) { - converted.Default = FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S9_CacheType__M7_Default(concrete.dtor_Default); + converted.Default = (AWS.Cryptography.MaterialProviders.DefaultCache)(FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S9_CacheType__M7_Default(concrete.dtor_Default)); return converted; } if (value.is_No) { - converted.No = FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S9_CacheType__M2_No(concrete.dtor_No); + converted.No = (AWS.Cryptography.MaterialProviders.NoCache)(FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S9_CacheType__M2_No(concrete.dtor_No)); return converted; } if (value.is_SingleThreaded) { - converted.SingleThreaded = FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S9_CacheType__M14_SingleThreaded(concrete.dtor_SingleThreaded); + converted.SingleThreaded = (AWS.Cryptography.MaterialProviders.SingleThreadedCache)(FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S9_CacheType__M14_SingleThreaded(concrete.dtor_SingleThreaded)); return converted; } if (value.is_MultiThreaded) { - converted.MultiThreaded = FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S9_CacheType__M13_MultiThreaded(concrete.dtor_MultiThreaded); + converted.MultiThreaded = (AWS.Cryptography.MaterialProviders.MultiThreadedCache)(FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S9_CacheType__M13_MultiThreaded(concrete.dtor_MultiThreaded)); return converted; } if (value.is_StormTracking) { - converted.StormTracking = FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S9_CacheType__M13_StormTracking(concrete.dtor_StormTracking); + converted.StormTracking = (AWS.Cryptography.MaterialProviders.StormTrackingCache)(FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S9_CacheType__M13_StormTracking(concrete.dtor_StormTracking)); return converted; } if (value.is_Shared) { - converted.Shared = FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S9_CacheType__M6_Shared(concrete.dtor_Shared); + converted.Shared = (AWS.Cryptography.MaterialProviders.ICryptographicMaterialsCache)(FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S9_CacheType__M6_Shared(concrete.dtor_Shared)); return converted; } throw new System.ArgumentException("Invalid AWS.Cryptography.MaterialProviders.CacheType state"); @@ -151,12 +151,12 @@ public static AWS.Cryptography.MaterialProviders.CommitmentPolicy FromDafny_N3_a software.amazon.cryptography.materialproviders.internaldafny.types.CommitmentPolicy concrete = (software.amazon.cryptography.materialproviders.internaldafny.types.CommitmentPolicy)value; var converted = new AWS.Cryptography.MaterialProviders.CommitmentPolicy(); if (value.is_ESDK) { - converted.ESDK = FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S16_CommitmentPolicy__M4_ESDK(concrete.dtor_ESDK); + converted.ESDK = (AWS.Cryptography.MaterialProviders.ESDKCommitmentPolicy)(FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S16_CommitmentPolicy__M4_ESDK(concrete.dtor_ESDK)); return converted; } if (value.is_DBE) { - converted.DBE = FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S16_CommitmentPolicy__M3_DBE(concrete.dtor_DBE); + converted.DBE = (AWS.Cryptography.MaterialProviders.DBECommitmentPolicy)(FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S16_CommitmentPolicy__M3_DBE(concrete.dtor_DBE)); return converted; } throw new System.ArgumentException("Invalid AWS.Cryptography.MaterialProviders.CommitmentPolicy state"); @@ -544,17 +544,17 @@ public static AWS.Cryptography.MaterialProviders.DerivationAlgorithm FromDafny_N software.amazon.cryptography.materialproviders.internaldafny.types.DerivationAlgorithm concrete = (software.amazon.cryptography.materialproviders.internaldafny.types.DerivationAlgorithm)value; var converted = new AWS.Cryptography.MaterialProviders.DerivationAlgorithm(); if (value.is_HKDF) { - converted.HKDF = FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S19_DerivationAlgorithm__M4_HKDF(concrete.dtor_HKDF); + converted.HKDF = (AWS.Cryptography.MaterialProviders.HKDF)(FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S19_DerivationAlgorithm__M4_HKDF(concrete.dtor_HKDF)); return converted; } if (value.is_IDENTITY) { - converted.IDENTITY = FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S19_DerivationAlgorithm__M8_IDENTITY(concrete.dtor_IDENTITY); + converted.IDENTITY = (AWS.Cryptography.MaterialProviders.IDENTITY)(FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S19_DerivationAlgorithm__M8_IDENTITY(concrete.dtor_IDENTITY)); return converted; } if (value.is_None) { - converted.None = FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S19_DerivationAlgorithm__M4_None(concrete.dtor_None); + converted.None = (AWS.Cryptography.MaterialProviders.None)(FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S19_DerivationAlgorithm__M4_None(concrete.dtor_None)); return converted; } throw new System.ArgumentException("Invalid AWS.Cryptography.MaterialProviders.DerivationAlgorithm state"); @@ -580,12 +580,12 @@ public static AWS.Cryptography.MaterialProviders.EdkWrappingAlgorithm FromDafny_ software.amazon.cryptography.materialproviders.internaldafny.types.EdkWrappingAlgorithm concrete = (software.amazon.cryptography.materialproviders.internaldafny.types.EdkWrappingAlgorithm)value; var converted = new AWS.Cryptography.MaterialProviders.EdkWrappingAlgorithm(); if (value.is_DIRECT__KEY__WRAPPING) { - converted.DIRECT__KEY__WRAPPING = FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S20_EdkWrappingAlgorithm__M19_DIRECT_KEY_WRAPPING(concrete.dtor_DIRECT__KEY__WRAPPING); + converted.DIRECT__KEY__WRAPPING = (AWS.Cryptography.MaterialProviders.DIRECT_KEY_WRAPPING)(FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S20_EdkWrappingAlgorithm__M19_DIRECT_KEY_WRAPPING(concrete.dtor_DIRECT__KEY__WRAPPING)); return converted; } if (value.is_IntermediateKeyWrapping) { - converted.IntermediateKeyWrapping = FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S20_EdkWrappingAlgorithm__M23_IntermediateKeyWrapping(concrete.dtor_IntermediateKeyWrapping); + converted.IntermediateKeyWrapping = (AWS.Cryptography.MaterialProviders.IntermediateKeyWrapping)(FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S20_EdkWrappingAlgorithm__M23_IntermediateKeyWrapping(concrete.dtor_IntermediateKeyWrapping)); return converted; } throw new System.ArgumentException("Invalid AWS.Cryptography.MaterialProviders.EdkWrappingAlgorithm state"); @@ -607,7 +607,7 @@ public static AWS.Cryptography.MaterialProviders.Encrypt FromDafny_N3_aws__N12_c software.amazon.cryptography.materialproviders.internaldafny.types.Encrypt concrete = (software.amazon.cryptography.materialproviders.internaldafny.types.Encrypt)value; var converted = new AWS.Cryptography.MaterialProviders.Encrypt(); if (value.is_AES__GCM) { - converted.AES__GCM = FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S7_Encrypt__M7_AES_GCM(concrete.dtor_AES__GCM); + converted.AES__GCM = (AWS.Cryptography.Primitives.AES_GCM)(FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S7_Encrypt__M7_AES_GCM(concrete.dtor_AES__GCM)); return converted; } throw new System.ArgumentException("Invalid AWS.Cryptography.MaterialProviders.Encrypt state"); @@ -941,7 +941,7 @@ public static AWS.Cryptography.MaterialProviders.KeyAgreementScheme FromDafny_N3 software.amazon.cryptography.materialproviders.internaldafny.types.KeyAgreementScheme concrete = (software.amazon.cryptography.materialproviders.internaldafny.types.KeyAgreementScheme)value; var converted = new AWS.Cryptography.MaterialProviders.KeyAgreementScheme(); if (value.is_StaticConfiguration) { - converted.StaticConfiguration = FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S18_KeyAgreementScheme__M19_StaticConfiguration(concrete.dtor_StaticConfiguration); + converted.StaticConfiguration = (AWS.Cryptography.MaterialProviders.StaticConfigurations)(FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S18_KeyAgreementScheme__M19_StaticConfiguration(concrete.dtor_StaticConfiguration)); return converted; } throw new System.ArgumentException("Invalid AWS.Cryptography.MaterialProviders.KeyAgreementScheme state"); @@ -959,12 +959,12 @@ public static AWS.Cryptography.MaterialProviders.KmsEcdhStaticConfigurations Fro software.amazon.cryptography.materialproviders.internaldafny.types.KmsEcdhStaticConfigurations concrete = (software.amazon.cryptography.materialproviders.internaldafny.types.KmsEcdhStaticConfigurations)value; var converted = new AWS.Cryptography.MaterialProviders.KmsEcdhStaticConfigurations(); if (value.is_KmsPublicKeyDiscovery) { - converted.KmsPublicKeyDiscovery = FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S27_KmsEcdhStaticConfigurations__M21_KmsPublicKeyDiscovery(concrete.dtor_KmsPublicKeyDiscovery); + converted.KmsPublicKeyDiscovery = (AWS.Cryptography.MaterialProviders.KmsPublicKeyDiscoveryInput)(FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S27_KmsEcdhStaticConfigurations__M21_KmsPublicKeyDiscovery(concrete.dtor_KmsPublicKeyDiscovery)); return converted; } if (value.is_KmsPrivateKeyToStaticPublicKey) { - converted.KmsPrivateKeyToStaticPublicKey = FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S27_KmsEcdhStaticConfigurations__M30_KmsPrivateKeyToStaticPublicKey(concrete.dtor_KmsPrivateKeyToStaticPublicKey); + converted.KmsPrivateKeyToStaticPublicKey = (AWS.Cryptography.MaterialProviders.KmsPrivateKeyToStaticPublicKeyInput)(FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S27_KmsEcdhStaticConfigurations__M30_KmsPrivateKeyToStaticPublicKey(concrete.dtor_KmsPrivateKeyToStaticPublicKey)); return converted; } throw new System.ArgumentException("Invalid AWS.Cryptography.MaterialProviders.KmsEcdhStaticConfigurations state"); @@ -996,22 +996,22 @@ public static AWS.Cryptography.MaterialProviders.Materials FromDafny_N3_aws__N12 software.amazon.cryptography.materialproviders.internaldafny.types.Materials concrete = (software.amazon.cryptography.materialproviders.internaldafny.types.Materials)value; var converted = new AWS.Cryptography.MaterialProviders.Materials(); if (value.is_Encryption) { - converted.Encryption = FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S9_Materials__M10_Encryption(concrete.dtor_Encryption); + converted.Encryption = (AWS.Cryptography.MaterialProviders.EncryptionMaterials)(FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S9_Materials__M10_Encryption(concrete.dtor_Encryption)); return converted; } if (value.is_Decryption) { - converted.Decryption = FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S9_Materials__M10_Decryption(concrete.dtor_Decryption); + converted.Decryption = (AWS.Cryptography.MaterialProviders.DecryptionMaterials)(FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S9_Materials__M10_Decryption(concrete.dtor_Decryption)); return converted; } if (value.is_BranchKey) { - converted.BranchKey = FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S9_Materials__M9_BranchKey(concrete.dtor_BranchKey); + converted.BranchKey = (AWS.Cryptography.KeyStore.BranchKeyMaterials)(FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S9_Materials__M9_BranchKey(concrete.dtor_BranchKey)); return converted; } if (value.is_BeaconKey) { - converted.BeaconKey = FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S9_Materials__M9_BeaconKey(concrete.dtor_BeaconKey); + converted.BeaconKey = (AWS.Cryptography.KeyStore.BeaconKeyMaterials)(FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S9_Materials__M9_BeaconKey(concrete.dtor_BeaconKey)); return converted; } throw new System.ArgumentException("Invalid AWS.Cryptography.MaterialProviders.Materials state"); @@ -1116,17 +1116,17 @@ public static AWS.Cryptography.MaterialProviders.RawEcdhStaticConfigurations Fro software.amazon.cryptography.materialproviders.internaldafny.types.RawEcdhStaticConfigurations concrete = (software.amazon.cryptography.materialproviders.internaldafny.types.RawEcdhStaticConfigurations)value; var converted = new AWS.Cryptography.MaterialProviders.RawEcdhStaticConfigurations(); if (value.is_PublicKeyDiscovery) { - converted.PublicKeyDiscovery = FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S27_RawEcdhStaticConfigurations__M18_PublicKeyDiscovery(concrete.dtor_PublicKeyDiscovery); + converted.PublicKeyDiscovery = (AWS.Cryptography.MaterialProviders.PublicKeyDiscoveryInput)(FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S27_RawEcdhStaticConfigurations__M18_PublicKeyDiscovery(concrete.dtor_PublicKeyDiscovery)); return converted; } if (value.is_RawPrivateKeyToStaticPublicKey) { - converted.RawPrivateKeyToStaticPublicKey = FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S27_RawEcdhStaticConfigurations__M30_RawPrivateKeyToStaticPublicKey(concrete.dtor_RawPrivateKeyToStaticPublicKey); + converted.RawPrivateKeyToStaticPublicKey = (AWS.Cryptography.MaterialProviders.RawPrivateKeyToStaticPublicKeyInput)(FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S27_RawEcdhStaticConfigurations__M30_RawPrivateKeyToStaticPublicKey(concrete.dtor_RawPrivateKeyToStaticPublicKey)); return converted; } if (value.is_EphemeralPrivateKeyToStaticPublicKey) { - converted.EphemeralPrivateKeyToStaticPublicKey = FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S27_RawEcdhStaticConfigurations__M36_EphemeralPrivateKeyToStaticPublicKey(concrete.dtor_EphemeralPrivateKeyToStaticPublicKey); + converted.EphemeralPrivateKeyToStaticPublicKey = (AWS.Cryptography.MaterialProviders.EphemeralPrivateKeyToStaticPublicKeyInput)(FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S27_RawEcdhStaticConfigurations__M36_EphemeralPrivateKeyToStaticPublicKey(concrete.dtor_EphemeralPrivateKeyToStaticPublicKey)); return converted; } throw new System.ArgumentException("Invalid AWS.Cryptography.MaterialProviders.RawEcdhStaticConfigurations state"); @@ -1152,12 +1152,12 @@ public static AWS.Cryptography.MaterialProviders.SignatureAlgorithm FromDafny_N3 software.amazon.cryptography.materialproviders.internaldafny.types.SignatureAlgorithm concrete = (software.amazon.cryptography.materialproviders.internaldafny.types.SignatureAlgorithm)value; var converted = new AWS.Cryptography.MaterialProviders.SignatureAlgorithm(); if (value.is_ECDSA) { - converted.ECDSA = FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S18_SignatureAlgorithm__M5_ECDSA(concrete.dtor_ECDSA); + converted.ECDSA = (AWS.Cryptography.MaterialProviders.ECDSA)(FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S18_SignatureAlgorithm__M5_ECDSA(concrete.dtor_ECDSA)); return converted; } if (value.is_None) { - converted.None = FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S18_SignatureAlgorithm__M4_None(concrete.dtor_None); + converted.None = (AWS.Cryptography.MaterialProviders.None)(FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S18_SignatureAlgorithm__M4_None(concrete.dtor_None)); return converted; } throw new System.ArgumentException("Invalid AWS.Cryptography.MaterialProviders.SignatureAlgorithm state"); @@ -1179,12 +1179,12 @@ public static AWS.Cryptography.MaterialProviders.StaticConfigurations FromDafny_ software.amazon.cryptography.materialproviders.internaldafny.types.StaticConfigurations concrete = (software.amazon.cryptography.materialproviders.internaldafny.types.StaticConfigurations)value; var converted = new AWS.Cryptography.MaterialProviders.StaticConfigurations(); if (value.is_AWS__KMS__ECDH) { - converted.AWS__KMS__ECDH = FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S20_StaticConfigurations__M12_AWS_KMS_ECDH(concrete.dtor_AWS__KMS__ECDH); + converted.AWS__KMS__ECDH = (AWS.Cryptography.MaterialProviders.KmsEcdhStaticConfigurations)(FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S20_StaticConfigurations__M12_AWS_KMS_ECDH(concrete.dtor_AWS__KMS__ECDH)); return converted; } if (value.is_RAW__ECDH) { - converted.RAW__ECDH = FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S20_StaticConfigurations__M8_RAW_ECDH(concrete.dtor_RAW__ECDH); + converted.RAW__ECDH = (AWS.Cryptography.MaterialProviders.RawEcdhStaticConfigurations)(FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S20_StaticConfigurations__M8_RAW_ECDH(concrete.dtor_RAW__ECDH)); return converted; } throw new System.ArgumentException("Invalid AWS.Cryptography.MaterialProviders.StaticConfigurations state"); @@ -1206,12 +1206,12 @@ public static AWS.Cryptography.MaterialProviders.SymmetricSignatureAlgorithm Fro software.amazon.cryptography.materialproviders.internaldafny.types.SymmetricSignatureAlgorithm concrete = (software.amazon.cryptography.materialproviders.internaldafny.types.SymmetricSignatureAlgorithm)value; var converted = new AWS.Cryptography.MaterialProviders.SymmetricSignatureAlgorithm(); if (value.is_HMAC) { - converted.HMAC = FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S27_SymmetricSignatureAlgorithm__M4_HMAC(concrete.dtor_HMAC); + converted.HMAC = (AWS.Cryptography.Primitives.DigestAlgorithm)(FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S27_SymmetricSignatureAlgorithm__M4_HMAC(concrete.dtor_HMAC)); return converted; } if (value.is_None) { - converted.None = FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S27_SymmetricSignatureAlgorithm__M4_None(concrete.dtor_None); + converted.None = (AWS.Cryptography.MaterialProviders.None)(FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S27_SymmetricSignatureAlgorithm__M4_None(concrete.dtor_None)); return converted; } throw new System.ArgumentException("Invalid AWS.Cryptography.MaterialProviders.SymmetricSignatureAlgorithm state"); @@ -1301,7 +1301,7 @@ public static AWS.Cryptography.MaterialProviders.ESDKAlgorithmSuiteId FromDafny_ } public static software.amazon.cryptography.materialproviders.internaldafny.types._IESDKAlgorithmSuiteId ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S16_AlgorithmSuiteId__M4_ESDK(AWS.Cryptography.MaterialProviders.ESDKAlgorithmSuiteId value) { - return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S20_ESDKAlgorithmSuiteId(value); + return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S20_ESDKAlgorithmSuiteId((AWS.Cryptography.MaterialProviders.ESDKAlgorithmSuiteId)value); } public static AWS.Cryptography.MaterialProviders.DBEAlgorithmSuiteId FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S16_AlgorithmSuiteId__M3_DBE(software.amazon.cryptography.materialproviders.internaldafny.types._IDBEAlgorithmSuiteId value) { @@ -1309,7 +1309,7 @@ public static AWS.Cryptography.MaterialProviders.DBEAlgorithmSuiteId FromDafny_N } public static software.amazon.cryptography.materialproviders.internaldafny.types._IDBEAlgorithmSuiteId ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S16_AlgorithmSuiteId__M3_DBE(AWS.Cryptography.MaterialProviders.DBEAlgorithmSuiteId value) { - return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S19_DBEAlgorithmSuiteId(value); + return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S19_DBEAlgorithmSuiteId((AWS.Cryptography.MaterialProviders.DBEAlgorithmSuiteId)value); } public static AWS.Cryptography.MaterialProviders.AlgorithmSuiteId FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S18_AlgorithmSuiteInfo__M2_id(software.amazon.cryptography.materialproviders.internaldafny.types._IAlgorithmSuiteId value) { @@ -1317,7 +1317,7 @@ public static AWS.Cryptography.MaterialProviders.AlgorithmSuiteId FromDafny_N3_a } public static software.amazon.cryptography.materialproviders.internaldafny.types._IAlgorithmSuiteId ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S18_AlgorithmSuiteInfo__M2_id(AWS.Cryptography.MaterialProviders.AlgorithmSuiteId value) { - return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S16_AlgorithmSuiteId(value); + return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S16_AlgorithmSuiteId((AWS.Cryptography.MaterialProviders.AlgorithmSuiteId)value); } public static System.IO.MemoryStream FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S18_AlgorithmSuiteInfo__M8_binaryId(Dafny.ISequence value) { @@ -1325,15 +1325,15 @@ public static System.IO.MemoryStream FromDafny_N3_aws__N12_cryptography__N17_mat } public static Dafny.ISequence ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S18_AlgorithmSuiteInfo__M8_binaryId(System.IO.MemoryStream value) { - return ToDafny_N6_smithy__N3_api__S4_Blob(value); + return ToDafny_N6_smithy__N3_api__S4_Blob((System.IO.MemoryStream)value); } - public static int FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S18_AlgorithmSuiteInfo__M14_messageVersion(int value) + public static int? FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S18_AlgorithmSuiteInfo__M14_messageVersion(int value) { return FromDafny_N6_smithy__N3_api__S7_Integer(value); } - public static int ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S18_AlgorithmSuiteInfo__M14_messageVersion(int value) + public static int ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S18_AlgorithmSuiteInfo__M14_messageVersion(int? value) { - return ToDafny_N6_smithy__N3_api__S7_Integer(value); + return ToDafny_N6_smithy__N3_api__S7_Integer((int)value); } public static AWS.Cryptography.MaterialProviders.Encrypt FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S18_AlgorithmSuiteInfo__M7_encrypt(software.amazon.cryptography.materialproviders.internaldafny.types._IEncrypt value) { @@ -1341,7 +1341,7 @@ public static AWS.Cryptography.MaterialProviders.Encrypt FromDafny_N3_aws__N12_c } public static software.amazon.cryptography.materialproviders.internaldafny.types._IEncrypt ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S18_AlgorithmSuiteInfo__M7_encrypt(AWS.Cryptography.MaterialProviders.Encrypt value) { - return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S7_Encrypt(value); + return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S7_Encrypt((AWS.Cryptography.MaterialProviders.Encrypt)value); } public static AWS.Cryptography.MaterialProviders.DerivationAlgorithm FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S18_AlgorithmSuiteInfo__M3_kdf(software.amazon.cryptography.materialproviders.internaldafny.types._IDerivationAlgorithm value) { @@ -1349,7 +1349,7 @@ public static AWS.Cryptography.MaterialProviders.DerivationAlgorithm FromDafny_N } public static software.amazon.cryptography.materialproviders.internaldafny.types._IDerivationAlgorithm ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S18_AlgorithmSuiteInfo__M3_kdf(AWS.Cryptography.MaterialProviders.DerivationAlgorithm value) { - return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S19_DerivationAlgorithm(value); + return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S19_DerivationAlgorithm((AWS.Cryptography.MaterialProviders.DerivationAlgorithm)value); } public static AWS.Cryptography.MaterialProviders.DerivationAlgorithm FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S18_AlgorithmSuiteInfo__M10_commitment(software.amazon.cryptography.materialproviders.internaldafny.types._IDerivationAlgorithm value) { @@ -1357,7 +1357,7 @@ public static AWS.Cryptography.MaterialProviders.DerivationAlgorithm FromDafny_N } public static software.amazon.cryptography.materialproviders.internaldafny.types._IDerivationAlgorithm ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S18_AlgorithmSuiteInfo__M10_commitment(AWS.Cryptography.MaterialProviders.DerivationAlgorithm value) { - return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S19_DerivationAlgorithm(value); + return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S19_DerivationAlgorithm((AWS.Cryptography.MaterialProviders.DerivationAlgorithm)value); } public static AWS.Cryptography.MaterialProviders.SignatureAlgorithm FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S18_AlgorithmSuiteInfo__M9_signature(software.amazon.cryptography.materialproviders.internaldafny.types._ISignatureAlgorithm value) { @@ -1365,7 +1365,7 @@ public static AWS.Cryptography.MaterialProviders.SignatureAlgorithm FromDafny_N3 } public static software.amazon.cryptography.materialproviders.internaldafny.types._ISignatureAlgorithm ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S18_AlgorithmSuiteInfo__M9_signature(AWS.Cryptography.MaterialProviders.SignatureAlgorithm value) { - return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S18_SignatureAlgorithm(value); + return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S18_SignatureAlgorithm((AWS.Cryptography.MaterialProviders.SignatureAlgorithm)value); } public static AWS.Cryptography.MaterialProviders.SymmetricSignatureAlgorithm FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S18_AlgorithmSuiteInfo__M18_symmetricSignature(software.amazon.cryptography.materialproviders.internaldafny.types._ISymmetricSignatureAlgorithm value) { @@ -1373,7 +1373,7 @@ public static AWS.Cryptography.MaterialProviders.SymmetricSignatureAlgorithm Fro } public static software.amazon.cryptography.materialproviders.internaldafny.types._ISymmetricSignatureAlgorithm ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S18_AlgorithmSuiteInfo__M18_symmetricSignature(AWS.Cryptography.MaterialProviders.SymmetricSignatureAlgorithm value) { - return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S27_SymmetricSignatureAlgorithm(value); + return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S27_SymmetricSignatureAlgorithm((AWS.Cryptography.MaterialProviders.SymmetricSignatureAlgorithm)value); } public static AWS.Cryptography.MaterialProviders.EdkWrappingAlgorithm FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S18_AlgorithmSuiteInfo__M11_edkWrapping(software.amazon.cryptography.materialproviders.internaldafny.types._IEdkWrappingAlgorithm value) { @@ -1381,7 +1381,7 @@ public static AWS.Cryptography.MaterialProviders.EdkWrappingAlgorithm FromDafny_ } public static software.amazon.cryptography.materialproviders.internaldafny.types._IEdkWrappingAlgorithm ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S18_AlgorithmSuiteInfo__M11_edkWrapping(AWS.Cryptography.MaterialProviders.EdkWrappingAlgorithm value) { - return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S20_EdkWrappingAlgorithm(value); + return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S20_EdkWrappingAlgorithm((AWS.Cryptography.MaterialProviders.EdkWrappingAlgorithm)value); } public static string FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S42_AwsCryptographicMaterialProvidersException__M7_message(Dafny.ISequence value) { @@ -1389,7 +1389,7 @@ public static string FromDafny_N3_aws__N12_cryptography__N17_materialProviders__ } public static Dafny.ISequence ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S42_AwsCryptographicMaterialProvidersException__M7_message(string value) { - return ToDafny_N6_smithy__N3_api__S6_String(value); + return ToDafny_N6_smithy__N3_api__S6_String((string)value); } public static AWS.Cryptography.MaterialProviders.DefaultCache FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S9_CacheType__M7_Default(software.amazon.cryptography.materialproviders.internaldafny.types._IDefaultCache value) { @@ -1397,7 +1397,7 @@ public static AWS.Cryptography.MaterialProviders.DefaultCache FromDafny_N3_aws__ } public static software.amazon.cryptography.materialproviders.internaldafny.types._IDefaultCache ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S9_CacheType__M7_Default(AWS.Cryptography.MaterialProviders.DefaultCache value) { - return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S12_DefaultCache(value); + return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S12_DefaultCache((AWS.Cryptography.MaterialProviders.DefaultCache)value); } public static AWS.Cryptography.MaterialProviders.NoCache FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S9_CacheType__M2_No(software.amazon.cryptography.materialproviders.internaldafny.types._INoCache value) { @@ -1405,7 +1405,7 @@ public static AWS.Cryptography.MaterialProviders.NoCache FromDafny_N3_aws__N12_c } public static software.amazon.cryptography.materialproviders.internaldafny.types._INoCache ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S9_CacheType__M2_No(AWS.Cryptography.MaterialProviders.NoCache value) { - return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S7_NoCache(value); + return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S7_NoCache((AWS.Cryptography.MaterialProviders.NoCache)value); } public static AWS.Cryptography.MaterialProviders.SingleThreadedCache FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S9_CacheType__M14_SingleThreaded(software.amazon.cryptography.materialproviders.internaldafny.types._ISingleThreadedCache value) { @@ -1413,7 +1413,7 @@ public static AWS.Cryptography.MaterialProviders.SingleThreadedCache FromDafny_N } public static software.amazon.cryptography.materialproviders.internaldafny.types._ISingleThreadedCache ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S9_CacheType__M14_SingleThreaded(AWS.Cryptography.MaterialProviders.SingleThreadedCache value) { - return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S19_SingleThreadedCache(value); + return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S19_SingleThreadedCache((AWS.Cryptography.MaterialProviders.SingleThreadedCache)value); } public static AWS.Cryptography.MaterialProviders.MultiThreadedCache FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S9_CacheType__M13_MultiThreaded(software.amazon.cryptography.materialproviders.internaldafny.types._IMultiThreadedCache value) { @@ -1421,7 +1421,7 @@ public static AWS.Cryptography.MaterialProviders.MultiThreadedCache FromDafny_N3 } public static software.amazon.cryptography.materialproviders.internaldafny.types._IMultiThreadedCache ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S9_CacheType__M13_MultiThreaded(AWS.Cryptography.MaterialProviders.MultiThreadedCache value) { - return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S18_MultiThreadedCache(value); + return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S18_MultiThreadedCache((AWS.Cryptography.MaterialProviders.MultiThreadedCache)value); } public static AWS.Cryptography.MaterialProviders.StormTrackingCache FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S9_CacheType__M13_StormTracking(software.amazon.cryptography.materialproviders.internaldafny.types._IStormTrackingCache value) { @@ -1429,7 +1429,7 @@ public static AWS.Cryptography.MaterialProviders.StormTrackingCache FromDafny_N3 } public static software.amazon.cryptography.materialproviders.internaldafny.types._IStormTrackingCache ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S9_CacheType__M13_StormTracking(AWS.Cryptography.MaterialProviders.StormTrackingCache value) { - return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S18_StormTrackingCache(value); + return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S18_StormTrackingCache((AWS.Cryptography.MaterialProviders.StormTrackingCache)value); } public static AWS.Cryptography.MaterialProviders.ICryptographicMaterialsCache FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S9_CacheType__M6_Shared(software.amazon.cryptography.materialproviders.internaldafny.types.ICryptographicMaterialsCache value) { @@ -1437,7 +1437,7 @@ public static AWS.Cryptography.MaterialProviders.ICryptographicMaterialsCache Fr } public static software.amazon.cryptography.materialproviders.internaldafny.types.ICryptographicMaterialsCache ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S9_CacheType__M6_Shared(AWS.Cryptography.MaterialProviders.ICryptographicMaterialsCache value) { - return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S36_CryptographicMaterialsCacheReference(value); + return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S36_CryptographicMaterialsCacheReference((AWS.Cryptography.MaterialProviders.ICryptographicMaterialsCache)value); } public static AWS.Cryptography.MaterialProviders.ESDKCommitmentPolicy FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S16_CommitmentPolicy__M4_ESDK(software.amazon.cryptography.materialproviders.internaldafny.types._IESDKCommitmentPolicy value) { @@ -1445,7 +1445,7 @@ public static AWS.Cryptography.MaterialProviders.ESDKCommitmentPolicy FromDafny_ } public static software.amazon.cryptography.materialproviders.internaldafny.types._IESDKCommitmentPolicy ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S16_CommitmentPolicy__M4_ESDK(AWS.Cryptography.MaterialProviders.ESDKCommitmentPolicy value) { - return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S20_ESDKCommitmentPolicy(value); + return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S20_ESDKCommitmentPolicy((AWS.Cryptography.MaterialProviders.ESDKCommitmentPolicy)value); } public static AWS.Cryptography.MaterialProviders.DBECommitmentPolicy FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S16_CommitmentPolicy__M3_DBE(software.amazon.cryptography.materialproviders.internaldafny.types._IDBECommitmentPolicy value) { @@ -1453,7 +1453,7 @@ public static AWS.Cryptography.MaterialProviders.DBECommitmentPolicy FromDafny_N } public static software.amazon.cryptography.materialproviders.internaldafny.types._IDBECommitmentPolicy ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S16_CommitmentPolicy__M3_DBE(AWS.Cryptography.MaterialProviders.DBECommitmentPolicy value) { - return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S19_DBECommitmentPolicy(value); + return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S19_DBECommitmentPolicy((AWS.Cryptography.MaterialProviders.DBECommitmentPolicy)value); } public static Amazon.KeyManagementService.IAmazonKeyManagementService FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S33_CreateAwsKmsDiscoveryKeyringInput__M9_kmsClient(software.amazon.cryptography.services.kms.internaldafny.types.IKMSClient value) { @@ -1461,7 +1461,7 @@ public static Amazon.KeyManagementService.IAmazonKeyManagementService FromDafny_ } public static software.amazon.cryptography.services.kms.internaldafny.types.IKMSClient ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S33_CreateAwsKmsDiscoveryKeyringInput__M9_kmsClient(Amazon.KeyManagementService.IAmazonKeyManagementService value) { - return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S18_KmsClientReference(value); + return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S18_KmsClientReference((Amazon.KeyManagementService.IAmazonKeyManagementService)value); } public static AWS.Cryptography.MaterialProviders.DiscoveryFilter FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S33_CreateAwsKmsDiscoveryKeyringInput__M15_discoveryFilter(Wrappers_Compile._IOption value) { @@ -1485,7 +1485,7 @@ public static System.Collections.Generic.List FromDafny_N3_aws__N12_cryp } public static Dafny.ISequence> ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S38_CreateAwsKmsDiscoveryMultiKeyringInput__M7_regions(System.Collections.Generic.List value) { - return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S10_RegionList(value); + return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S10_RegionList((System.Collections.Generic.List)value); } public static AWS.Cryptography.MaterialProviders.DiscoveryFilter FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S38_CreateAwsKmsDiscoveryMultiKeyringInput__M15_discoveryFilter(Wrappers_Compile._IOption value) { @@ -1517,7 +1517,7 @@ public static AWS.Cryptography.MaterialProviders.KmsEcdhStaticConfigurations Fro } public static software.amazon.cryptography.materialproviders.internaldafny.types._IKmsEcdhStaticConfigurations ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S28_CreateAwsKmsEcdhKeyringInput__M18_KeyAgreementScheme(AWS.Cryptography.MaterialProviders.KmsEcdhStaticConfigurations value) { - return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S27_KmsEcdhStaticConfigurations(value); + return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S27_KmsEcdhStaticConfigurations((AWS.Cryptography.MaterialProviders.KmsEcdhStaticConfigurations)value); } public static AWS.Cryptography.Primitives.ECDHCurveSpec FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S28_CreateAwsKmsEcdhKeyringInput__M9_curveSpec(software.amazon.cryptography.primitives.internaldafny.types._IECDHCurveSpec value) { @@ -1525,7 +1525,7 @@ public static AWS.Cryptography.Primitives.ECDHCurveSpec FromDafny_N3_aws__N12_cr } public static software.amazon.cryptography.primitives.internaldafny.types._IECDHCurveSpec ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S28_CreateAwsKmsEcdhKeyringInput__M9_curveSpec(AWS.Cryptography.Primitives.ECDHCurveSpec value) { - return ToDafny_N3_aws__N12_cryptography__N10_primitives__S13_ECDHCurveSpec(value); + return ToDafny_N3_aws__N12_cryptography__N10_primitives__S13_ECDHCurveSpec((AWS.Cryptography.Primitives.ECDHCurveSpec)value); } public static Amazon.KeyManagementService.IAmazonKeyManagementService FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S28_CreateAwsKmsEcdhKeyringInput__M9_kmsClient(software.amazon.cryptography.services.kms.internaldafny.types.IKMSClient value) { @@ -1533,7 +1533,7 @@ public static Amazon.KeyManagementService.IAmazonKeyManagementService FromDafny_ } public static software.amazon.cryptography.services.kms.internaldafny.types.IKMSClient ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S28_CreateAwsKmsEcdhKeyringInput__M9_kmsClient(Amazon.KeyManagementService.IAmazonKeyManagementService value) { - return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S18_KmsClientReference(value); + return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S18_KmsClientReference((Amazon.KeyManagementService.IAmazonKeyManagementService)value); } public static System.Collections.Generic.List FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S28_CreateAwsKmsEcdhKeyringInput__M11_grantTokens(Wrappers_Compile._IOption>> value) { @@ -1565,15 +1565,15 @@ public static AWS.Cryptography.KeyStore.KeyStore FromDafny_N3_aws__N12_cryptogra } public static software.amazon.cryptography.keystore.internaldafny.types.IKeyStoreClient ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S36_CreateAwsKmsHierarchicalKeyringInput__M8_keyStore(AWS.Cryptography.KeyStore.KeyStore value) { - return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S17_KeyStoreReference(value); + return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S17_KeyStoreReference((AWS.Cryptography.KeyStore.KeyStore)value); } - public static long FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S36_CreateAwsKmsHierarchicalKeyringInput__M10_ttlSeconds(long value) + public static long? FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S36_CreateAwsKmsHierarchicalKeyringInput__M10_ttlSeconds(long value) { return FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S12_PositiveLong(value); } - public static long ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S36_CreateAwsKmsHierarchicalKeyringInput__M10_ttlSeconds(long value) + public static long ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S36_CreateAwsKmsHierarchicalKeyringInput__M10_ttlSeconds(long? value) { - return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S12_PositiveLong(value); + return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S12_PositiveLong((long)value); } public static AWS.Cryptography.MaterialProviders.CacheType FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S36_CreateAwsKmsHierarchicalKeyringInput__M5_cache(Wrappers_Compile._IOption value) { @@ -1597,7 +1597,7 @@ public static string FromDafny_N3_aws__N12_cryptography__N17_materialProviders__ } public static Dafny.ISequence ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S24_CreateAwsKmsKeyringInput__M8_kmsKeyId(string value) { - return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S8_KmsKeyId(value); + return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S8_KmsKeyId((string)value); } public static Amazon.KeyManagementService.IAmazonKeyManagementService FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S24_CreateAwsKmsKeyringInput__M9_kmsClient(software.amazon.cryptography.services.kms.internaldafny.types.IKMSClient value) { @@ -1605,7 +1605,7 @@ public static Amazon.KeyManagementService.IAmazonKeyManagementService FromDafny_ } public static software.amazon.cryptography.services.kms.internaldafny.types.IKMSClient ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S24_CreateAwsKmsKeyringInput__M9_kmsClient(Amazon.KeyManagementService.IAmazonKeyManagementService value) { - return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S18_KmsClientReference(value); + return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S18_KmsClientReference((Amazon.KeyManagementService.IAmazonKeyManagementService)value); } public static System.Collections.Generic.List FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S24_CreateAwsKmsKeyringInput__M11_grantTokens(Wrappers_Compile._IOption>> value) { @@ -1621,7 +1621,7 @@ public static Amazon.KeyManagementService.IAmazonKeyManagementService FromDafny_ } public static software.amazon.cryptography.services.kms.internaldafny.types.IKMSClient ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S36_CreateAwsKmsMrkDiscoveryKeyringInput__M9_kmsClient(Amazon.KeyManagementService.IAmazonKeyManagementService value) { - return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S18_KmsClientReference(value); + return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S18_KmsClientReference((Amazon.KeyManagementService.IAmazonKeyManagementService)value); } public static AWS.Cryptography.MaterialProviders.DiscoveryFilter FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S36_CreateAwsKmsMrkDiscoveryKeyringInput__M15_discoveryFilter(Wrappers_Compile._IOption value) { @@ -1645,7 +1645,7 @@ public static string FromDafny_N3_aws__N12_cryptography__N17_materialProviders__ } public static Dafny.ISequence ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S36_CreateAwsKmsMrkDiscoveryKeyringInput__M6_region(string value) { - return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S6_Region(value); + return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S6_Region((string)value); } public static System.Collections.Generic.List FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S41_CreateAwsKmsMrkDiscoveryMultiKeyringInput__M7_regions(Dafny.ISequence> value) { @@ -1653,7 +1653,7 @@ public static System.Collections.Generic.List FromDafny_N3_aws__N12_cryp } public static Dafny.ISequence> ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S41_CreateAwsKmsMrkDiscoveryMultiKeyringInput__M7_regions(System.Collections.Generic.List value) { - return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S10_RegionList(value); + return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S10_RegionList((System.Collections.Generic.List)value); } public static AWS.Cryptography.MaterialProviders.DiscoveryFilter FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S41_CreateAwsKmsMrkDiscoveryMultiKeyringInput__M15_discoveryFilter(Wrappers_Compile._IOption value) { @@ -1685,7 +1685,7 @@ public static string FromDafny_N3_aws__N12_cryptography__N17_materialProviders__ } public static Dafny.ISequence ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S27_CreateAwsKmsMrkKeyringInput__M8_kmsKeyId(string value) { - return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S8_KmsKeyId(value); + return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S8_KmsKeyId((string)value); } public static Amazon.KeyManagementService.IAmazonKeyManagementService FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S27_CreateAwsKmsMrkKeyringInput__M9_kmsClient(software.amazon.cryptography.services.kms.internaldafny.types.IKMSClient value) { @@ -1693,7 +1693,7 @@ public static Amazon.KeyManagementService.IAmazonKeyManagementService FromDafny_ } public static software.amazon.cryptography.services.kms.internaldafny.types.IKMSClient ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S27_CreateAwsKmsMrkKeyringInput__M9_kmsClient(Amazon.KeyManagementService.IAmazonKeyManagementService value) { - return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S18_KmsClientReference(value); + return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S18_KmsClientReference((Amazon.KeyManagementService.IAmazonKeyManagementService)value); } public static System.Collections.Generic.List FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S27_CreateAwsKmsMrkKeyringInput__M11_grantTokens(Wrappers_Compile._IOption>> value) { @@ -1781,7 +1781,7 @@ public static string FromDafny_N3_aws__N12_cryptography__N17_materialProviders__ } public static Dafny.ISequence ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S27_CreateAwsKmsRsaKeyringInput__M8_kmsKeyId(string value) { - return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S8_KmsKeyId(value); + return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S8_KmsKeyId((string)value); } public static Amazon.KeyManagementService.EncryptionAlgorithmSpec FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S27_CreateAwsKmsRsaKeyringInput__M19_encryptionAlgorithm(software.amazon.cryptography.services.kms.internaldafny.types._IEncryptionAlgorithmSpec value) { @@ -1789,7 +1789,7 @@ public static Amazon.KeyManagementService.EncryptionAlgorithmSpec FromDafny_N3_a } public static software.amazon.cryptography.services.kms.internaldafny.types._IEncryptionAlgorithmSpec ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S27_CreateAwsKmsRsaKeyringInput__M19_encryptionAlgorithm(Amazon.KeyManagementService.EncryptionAlgorithmSpec value) { - return ToDafny_N3_com__N9_amazonaws__N3_kms__S23_EncryptionAlgorithmSpec(value); + return ToDafny_N3_com__N9_amazonaws__N3_kms__S23_EncryptionAlgorithmSpec((Amazon.KeyManagementService.EncryptionAlgorithmSpec)value); } public static Amazon.KeyManagementService.IAmazonKeyManagementService FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S27_CreateAwsKmsRsaKeyringInput__M9_kmsClient(Wrappers_Compile._IOption value) { @@ -1813,7 +1813,7 @@ public static AWS.Cryptography.MaterialProviders.CacheType FromDafny_N3_aws__N12 } public static software.amazon.cryptography.materialproviders.internaldafny.types._ICacheType ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S38_CreateCryptographicMaterialsCacheInput__M5_cache(AWS.Cryptography.MaterialProviders.CacheType value) { - return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S9_CacheType(value); + return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S9_CacheType((AWS.Cryptography.MaterialProviders.CacheType)value); } public static AWS.Cryptography.MaterialProviders.ICryptographicMaterialsCache FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S39_CreateCryptographicMaterialsCacheOutput__M14_materialsCache(software.amazon.cryptography.materialproviders.internaldafny.types.ICryptographicMaterialsCache value) { @@ -1821,7 +1821,7 @@ public static AWS.Cryptography.MaterialProviders.ICryptographicMaterialsCache Fr } public static software.amazon.cryptography.materialproviders.internaldafny.types.ICryptographicMaterialsCache ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S39_CreateCryptographicMaterialsCacheOutput__M14_materialsCache(AWS.Cryptography.MaterialProviders.ICryptographicMaterialsCache value) { - return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S36_CryptographicMaterialsCacheReference(value); + return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S36_CryptographicMaterialsCacheReference((AWS.Cryptography.MaterialProviders.ICryptographicMaterialsCache)value); } public static AWS.Cryptography.MaterialProviders.ICryptographicMaterialsManager FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S41_CreateCryptographicMaterialsManagerOutput__M16_materialsManager(software.amazon.cryptography.materialproviders.internaldafny.types.ICryptographicMaterialsManager value) { @@ -1829,7 +1829,7 @@ public static AWS.Cryptography.MaterialProviders.ICryptographicMaterialsManager } public static software.amazon.cryptography.materialproviders.internaldafny.types.ICryptographicMaterialsManager ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S41_CreateCryptographicMaterialsManagerOutput__M16_materialsManager(AWS.Cryptography.MaterialProviders.ICryptographicMaterialsManager value) { - return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S38_CryptographicMaterialsManagerReference(value); + return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S38_CryptographicMaterialsManagerReference((AWS.Cryptography.MaterialProviders.ICryptographicMaterialsManager)value); } public static AWS.Cryptography.MaterialProviders.IClientSupplier FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S33_CreateDefaultClientSupplierOutput__M6_client(software.amazon.cryptography.materialproviders.internaldafny.types.IClientSupplier value) { @@ -1837,7 +1837,7 @@ public static AWS.Cryptography.MaterialProviders.IClientSupplier FromDafny_N3_aw } public static software.amazon.cryptography.materialproviders.internaldafny.types.IClientSupplier ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S33_CreateDefaultClientSupplierOutput__M6_client(AWS.Cryptography.MaterialProviders.IClientSupplier value) { - return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S23_ClientSupplierReference(value); + return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S23_ClientSupplierReference((AWS.Cryptography.MaterialProviders.IClientSupplier)value); } public static AWS.Cryptography.MaterialProviders.IKeyring FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S47_CreateDefaultCryptographicMaterialsManagerInput__M7_keyring(software.amazon.cryptography.materialproviders.internaldafny.types.IKeyring value) { @@ -1845,7 +1845,7 @@ public static AWS.Cryptography.MaterialProviders.IKeyring FromDafny_N3_aws__N12_ } public static software.amazon.cryptography.materialproviders.internaldafny.types.IKeyring ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S47_CreateDefaultCryptographicMaterialsManagerInput__M7_keyring(AWS.Cryptography.MaterialProviders.IKeyring value) { - return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S16_KeyringReference(value); + return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S16_KeyringReference((AWS.Cryptography.MaterialProviders.IKeyring)value); } public static AWS.Cryptography.MaterialProviders.IKeyring FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S19_CreateKeyringOutput__M7_keyring(software.amazon.cryptography.materialproviders.internaldafny.types.IKeyring value) { @@ -1853,7 +1853,7 @@ public static AWS.Cryptography.MaterialProviders.IKeyring FromDafny_N3_aws__N12_ } public static software.amazon.cryptography.materialproviders.internaldafny.types.IKeyring ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S19_CreateKeyringOutput__M7_keyring(AWS.Cryptography.MaterialProviders.IKeyring value) { - return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S16_KeyringReference(value); + return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S16_KeyringReference((AWS.Cryptography.MaterialProviders.IKeyring)value); } public static AWS.Cryptography.MaterialProviders.IKeyring FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S23_CreateMultiKeyringInput__M9_generator(Wrappers_Compile._IOption value) { @@ -1869,7 +1869,7 @@ public static AWS.Cryptography.MaterialProviders.IKeyring FromDafny_N3_aws__N12_ } public static Dafny.ISequence ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S23_CreateMultiKeyringInput__M13_childKeyrings(System.Collections.Generic.List value) { - return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S11_KeyringList(value); + return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S11_KeyringList((System.Collections.Generic.List)value); } public static string FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S24_CreateRawAesKeyringInput__M12_keyNamespace(Dafny.ISequence value) { @@ -1877,7 +1877,7 @@ public static string FromDafny_N3_aws__N12_cryptography__N17_materialProviders__ } public static Dafny.ISequence ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S24_CreateRawAesKeyringInput__M12_keyNamespace(string value) { - return ToDafny_N6_smithy__N3_api__S6_String(value); + return ToDafny_N6_smithy__N3_api__S6_String((string)value); } public static string FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S24_CreateRawAesKeyringInput__M7_keyName(Dafny.ISequence value) { @@ -1885,7 +1885,7 @@ public static string FromDafny_N3_aws__N12_cryptography__N17_materialProviders__ } public static Dafny.ISequence ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S24_CreateRawAesKeyringInput__M7_keyName(string value) { - return ToDafny_N6_smithy__N3_api__S6_String(value); + return ToDafny_N6_smithy__N3_api__S6_String((string)value); } public static System.IO.MemoryStream FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S24_CreateRawAesKeyringInput__M11_wrappingKey(Dafny.ISequence value) { @@ -1893,7 +1893,7 @@ public static System.IO.MemoryStream FromDafny_N3_aws__N12_cryptography__N17_mat } public static Dafny.ISequence ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S24_CreateRawAesKeyringInput__M11_wrappingKey(System.IO.MemoryStream value) { - return ToDafny_N6_smithy__N3_api__S4_Blob(value); + return ToDafny_N6_smithy__N3_api__S4_Blob((System.IO.MemoryStream)value); } public static AWS.Cryptography.MaterialProviders.AesWrappingAlg FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S24_CreateRawAesKeyringInput__M11_wrappingAlg(software.amazon.cryptography.materialproviders.internaldafny.types._IAesWrappingAlg value) { @@ -1901,7 +1901,7 @@ public static AWS.Cryptography.MaterialProviders.AesWrappingAlg FromDafny_N3_aws } public static software.amazon.cryptography.materialproviders.internaldafny.types._IAesWrappingAlg ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S24_CreateRawAesKeyringInput__M11_wrappingAlg(AWS.Cryptography.MaterialProviders.AesWrappingAlg value) { - return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S14_AesWrappingAlg(value); + return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S14_AesWrappingAlg((AWS.Cryptography.MaterialProviders.AesWrappingAlg)value); } public static AWS.Cryptography.MaterialProviders.RawEcdhStaticConfigurations FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S25_CreateRawEcdhKeyringInput__M18_KeyAgreementScheme(software.amazon.cryptography.materialproviders.internaldafny.types._IRawEcdhStaticConfigurations value) { @@ -1909,7 +1909,7 @@ public static AWS.Cryptography.MaterialProviders.RawEcdhStaticConfigurations Fro } public static software.amazon.cryptography.materialproviders.internaldafny.types._IRawEcdhStaticConfigurations ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S25_CreateRawEcdhKeyringInput__M18_KeyAgreementScheme(AWS.Cryptography.MaterialProviders.RawEcdhStaticConfigurations value) { - return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S27_RawEcdhStaticConfigurations(value); + return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S27_RawEcdhStaticConfigurations((AWS.Cryptography.MaterialProviders.RawEcdhStaticConfigurations)value); } public static AWS.Cryptography.Primitives.ECDHCurveSpec FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S25_CreateRawEcdhKeyringInput__M9_curveSpec(software.amazon.cryptography.primitives.internaldafny.types._IECDHCurveSpec value) { @@ -1917,7 +1917,7 @@ public static AWS.Cryptography.Primitives.ECDHCurveSpec FromDafny_N3_aws__N12_cr } public static software.amazon.cryptography.primitives.internaldafny.types._IECDHCurveSpec ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S25_CreateRawEcdhKeyringInput__M9_curveSpec(AWS.Cryptography.Primitives.ECDHCurveSpec value) { - return ToDafny_N3_aws__N12_cryptography__N10_primitives__S13_ECDHCurveSpec(value); + return ToDafny_N3_aws__N12_cryptography__N10_primitives__S13_ECDHCurveSpec((AWS.Cryptography.Primitives.ECDHCurveSpec)value); } public static string FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S24_CreateRawRsaKeyringInput__M12_keyNamespace(Dafny.ISequence value) { @@ -1925,7 +1925,7 @@ public static string FromDafny_N3_aws__N12_cryptography__N17_materialProviders__ } public static Dafny.ISequence ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S24_CreateRawRsaKeyringInput__M12_keyNamespace(string value) { - return ToDafny_N6_smithy__N3_api__S6_String(value); + return ToDafny_N6_smithy__N3_api__S6_String((string)value); } public static string FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S24_CreateRawRsaKeyringInput__M7_keyName(Dafny.ISequence value) { @@ -1933,7 +1933,7 @@ public static string FromDafny_N3_aws__N12_cryptography__N17_materialProviders__ } public static Dafny.ISequence ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S24_CreateRawRsaKeyringInput__M7_keyName(string value) { - return ToDafny_N6_smithy__N3_api__S6_String(value); + return ToDafny_N6_smithy__N3_api__S6_String((string)value); } public static AWS.Cryptography.MaterialProviders.PaddingScheme FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S24_CreateRawRsaKeyringInput__M13_paddingScheme(software.amazon.cryptography.materialproviders.internaldafny.types._IPaddingScheme value) { @@ -1941,7 +1941,7 @@ public static AWS.Cryptography.MaterialProviders.PaddingScheme FromDafny_N3_aws_ } public static software.amazon.cryptography.materialproviders.internaldafny.types._IPaddingScheme ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S24_CreateRawRsaKeyringInput__M13_paddingScheme(AWS.Cryptography.MaterialProviders.PaddingScheme value) { - return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S13_PaddingScheme(value); + return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S13_PaddingScheme((AWS.Cryptography.MaterialProviders.PaddingScheme)value); } public static System.IO.MemoryStream FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S24_CreateRawRsaKeyringInput__M9_publicKey(Wrappers_Compile._IOption> value) { @@ -1981,7 +1981,7 @@ public static System.Collections.Generic.List FromDafny_N3_aws__N12_cryp } public static Dafny.ISequence> ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S39_CreateRequiredEncryptionContextCMMInput__M29_requiredEncryptionContextKeys(System.Collections.Generic.List value) { - return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S21_EncryptionContextKeys(value); + return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S21_EncryptionContextKeys((System.Collections.Generic.List)value); } public static AWS.Cryptography.MaterialProviders.ICryptographicMaterialsManager FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S40_CreateRequiredEncryptionContextCMMOutput__M16_materialsManager(software.amazon.cryptography.materialproviders.internaldafny.types.ICryptographicMaterialsManager value) { @@ -1989,7 +1989,7 @@ public static AWS.Cryptography.MaterialProviders.ICryptographicMaterialsManager } public static software.amazon.cryptography.materialproviders.internaldafny.types.ICryptographicMaterialsManager ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S40_CreateRequiredEncryptionContextCMMOutput__M16_materialsManager(AWS.Cryptography.MaterialProviders.ICryptographicMaterialsManager value) { - return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S38_CryptographicMaterialsManagerReference(value); + return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S38_CryptographicMaterialsManagerReference((AWS.Cryptography.MaterialProviders.ICryptographicMaterialsManager)value); } public static AWS.Cryptography.MaterialProviders.AlgorithmSuiteInfo FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S19_DecryptionMaterials__M14_algorithmSuite(software.amazon.cryptography.materialproviders.internaldafny.types._IAlgorithmSuiteInfo value) { @@ -1997,7 +1997,7 @@ public static AWS.Cryptography.MaterialProviders.AlgorithmSuiteInfo FromDafny_N3 } public static software.amazon.cryptography.materialproviders.internaldafny.types._IAlgorithmSuiteInfo ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S19_DecryptionMaterials__M14_algorithmSuite(AWS.Cryptography.MaterialProviders.AlgorithmSuiteInfo value) { - return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S18_AlgorithmSuiteInfo(value); + return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S18_AlgorithmSuiteInfo((AWS.Cryptography.MaterialProviders.AlgorithmSuiteInfo)value); } public static System.Collections.Generic.Dictionary FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S19_DecryptionMaterials__M17_encryptionContext(Dafny.IMap, Dafny.ISequence> value) { @@ -2005,7 +2005,7 @@ public static System.Collections.Generic.Dictionary FromDafny_N3 } public static Dafny.IMap, Dafny.ISequence> ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S19_DecryptionMaterials__M17_encryptionContext(System.Collections.Generic.Dictionary value) { - return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S17_EncryptionContext(value); + return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S17_EncryptionContext((System.Collections.Generic.Dictionary)value); } public static System.Collections.Generic.List FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S19_DecryptionMaterials__M29_requiredEncryptionContextKeys(Dafny.ISequence> value) { @@ -2013,7 +2013,7 @@ public static System.Collections.Generic.List FromDafny_N3_aws__N12_cryp } public static Dafny.ISequence> ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S19_DecryptionMaterials__M29_requiredEncryptionContextKeys(System.Collections.Generic.List value) { - return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S21_EncryptionContextKeys(value); + return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S21_EncryptionContextKeys((System.Collections.Generic.List)value); } public static System.IO.MemoryStream FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S19_DecryptionMaterials__M16_plaintextDataKey(Wrappers_Compile._IOption> value) { @@ -2045,7 +2045,7 @@ public static AWS.Cryptography.MaterialProviders.AlgorithmSuiteId FromDafny_N3_a } public static software.amazon.cryptography.materialproviders.internaldafny.types._IAlgorithmSuiteId ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S21_DecryptMaterialsInput__M16_algorithmSuiteId(AWS.Cryptography.MaterialProviders.AlgorithmSuiteId value) { - return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S16_AlgorithmSuiteId(value); + return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S16_AlgorithmSuiteId((AWS.Cryptography.MaterialProviders.AlgorithmSuiteId)value); } public static AWS.Cryptography.MaterialProviders.CommitmentPolicy FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S21_DecryptMaterialsInput__M16_commitmentPolicy(software.amazon.cryptography.materialproviders.internaldafny.types._ICommitmentPolicy value) { @@ -2053,7 +2053,7 @@ public static AWS.Cryptography.MaterialProviders.CommitmentPolicy FromDafny_N3_a } public static software.amazon.cryptography.materialproviders.internaldafny.types._ICommitmentPolicy ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S21_DecryptMaterialsInput__M16_commitmentPolicy(AWS.Cryptography.MaterialProviders.CommitmentPolicy value) { - return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S16_CommitmentPolicy(value); + return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S16_CommitmentPolicy((AWS.Cryptography.MaterialProviders.CommitmentPolicy)value); } public static System.Collections.Generic.List FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S21_DecryptMaterialsInput__M17_encryptedDataKeys(Dafny.ISequence value) { @@ -2061,7 +2061,7 @@ public static software.amazon.cryptography.materialproviders.internaldafny.types } public static Dafny.ISequence ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S21_DecryptMaterialsInput__M17_encryptedDataKeys(System.Collections.Generic.List value) { - return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S20_EncryptedDataKeyList(value); + return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S20_EncryptedDataKeyList((System.Collections.Generic.List)value); } public static System.Collections.Generic.Dictionary FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S21_DecryptMaterialsInput__M17_encryptionContext(Dafny.IMap, Dafny.ISequence> value) { @@ -2069,7 +2069,7 @@ public static System.Collections.Generic.Dictionary FromDafny_N3 } public static Dafny.IMap, Dafny.ISequence> ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S21_DecryptMaterialsInput__M17_encryptionContext(System.Collections.Generic.Dictionary value) { - return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S17_EncryptionContext(value); + return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S17_EncryptionContext((System.Collections.Generic.Dictionary)value); } public static System.Collections.Generic.Dictionary FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S21_DecryptMaterialsInput__M27_reproducedEncryptionContext(Wrappers_Compile._IOption, Dafny.ISequence>> value) { @@ -2085,7 +2085,7 @@ public static AWS.Cryptography.MaterialProviders.DecryptionMaterials FromDafny_N } public static software.amazon.cryptography.materialproviders.internaldafny.types._IDecryptionMaterials ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S22_DecryptMaterialsOutput__M19_decryptionMaterials(AWS.Cryptography.MaterialProviders.DecryptionMaterials value) { - return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S19_DecryptionMaterials(value); + return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S19_DecryptionMaterials((AWS.Cryptography.MaterialProviders.DecryptionMaterials)value); } public static System.IO.MemoryStream FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S21_DeleteCacheEntryInput__M10_identifier(Dafny.ISequence value) { @@ -2093,7 +2093,7 @@ public static System.IO.MemoryStream FromDafny_N3_aws__N12_cryptography__N17_mat } public static Dafny.ISequence ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S21_DeleteCacheEntryInput__M10_identifier(System.IO.MemoryStream value) { - return ToDafny_N6_smithy__N3_api__S4_Blob(value); + return ToDafny_N6_smithy__N3_api__S4_Blob((System.IO.MemoryStream)value); } public static AWS.Cryptography.MaterialProviders.HKDF FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S19_DerivationAlgorithm__M4_HKDF(software.amazon.cryptography.materialproviders.internaldafny.types._IHKDF value) { @@ -2101,7 +2101,7 @@ public static AWS.Cryptography.MaterialProviders.HKDF FromDafny_N3_aws__N12_cryp } public static software.amazon.cryptography.materialproviders.internaldafny.types._IHKDF ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S19_DerivationAlgorithm__M4_HKDF(AWS.Cryptography.MaterialProviders.HKDF value) { - return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S4_HKDF(value); + return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S4_HKDF((AWS.Cryptography.MaterialProviders.HKDF)value); } public static AWS.Cryptography.MaterialProviders.IDENTITY FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S19_DerivationAlgorithm__M8_IDENTITY(software.amazon.cryptography.materialproviders.internaldafny.types._IIDENTITY value) { @@ -2109,7 +2109,7 @@ public static AWS.Cryptography.MaterialProviders.IDENTITY FromDafny_N3_aws__N12_ } public static software.amazon.cryptography.materialproviders.internaldafny.types._IIDENTITY ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S19_DerivationAlgorithm__M8_IDENTITY(AWS.Cryptography.MaterialProviders.IDENTITY value) { - return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S8_IDENTITY(value); + return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S8_IDENTITY((AWS.Cryptography.MaterialProviders.IDENTITY)value); } public static AWS.Cryptography.MaterialProviders.None FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S19_DerivationAlgorithm__M4_None(software.amazon.cryptography.materialproviders.internaldafny.types._INone value) { @@ -2117,7 +2117,7 @@ public static AWS.Cryptography.MaterialProviders.None FromDafny_N3_aws__N12_cryp } public static software.amazon.cryptography.materialproviders.internaldafny.types._INone ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S19_DerivationAlgorithm__M4_None(AWS.Cryptography.MaterialProviders.None value) { - return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S4_None(value); + return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S4_None((AWS.Cryptography.MaterialProviders.None)value); } public static AWS.Cryptography.MaterialProviders.DIRECT_KEY_WRAPPING FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S20_EdkWrappingAlgorithm__M19_DIRECT_KEY_WRAPPING(software.amazon.cryptography.materialproviders.internaldafny.types._IDIRECT__KEY__WRAPPING value) { @@ -2125,7 +2125,7 @@ public static AWS.Cryptography.MaterialProviders.DIRECT_KEY_WRAPPING FromDafny_N } public static software.amazon.cryptography.materialproviders.internaldafny.types._IDIRECT__KEY__WRAPPING ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S20_EdkWrappingAlgorithm__M19_DIRECT_KEY_WRAPPING(AWS.Cryptography.MaterialProviders.DIRECT_KEY_WRAPPING value) { - return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S19_DIRECT_KEY_WRAPPING(value); + return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S19_DIRECT_KEY_WRAPPING((AWS.Cryptography.MaterialProviders.DIRECT_KEY_WRAPPING)value); } public static AWS.Cryptography.MaterialProviders.IntermediateKeyWrapping FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S20_EdkWrappingAlgorithm__M23_IntermediateKeyWrapping(software.amazon.cryptography.materialproviders.internaldafny.types._IIntermediateKeyWrapping value) { @@ -2133,7 +2133,7 @@ public static AWS.Cryptography.MaterialProviders.IntermediateKeyWrapping FromDaf } public static software.amazon.cryptography.materialproviders.internaldafny.types._IIntermediateKeyWrapping ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S20_EdkWrappingAlgorithm__M23_IntermediateKeyWrapping(AWS.Cryptography.MaterialProviders.IntermediateKeyWrapping value) { - return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S23_IntermediateKeyWrapping(value); + return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S23_IntermediateKeyWrapping((AWS.Cryptography.MaterialProviders.IntermediateKeyWrapping)value); } public static AWS.Cryptography.Primitives.AES_GCM FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S7_Encrypt__M7_AES_GCM(software.amazon.cryptography.primitives.internaldafny.types._IAES__GCM value) { @@ -2141,7 +2141,7 @@ public static AWS.Cryptography.Primitives.AES_GCM FromDafny_N3_aws__N12_cryptogr } public static software.amazon.cryptography.primitives.internaldafny.types._IAES__GCM ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S7_Encrypt__M7_AES_GCM(AWS.Cryptography.Primitives.AES_GCM value) { - return ToDafny_N3_aws__N12_cryptography__N10_primitives__S7_AES_GCM(value); + return ToDafny_N3_aws__N12_cryptography__N10_primitives__S7_AES_GCM((AWS.Cryptography.Primitives.AES_GCM)value); } public static AWS.Cryptography.MaterialProviders.AlgorithmSuiteInfo FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S19_EncryptionMaterials__M14_algorithmSuite(software.amazon.cryptography.materialproviders.internaldafny.types._IAlgorithmSuiteInfo value) { @@ -2149,7 +2149,7 @@ public static AWS.Cryptography.MaterialProviders.AlgorithmSuiteInfo FromDafny_N3 } public static software.amazon.cryptography.materialproviders.internaldafny.types._IAlgorithmSuiteInfo ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S19_EncryptionMaterials__M14_algorithmSuite(AWS.Cryptography.MaterialProviders.AlgorithmSuiteInfo value) { - return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S18_AlgorithmSuiteInfo(value); + return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S18_AlgorithmSuiteInfo((AWS.Cryptography.MaterialProviders.AlgorithmSuiteInfo)value); } public static System.Collections.Generic.Dictionary FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S19_EncryptionMaterials__M17_encryptionContext(Dafny.IMap, Dafny.ISequence> value) { @@ -2157,7 +2157,7 @@ public static System.Collections.Generic.Dictionary FromDafny_N3 } public static Dafny.IMap, Dafny.ISequence> ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S19_EncryptionMaterials__M17_encryptionContext(System.Collections.Generic.Dictionary value) { - return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S17_EncryptionContext(value); + return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S17_EncryptionContext((System.Collections.Generic.Dictionary)value); } public static System.Collections.Generic.List FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S19_EncryptionMaterials__M17_encryptedDataKeys(Dafny.ISequence value) { @@ -2165,7 +2165,7 @@ public static System.Collections.Generic.Dictionary FromDafny_N3 } public static Dafny.ISequence ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S19_EncryptionMaterials__M17_encryptedDataKeys(System.Collections.Generic.List value) { - return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S20_EncryptedDataKeyList(value); + return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S20_EncryptedDataKeyList((System.Collections.Generic.List)value); } public static System.Collections.Generic.List FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S19_EncryptionMaterials__M29_requiredEncryptionContextKeys(Dafny.ISequence> value) { @@ -2173,7 +2173,7 @@ public static System.Collections.Generic.List FromDafny_N3_aws__N12_cryp } public static Dafny.ISequence> ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S19_EncryptionMaterials__M29_requiredEncryptionContextKeys(System.Collections.Generic.List value) { - return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S21_EncryptionContextKeys(value); + return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S21_EncryptionContextKeys((System.Collections.Generic.List)value); } public static System.IO.MemoryStream FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S19_EncryptionMaterials__M16_plaintextDataKey(Wrappers_Compile._IOption> value) { @@ -2205,7 +2205,7 @@ public static string FromDafny_N3_aws__N12_cryptography__N17_materialProviders__ } public static Dafny.ISequence ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S18_EntryAlreadyExists__M7_message(string value) { - return ToDafny_N6_smithy__N3_api__S6_String(value); + return ToDafny_N6_smithy__N3_api__S6_String((string)value); } public static string FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S17_EntryDoesNotExist__M7_message(Dafny.ISequence value) { @@ -2213,7 +2213,7 @@ public static string FromDafny_N3_aws__N12_cryptography__N17_materialProviders__ } public static Dafny.ISequence ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S17_EntryDoesNotExist__M7_message(string value) { - return ToDafny_N6_smithy__N3_api__S6_String(value); + return ToDafny_N6_smithy__N3_api__S6_String((string)value); } public static System.IO.MemoryStream FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S26_GetAlgorithmSuiteInfoInput__M8_binaryId(Dafny.ISequence value) { @@ -2221,7 +2221,7 @@ public static System.IO.MemoryStream FromDafny_N3_aws__N12_cryptography__N17_mat } public static Dafny.ISequence ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S26_GetAlgorithmSuiteInfoInput__M8_binaryId(System.IO.MemoryStream value) { - return ToDafny_N6_smithy__N3_api__S4_Blob(value); + return ToDafny_N6_smithy__N3_api__S4_Blob((System.IO.MemoryStream)value); } public static System.Collections.Generic.Dictionary FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S19_GetBranchKeyIdInput__M17_encryptionContext(Dafny.IMap, Dafny.ISequence> value) { @@ -2229,7 +2229,7 @@ public static System.Collections.Generic.Dictionary FromDafny_N3 } public static Dafny.IMap, Dafny.ISequence> ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S19_GetBranchKeyIdInput__M17_encryptionContext(System.Collections.Generic.Dictionary value) { - return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S17_EncryptionContext(value); + return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S17_EncryptionContext((System.Collections.Generic.Dictionary)value); } public static string FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S20_GetBranchKeyIdOutput__M11_branchKeyId(Dafny.ISequence value) { @@ -2237,7 +2237,7 @@ public static string FromDafny_N3_aws__N12_cryptography__N17_materialProviders__ } public static Dafny.ISequence ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S20_GetBranchKeyIdOutput__M11_branchKeyId(string value) { - return ToDafny_N6_smithy__N3_api__S6_String(value); + return ToDafny_N6_smithy__N3_api__S6_String((string)value); } public static System.IO.MemoryStream FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S18_GetCacheEntryInput__M10_identifier(Dafny.ISequence value) { @@ -2245,7 +2245,7 @@ public static System.IO.MemoryStream FromDafny_N3_aws__N12_cryptography__N17_mat } public static Dafny.ISequence ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S18_GetCacheEntryInput__M10_identifier(System.IO.MemoryStream value) { - return ToDafny_N6_smithy__N3_api__S4_Blob(value); + return ToDafny_N6_smithy__N3_api__S4_Blob((System.IO.MemoryStream)value); } public static long? FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S18_GetCacheEntryInput__M9_bytesUsed(Wrappers_Compile._IOption value) { @@ -2261,39 +2261,39 @@ public static AWS.Cryptography.MaterialProviders.Materials FromDafny_N3_aws__N12 } public static software.amazon.cryptography.materialproviders.internaldafny.types._IMaterials ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S19_GetCacheEntryOutput__M9_materials(AWS.Cryptography.MaterialProviders.Materials value) { - return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S9_Materials(value); + return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S9_Materials((AWS.Cryptography.MaterialProviders.Materials)value); } - public static long FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S19_GetCacheEntryOutput__M12_creationTime(long value) + public static long? FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S19_GetCacheEntryOutput__M12_creationTime(long value) { return FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S12_PositiveLong(value); } - public static long ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S19_GetCacheEntryOutput__M12_creationTime(long value) + public static long ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S19_GetCacheEntryOutput__M12_creationTime(long? value) { - return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S12_PositiveLong(value); + return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S12_PositiveLong((long)value); } - public static long FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S19_GetCacheEntryOutput__M10_expiryTime(long value) + public static long? FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S19_GetCacheEntryOutput__M10_expiryTime(long value) { return FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S12_PositiveLong(value); } - public static long ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S19_GetCacheEntryOutput__M10_expiryTime(long value) + public static long ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S19_GetCacheEntryOutput__M10_expiryTime(long? value) { - return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S12_PositiveLong(value); + return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S12_PositiveLong((long)value); } - public static int FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S19_GetCacheEntryOutput__M12_messagesUsed(int value) + public static int? FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S19_GetCacheEntryOutput__M12_messagesUsed(int value) { return FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S15_PositiveInteger(value); } - public static int ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S19_GetCacheEntryOutput__M12_messagesUsed(int value) + public static int ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S19_GetCacheEntryOutput__M12_messagesUsed(int? value) { - return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S15_PositiveInteger(value); + return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S15_PositiveInteger((int)value); } - public static int FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S19_GetCacheEntryOutput__M9_bytesUsed(int value) + public static int? FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S19_GetCacheEntryOutput__M9_bytesUsed(int value) { return FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S15_PositiveInteger(value); } - public static int ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S19_GetCacheEntryOutput__M9_bytesUsed(int value) + public static int ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S19_GetCacheEntryOutput__M9_bytesUsed(int? value) { - return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S15_PositiveInteger(value); + return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S15_PositiveInteger((int)value); } public static string FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S14_GetClientInput__M6_region(Dafny.ISequence value) { @@ -2301,7 +2301,7 @@ public static string FromDafny_N3_aws__N12_cryptography__N17_materialProviders__ } public static Dafny.ISequence ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S14_GetClientInput__M6_region(string value) { - return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S6_Region(value); + return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S6_Region((string)value); } public static Amazon.KeyManagementService.IAmazonKeyManagementService FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S15_GetClientOutput__M6_client(software.amazon.cryptography.services.kms.internaldafny.types.IKMSClient value) { @@ -2309,7 +2309,7 @@ public static Amazon.KeyManagementService.IAmazonKeyManagementService FromDafny_ } public static software.amazon.cryptography.services.kms.internaldafny.types.IKMSClient ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S15_GetClientOutput__M6_client(Amazon.KeyManagementService.IAmazonKeyManagementService value) { - return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S18_KmsClientReference(value); + return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S18_KmsClientReference((Amazon.KeyManagementService.IAmazonKeyManagementService)value); } public static System.Collections.Generic.Dictionary FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S27_GetEncryptionMaterialsInput__M17_encryptionContext(Dafny.IMap, Dafny.ISequence> value) { @@ -2317,7 +2317,7 @@ public static System.Collections.Generic.Dictionary FromDafny_N3 } public static Dafny.IMap, Dafny.ISequence> ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S27_GetEncryptionMaterialsInput__M17_encryptionContext(System.Collections.Generic.Dictionary value) { - return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S17_EncryptionContext(value); + return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S17_EncryptionContext((System.Collections.Generic.Dictionary)value); } public static AWS.Cryptography.MaterialProviders.CommitmentPolicy FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S27_GetEncryptionMaterialsInput__M16_commitmentPolicy(software.amazon.cryptography.materialproviders.internaldafny.types._ICommitmentPolicy value) { @@ -2325,7 +2325,7 @@ public static AWS.Cryptography.MaterialProviders.CommitmentPolicy FromDafny_N3_a } public static software.amazon.cryptography.materialproviders.internaldafny.types._ICommitmentPolicy ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S27_GetEncryptionMaterialsInput__M16_commitmentPolicy(AWS.Cryptography.MaterialProviders.CommitmentPolicy value) { - return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S16_CommitmentPolicy(value); + return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S16_CommitmentPolicy((AWS.Cryptography.MaterialProviders.CommitmentPolicy)value); } public static AWS.Cryptography.MaterialProviders.AlgorithmSuiteId FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S27_GetEncryptionMaterialsInput__M16_algorithmSuiteId(Wrappers_Compile._IOption value) { @@ -2357,7 +2357,7 @@ public static AWS.Cryptography.MaterialProviders.EncryptionMaterials FromDafny_N } public static software.amazon.cryptography.materialproviders.internaldafny.types._IEncryptionMaterials ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S28_GetEncryptionMaterialsOutput__M19_encryptionMaterials(AWS.Cryptography.MaterialProviders.EncryptionMaterials value) { - return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S19_EncryptionMaterials(value); + return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S19_EncryptionMaterials((AWS.Cryptography.MaterialProviders.EncryptionMaterials)value); } public static string FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S19_InFlightTTLExceeded__M7_message(Dafny.ISequence value) { @@ -2365,7 +2365,7 @@ public static string FromDafny_N3_aws__N12_cryptography__N17_materialProviders__ } public static Dafny.ISequence ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S19_InFlightTTLExceeded__M7_message(string value) { - return ToDafny_N6_smithy__N3_api__S6_String(value); + return ToDafny_N6_smithy__N3_api__S6_String((string)value); } public static AWS.Cryptography.MaterialProviders.AlgorithmSuiteId FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S34_InitializeDecryptionMaterialsInput__M16_algorithmSuiteId(software.amazon.cryptography.materialproviders.internaldafny.types._IAlgorithmSuiteId value) { @@ -2373,7 +2373,7 @@ public static AWS.Cryptography.MaterialProviders.AlgorithmSuiteId FromDafny_N3_a } public static software.amazon.cryptography.materialproviders.internaldafny.types._IAlgorithmSuiteId ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S34_InitializeDecryptionMaterialsInput__M16_algorithmSuiteId(AWS.Cryptography.MaterialProviders.AlgorithmSuiteId value) { - return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S16_AlgorithmSuiteId(value); + return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S16_AlgorithmSuiteId((AWS.Cryptography.MaterialProviders.AlgorithmSuiteId)value); } public static System.Collections.Generic.Dictionary FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S34_InitializeDecryptionMaterialsInput__M17_encryptionContext(Dafny.IMap, Dafny.ISequence> value) { @@ -2381,7 +2381,7 @@ public static System.Collections.Generic.Dictionary FromDafny_N3 } public static Dafny.IMap, Dafny.ISequence> ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S34_InitializeDecryptionMaterialsInput__M17_encryptionContext(System.Collections.Generic.Dictionary value) { - return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S17_EncryptionContext(value); + return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S17_EncryptionContext((System.Collections.Generic.Dictionary)value); } public static System.Collections.Generic.List FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S34_InitializeDecryptionMaterialsInput__M29_requiredEncryptionContextKeys(Dafny.ISequence> value) { @@ -2389,7 +2389,7 @@ public static System.Collections.Generic.List FromDafny_N3_aws__N12_cryp } public static Dafny.ISequence> ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S34_InitializeDecryptionMaterialsInput__M29_requiredEncryptionContextKeys(System.Collections.Generic.List value) { - return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S21_EncryptionContextKeys(value); + return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S21_EncryptionContextKeys((System.Collections.Generic.List)value); } public static AWS.Cryptography.MaterialProviders.AlgorithmSuiteId FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S34_InitializeEncryptionMaterialsInput__M16_algorithmSuiteId(software.amazon.cryptography.materialproviders.internaldafny.types._IAlgorithmSuiteId value) { @@ -2397,7 +2397,7 @@ public static AWS.Cryptography.MaterialProviders.AlgorithmSuiteId FromDafny_N3_a } public static software.amazon.cryptography.materialproviders.internaldafny.types._IAlgorithmSuiteId ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S34_InitializeEncryptionMaterialsInput__M16_algorithmSuiteId(AWS.Cryptography.MaterialProviders.AlgorithmSuiteId value) { - return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S16_AlgorithmSuiteId(value); + return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S16_AlgorithmSuiteId((AWS.Cryptography.MaterialProviders.AlgorithmSuiteId)value); } public static System.Collections.Generic.Dictionary FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S34_InitializeEncryptionMaterialsInput__M17_encryptionContext(Dafny.IMap, Dafny.ISequence> value) { @@ -2405,7 +2405,7 @@ public static System.Collections.Generic.Dictionary FromDafny_N3 } public static Dafny.IMap, Dafny.ISequence> ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S34_InitializeEncryptionMaterialsInput__M17_encryptionContext(System.Collections.Generic.Dictionary value) { - return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S17_EncryptionContext(value); + return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S17_EncryptionContext((System.Collections.Generic.Dictionary)value); } public static System.Collections.Generic.List FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S34_InitializeEncryptionMaterialsInput__M29_requiredEncryptionContextKeys(Dafny.ISequence> value) { @@ -2413,7 +2413,7 @@ public static System.Collections.Generic.List FromDafny_N3_aws__N12_cryp } public static Dafny.ISequence> ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S34_InitializeEncryptionMaterialsInput__M29_requiredEncryptionContextKeys(System.Collections.Generic.List value) { - return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S21_EncryptionContextKeys(value); + return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S21_EncryptionContextKeys((System.Collections.Generic.List)value); } public static System.IO.MemoryStream FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S34_InitializeEncryptionMaterialsInput__M10_signingKey(Wrappers_Compile._IOption> value) { @@ -2437,7 +2437,7 @@ public static string FromDafny_N3_aws__N12_cryptography__N17_materialProviders__ } public static Dafny.ISequence ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S25_InvalidAlgorithmSuiteInfo__M7_message(string value) { - return ToDafny_N6_smithy__N3_api__S6_String(value); + return ToDafny_N6_smithy__N3_api__S6_String((string)value); } public static string FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S34_InvalidAlgorithmSuiteInfoOnDecrypt__M7_message(Dafny.ISequence value) { @@ -2445,7 +2445,7 @@ public static string FromDafny_N3_aws__N12_cryptography__N17_materialProviders__ } public static Dafny.ISequence ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S34_InvalidAlgorithmSuiteInfoOnDecrypt__M7_message(string value) { - return ToDafny_N6_smithy__N3_api__S6_String(value); + return ToDafny_N6_smithy__N3_api__S6_String((string)value); } public static string FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S34_InvalidAlgorithmSuiteInfoOnEncrypt__M7_message(Dafny.ISequence value) { @@ -2453,7 +2453,7 @@ public static string FromDafny_N3_aws__N12_cryptography__N17_materialProviders__ } public static Dafny.ISequence ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S34_InvalidAlgorithmSuiteInfoOnEncrypt__M7_message(string value) { - return ToDafny_N6_smithy__N3_api__S6_String(value); + return ToDafny_N6_smithy__N3_api__S6_String((string)value); } public static string FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S26_InvalidDecryptionMaterials__M7_message(Dafny.ISequence value) { @@ -2461,7 +2461,7 @@ public static string FromDafny_N3_aws__N12_cryptography__N17_materialProviders__ } public static Dafny.ISequence ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S26_InvalidDecryptionMaterials__M7_message(string value) { - return ToDafny_N6_smithy__N3_api__S6_String(value); + return ToDafny_N6_smithy__N3_api__S6_String((string)value); } public static string FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S36_InvalidDecryptionMaterialsTransition__M7_message(Dafny.ISequence value) { @@ -2469,7 +2469,7 @@ public static string FromDafny_N3_aws__N12_cryptography__N17_materialProviders__ } public static Dafny.ISequence ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S36_InvalidDecryptionMaterialsTransition__M7_message(string value) { - return ToDafny_N6_smithy__N3_api__S6_String(value); + return ToDafny_N6_smithy__N3_api__S6_String((string)value); } public static string FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S26_InvalidEncryptionMaterials__M7_message(Dafny.ISequence value) { @@ -2477,7 +2477,7 @@ public static string FromDafny_N3_aws__N12_cryptography__N17_materialProviders__ } public static Dafny.ISequence ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S26_InvalidEncryptionMaterials__M7_message(string value) { - return ToDafny_N6_smithy__N3_api__S6_String(value); + return ToDafny_N6_smithy__N3_api__S6_String((string)value); } public static string FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S36_InvalidEncryptionMaterialsTransition__M7_message(Dafny.ISequence value) { @@ -2485,7 +2485,7 @@ public static string FromDafny_N3_aws__N12_cryptography__N17_materialProviders__ } public static Dafny.ISequence ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S36_InvalidEncryptionMaterialsTransition__M7_message(string value) { - return ToDafny_N6_smithy__N3_api__S6_String(value); + return ToDafny_N6_smithy__N3_api__S6_String((string)value); } public static AWS.Cryptography.MaterialProviders.StaticConfigurations FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S18_KeyAgreementScheme__M19_StaticConfiguration(software.amazon.cryptography.materialproviders.internaldafny.types._IStaticConfigurations value) { @@ -2493,7 +2493,7 @@ public static AWS.Cryptography.MaterialProviders.StaticConfigurations FromDafny_ } public static software.amazon.cryptography.materialproviders.internaldafny.types._IStaticConfigurations ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S18_KeyAgreementScheme__M19_StaticConfiguration(AWS.Cryptography.MaterialProviders.StaticConfigurations value) { - return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S20_StaticConfigurations(value); + return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S20_StaticConfigurations((AWS.Cryptography.MaterialProviders.StaticConfigurations)value); } public static AWS.Cryptography.MaterialProviders.KmsPublicKeyDiscoveryInput FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S27_KmsEcdhStaticConfigurations__M21_KmsPublicKeyDiscovery(software.amazon.cryptography.materialproviders.internaldafny.types._IKmsPublicKeyDiscoveryInput value) { @@ -2501,7 +2501,7 @@ public static AWS.Cryptography.MaterialProviders.KmsPublicKeyDiscoveryInput From } public static software.amazon.cryptography.materialproviders.internaldafny.types._IKmsPublicKeyDiscoveryInput ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S27_KmsEcdhStaticConfigurations__M21_KmsPublicKeyDiscovery(AWS.Cryptography.MaterialProviders.KmsPublicKeyDiscoveryInput value) { - return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S26_KmsPublicKeyDiscoveryInput(value); + return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S26_KmsPublicKeyDiscoveryInput((AWS.Cryptography.MaterialProviders.KmsPublicKeyDiscoveryInput)value); } public static AWS.Cryptography.MaterialProviders.KmsPrivateKeyToStaticPublicKeyInput FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S27_KmsEcdhStaticConfigurations__M30_KmsPrivateKeyToStaticPublicKey(software.amazon.cryptography.materialproviders.internaldafny.types._IKmsPrivateKeyToStaticPublicKeyInput value) { @@ -2509,7 +2509,7 @@ public static AWS.Cryptography.MaterialProviders.KmsPrivateKeyToStaticPublicKeyI } public static software.amazon.cryptography.materialproviders.internaldafny.types._IKmsPrivateKeyToStaticPublicKeyInput ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S27_KmsEcdhStaticConfigurations__M30_KmsPrivateKeyToStaticPublicKey(AWS.Cryptography.MaterialProviders.KmsPrivateKeyToStaticPublicKeyInput value) { - return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S35_KmsPrivateKeyToStaticPublicKeyInput(value); + return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S35_KmsPrivateKeyToStaticPublicKeyInput((AWS.Cryptography.MaterialProviders.KmsPrivateKeyToStaticPublicKeyInput)value); } public static AWS.Cryptography.MaterialProviders.EncryptionMaterials FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S9_Materials__M10_Encryption(software.amazon.cryptography.materialproviders.internaldafny.types._IEncryptionMaterials value) { @@ -2517,7 +2517,7 @@ public static AWS.Cryptography.MaterialProviders.EncryptionMaterials FromDafny_N } public static software.amazon.cryptography.materialproviders.internaldafny.types._IEncryptionMaterials ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S9_Materials__M10_Encryption(AWS.Cryptography.MaterialProviders.EncryptionMaterials value) { - return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S19_EncryptionMaterials(value); + return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S19_EncryptionMaterials((AWS.Cryptography.MaterialProviders.EncryptionMaterials)value); } public static AWS.Cryptography.MaterialProviders.DecryptionMaterials FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S9_Materials__M10_Decryption(software.amazon.cryptography.materialproviders.internaldafny.types._IDecryptionMaterials value) { @@ -2525,7 +2525,7 @@ public static AWS.Cryptography.MaterialProviders.DecryptionMaterials FromDafny_N } public static software.amazon.cryptography.materialproviders.internaldafny.types._IDecryptionMaterials ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S9_Materials__M10_Decryption(AWS.Cryptography.MaterialProviders.DecryptionMaterials value) { - return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S19_DecryptionMaterials(value); + return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S19_DecryptionMaterials((AWS.Cryptography.MaterialProviders.DecryptionMaterials)value); } public static AWS.Cryptography.KeyStore.BranchKeyMaterials FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S9_Materials__M9_BranchKey(software.amazon.cryptography.keystore.internaldafny.types._IBranchKeyMaterials value) { @@ -2533,7 +2533,7 @@ public static AWS.Cryptography.KeyStore.BranchKeyMaterials FromDafny_N3_aws__N12 } public static software.amazon.cryptography.keystore.internaldafny.types._IBranchKeyMaterials ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S9_Materials__M9_BranchKey(AWS.Cryptography.KeyStore.BranchKeyMaterials value) { - return ToDafny_N3_aws__N12_cryptography__N8_keyStore__S18_BranchKeyMaterials(value); + return ToDafny_N3_aws__N12_cryptography__N8_keyStore__S18_BranchKeyMaterials((AWS.Cryptography.KeyStore.BranchKeyMaterials)value); } public static AWS.Cryptography.KeyStore.BeaconKeyMaterials FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S9_Materials__M9_BeaconKey(software.amazon.cryptography.keystore.internaldafny.types._IBeaconKeyMaterials value) { @@ -2541,7 +2541,7 @@ public static AWS.Cryptography.KeyStore.BeaconKeyMaterials FromDafny_N3_aws__N12 } public static software.amazon.cryptography.keystore.internaldafny.types._IBeaconKeyMaterials ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S9_Materials__M9_BeaconKey(AWS.Cryptography.KeyStore.BeaconKeyMaterials value) { - return ToDafny_N3_aws__N12_cryptography__N8_keyStore__S18_BeaconKeyMaterials(value); + return ToDafny_N3_aws__N12_cryptography__N8_keyStore__S18_BeaconKeyMaterials((AWS.Cryptography.KeyStore.BeaconKeyMaterials)value); } public static AWS.Cryptography.MaterialProviders.DecryptionMaterials FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S14_OnDecryptInput__M9_materials(software.amazon.cryptography.materialproviders.internaldafny.types._IDecryptionMaterials value) { @@ -2549,7 +2549,7 @@ public static AWS.Cryptography.MaterialProviders.DecryptionMaterials FromDafny_N } public static software.amazon.cryptography.materialproviders.internaldafny.types._IDecryptionMaterials ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S14_OnDecryptInput__M9_materials(AWS.Cryptography.MaterialProviders.DecryptionMaterials value) { - return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S19_DecryptionMaterials(value); + return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S19_DecryptionMaterials((AWS.Cryptography.MaterialProviders.DecryptionMaterials)value); } public static System.Collections.Generic.List FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S14_OnDecryptInput__M17_encryptedDataKeys(Dafny.ISequence value) { @@ -2557,7 +2557,7 @@ public static software.amazon.cryptography.materialproviders.internaldafny.types } public static Dafny.ISequence ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S14_OnDecryptInput__M17_encryptedDataKeys(System.Collections.Generic.List value) { - return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S20_EncryptedDataKeyList(value); + return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S20_EncryptedDataKeyList((System.Collections.Generic.List)value); } public static AWS.Cryptography.MaterialProviders.DecryptionMaterials FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S15_OnDecryptOutput__M9_materials(software.amazon.cryptography.materialproviders.internaldafny.types._IDecryptionMaterials value) { @@ -2565,7 +2565,7 @@ public static AWS.Cryptography.MaterialProviders.DecryptionMaterials FromDafny_N } public static software.amazon.cryptography.materialproviders.internaldafny.types._IDecryptionMaterials ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S15_OnDecryptOutput__M9_materials(AWS.Cryptography.MaterialProviders.DecryptionMaterials value) { - return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S19_DecryptionMaterials(value); + return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S19_DecryptionMaterials((AWS.Cryptography.MaterialProviders.DecryptionMaterials)value); } public static AWS.Cryptography.MaterialProviders.EncryptionMaterials FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S14_OnEncryptInput__M9_materials(software.amazon.cryptography.materialproviders.internaldafny.types._IEncryptionMaterials value) { @@ -2573,7 +2573,7 @@ public static AWS.Cryptography.MaterialProviders.EncryptionMaterials FromDafny_N } public static software.amazon.cryptography.materialproviders.internaldafny.types._IEncryptionMaterials ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S14_OnEncryptInput__M9_materials(AWS.Cryptography.MaterialProviders.EncryptionMaterials value) { - return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S19_EncryptionMaterials(value); + return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S19_EncryptionMaterials((AWS.Cryptography.MaterialProviders.EncryptionMaterials)value); } public static AWS.Cryptography.MaterialProviders.EncryptionMaterials FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S15_OnEncryptOutput__M9_materials(software.amazon.cryptography.materialproviders.internaldafny.types._IEncryptionMaterials value) { @@ -2581,7 +2581,7 @@ public static AWS.Cryptography.MaterialProviders.EncryptionMaterials FromDafny_N } public static software.amazon.cryptography.materialproviders.internaldafny.types._IEncryptionMaterials ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S15_OnEncryptOutput__M9_materials(AWS.Cryptography.MaterialProviders.EncryptionMaterials value) { - return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S19_EncryptionMaterials(value); + return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S19_EncryptionMaterials((AWS.Cryptography.MaterialProviders.EncryptionMaterials)value); } public static System.IO.MemoryStream FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S18_PutCacheEntryInput__M10_identifier(Dafny.ISequence value) { @@ -2589,7 +2589,7 @@ public static System.IO.MemoryStream FromDafny_N3_aws__N12_cryptography__N17_mat } public static Dafny.ISequence ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S18_PutCacheEntryInput__M10_identifier(System.IO.MemoryStream value) { - return ToDafny_N6_smithy__N3_api__S4_Blob(value); + return ToDafny_N6_smithy__N3_api__S4_Blob((System.IO.MemoryStream)value); } public static AWS.Cryptography.MaterialProviders.Materials FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S18_PutCacheEntryInput__M9_materials(software.amazon.cryptography.materialproviders.internaldafny.types._IMaterials value) { @@ -2597,23 +2597,23 @@ public static AWS.Cryptography.MaterialProviders.Materials FromDafny_N3_aws__N12 } public static software.amazon.cryptography.materialproviders.internaldafny.types._IMaterials ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S18_PutCacheEntryInput__M9_materials(AWS.Cryptography.MaterialProviders.Materials value) { - return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S9_Materials(value); + return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S9_Materials((AWS.Cryptography.MaterialProviders.Materials)value); } - public static long FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S18_PutCacheEntryInput__M12_creationTime(long value) + public static long? FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S18_PutCacheEntryInput__M12_creationTime(long value) { return FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S12_PositiveLong(value); } - public static long ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S18_PutCacheEntryInput__M12_creationTime(long value) + public static long ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S18_PutCacheEntryInput__M12_creationTime(long? value) { - return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S12_PositiveLong(value); + return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S12_PositiveLong((long)value); } - public static long FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S18_PutCacheEntryInput__M10_expiryTime(long value) + public static long? FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S18_PutCacheEntryInput__M10_expiryTime(long value) { return FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S12_PositiveLong(value); } - public static long ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S18_PutCacheEntryInput__M10_expiryTime(long value) + public static long ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S18_PutCacheEntryInput__M10_expiryTime(long? value) { - return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S12_PositiveLong(value); + return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S12_PositiveLong((long)value); } public static int? FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S18_PutCacheEntryInput__M12_messagesUsed(Wrappers_Compile._IOption value) { @@ -2637,7 +2637,7 @@ public static AWS.Cryptography.MaterialProviders.PublicKeyDiscoveryInput FromDaf } public static software.amazon.cryptography.materialproviders.internaldafny.types._IPublicKeyDiscoveryInput ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S27_RawEcdhStaticConfigurations__M18_PublicKeyDiscovery(AWS.Cryptography.MaterialProviders.PublicKeyDiscoveryInput value) { - return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S23_PublicKeyDiscoveryInput(value); + return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S23_PublicKeyDiscoveryInput((AWS.Cryptography.MaterialProviders.PublicKeyDiscoveryInput)value); } public static AWS.Cryptography.MaterialProviders.RawPrivateKeyToStaticPublicKeyInput FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S27_RawEcdhStaticConfigurations__M30_RawPrivateKeyToStaticPublicKey(software.amazon.cryptography.materialproviders.internaldafny.types._IRawPrivateKeyToStaticPublicKeyInput value) { @@ -2645,7 +2645,7 @@ public static AWS.Cryptography.MaterialProviders.RawPrivateKeyToStaticPublicKeyI } public static software.amazon.cryptography.materialproviders.internaldafny.types._IRawPrivateKeyToStaticPublicKeyInput ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S27_RawEcdhStaticConfigurations__M30_RawPrivateKeyToStaticPublicKey(AWS.Cryptography.MaterialProviders.RawPrivateKeyToStaticPublicKeyInput value) { - return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S35_RawPrivateKeyToStaticPublicKeyInput(value); + return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S35_RawPrivateKeyToStaticPublicKeyInput((AWS.Cryptography.MaterialProviders.RawPrivateKeyToStaticPublicKeyInput)value); } public static AWS.Cryptography.MaterialProviders.EphemeralPrivateKeyToStaticPublicKeyInput FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S27_RawEcdhStaticConfigurations__M36_EphemeralPrivateKeyToStaticPublicKey(software.amazon.cryptography.materialproviders.internaldafny.types._IEphemeralPrivateKeyToStaticPublicKeyInput value) { @@ -2653,7 +2653,7 @@ public static AWS.Cryptography.MaterialProviders.EphemeralPrivateKeyToStaticPubl } public static software.amazon.cryptography.materialproviders.internaldafny.types._IEphemeralPrivateKeyToStaticPublicKeyInput ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S27_RawEcdhStaticConfigurations__M36_EphemeralPrivateKeyToStaticPublicKey(AWS.Cryptography.MaterialProviders.EphemeralPrivateKeyToStaticPublicKeyInput value) { - return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S41_EphemeralPrivateKeyToStaticPublicKeyInput(value); + return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S41_EphemeralPrivateKeyToStaticPublicKeyInput((AWS.Cryptography.MaterialProviders.EphemeralPrivateKeyToStaticPublicKeyInput)value); } public static AWS.Cryptography.MaterialProviders.ECDSA FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S18_SignatureAlgorithm__M5_ECDSA(software.amazon.cryptography.materialproviders.internaldafny.types._IECDSA value) { @@ -2661,7 +2661,7 @@ public static AWS.Cryptography.MaterialProviders.ECDSA FromDafny_N3_aws__N12_cry } public static software.amazon.cryptography.materialproviders.internaldafny.types._IECDSA ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S18_SignatureAlgorithm__M5_ECDSA(AWS.Cryptography.MaterialProviders.ECDSA value) { - return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S5_ECDSA(value); + return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S5_ECDSA((AWS.Cryptography.MaterialProviders.ECDSA)value); } public static AWS.Cryptography.MaterialProviders.None FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S18_SignatureAlgorithm__M4_None(software.amazon.cryptography.materialproviders.internaldafny.types._INone value) { @@ -2669,7 +2669,7 @@ public static AWS.Cryptography.MaterialProviders.None FromDafny_N3_aws__N12_cryp } public static software.amazon.cryptography.materialproviders.internaldafny.types._INone ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S18_SignatureAlgorithm__M4_None(AWS.Cryptography.MaterialProviders.None value) { - return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S4_None(value); + return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S4_None((AWS.Cryptography.MaterialProviders.None)value); } public static AWS.Cryptography.MaterialProviders.KmsEcdhStaticConfigurations FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S20_StaticConfigurations__M12_AWS_KMS_ECDH(software.amazon.cryptography.materialproviders.internaldafny.types._IKmsEcdhStaticConfigurations value) { @@ -2677,7 +2677,7 @@ public static AWS.Cryptography.MaterialProviders.KmsEcdhStaticConfigurations Fro } public static software.amazon.cryptography.materialproviders.internaldafny.types._IKmsEcdhStaticConfigurations ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S20_StaticConfigurations__M12_AWS_KMS_ECDH(AWS.Cryptography.MaterialProviders.KmsEcdhStaticConfigurations value) { - return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S27_KmsEcdhStaticConfigurations(value); + return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S27_KmsEcdhStaticConfigurations((AWS.Cryptography.MaterialProviders.KmsEcdhStaticConfigurations)value); } public static AWS.Cryptography.MaterialProviders.RawEcdhStaticConfigurations FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S20_StaticConfigurations__M8_RAW_ECDH(software.amazon.cryptography.materialproviders.internaldafny.types._IRawEcdhStaticConfigurations value) { @@ -2685,7 +2685,7 @@ public static AWS.Cryptography.MaterialProviders.RawEcdhStaticConfigurations Fro } public static software.amazon.cryptography.materialproviders.internaldafny.types._IRawEcdhStaticConfigurations ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S20_StaticConfigurations__M8_RAW_ECDH(AWS.Cryptography.MaterialProviders.RawEcdhStaticConfigurations value) { - return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S27_RawEcdhStaticConfigurations(value); + return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S27_RawEcdhStaticConfigurations((AWS.Cryptography.MaterialProviders.RawEcdhStaticConfigurations)value); } public static AWS.Cryptography.Primitives.DigestAlgorithm FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S27_SymmetricSignatureAlgorithm__M4_HMAC(software.amazon.cryptography.primitives.internaldafny.types._IDigestAlgorithm value) { @@ -2693,7 +2693,7 @@ public static AWS.Cryptography.Primitives.DigestAlgorithm FromDafny_N3_aws__N12_ } public static software.amazon.cryptography.primitives.internaldafny.types._IDigestAlgorithm ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S27_SymmetricSignatureAlgorithm__M4_HMAC(AWS.Cryptography.Primitives.DigestAlgorithm value) { - return ToDafny_N3_aws__N12_cryptography__N10_primitives__S15_DigestAlgorithm(value); + return ToDafny_N3_aws__N12_cryptography__N10_primitives__S15_DigestAlgorithm((AWS.Cryptography.Primitives.DigestAlgorithm)value); } public static AWS.Cryptography.MaterialProviders.None FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S27_SymmetricSignatureAlgorithm__M4_None(software.amazon.cryptography.materialproviders.internaldafny.types._INone value) { @@ -2701,7 +2701,7 @@ public static AWS.Cryptography.MaterialProviders.None FromDafny_N3_aws__N12_cryp } public static software.amazon.cryptography.materialproviders.internaldafny.types._INone ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S27_SymmetricSignatureAlgorithm__M4_None(AWS.Cryptography.MaterialProviders.None value) { - return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S4_None(value); + return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S4_None((AWS.Cryptography.MaterialProviders.None)value); } public static System.IO.MemoryStream FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S24_UpdateUsageMetadataInput__M10_identifier(Dafny.ISequence value) { @@ -2709,15 +2709,15 @@ public static System.IO.MemoryStream FromDafny_N3_aws__N12_cryptography__N17_mat } public static Dafny.ISequence ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S24_UpdateUsageMetadataInput__M10_identifier(System.IO.MemoryStream value) { - return ToDafny_N6_smithy__N3_api__S4_Blob(value); + return ToDafny_N6_smithy__N3_api__S4_Blob((System.IO.MemoryStream)value); } - public static int FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S24_UpdateUsageMetadataInput__M9_bytesUsed(int value) + public static int? FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S24_UpdateUsageMetadataInput__M9_bytesUsed(int value) { return FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S15_PositiveInteger(value); } - public static int ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S24_UpdateUsageMetadataInput__M9_bytesUsed(int value) + public static int ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S24_UpdateUsageMetadataInput__M9_bytesUsed(int? value) { - return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S15_PositiveInteger(value); + return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S15_PositiveInteger((int)value); } public static AWS.Cryptography.MaterialProviders.AlgorithmSuiteId FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S38_ValidateCommitmentPolicyOnDecryptInput__M9_algorithm(software.amazon.cryptography.materialproviders.internaldafny.types._IAlgorithmSuiteId value) { @@ -2725,7 +2725,7 @@ public static AWS.Cryptography.MaterialProviders.AlgorithmSuiteId FromDafny_N3_a } public static software.amazon.cryptography.materialproviders.internaldafny.types._IAlgorithmSuiteId ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S38_ValidateCommitmentPolicyOnDecryptInput__M9_algorithm(AWS.Cryptography.MaterialProviders.AlgorithmSuiteId value) { - return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S16_AlgorithmSuiteId(value); + return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S16_AlgorithmSuiteId((AWS.Cryptography.MaterialProviders.AlgorithmSuiteId)value); } public static AWS.Cryptography.MaterialProviders.CommitmentPolicy FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S38_ValidateCommitmentPolicyOnDecryptInput__M16_commitmentPolicy(software.amazon.cryptography.materialproviders.internaldafny.types._ICommitmentPolicy value) { @@ -2733,7 +2733,7 @@ public static AWS.Cryptography.MaterialProviders.CommitmentPolicy FromDafny_N3_a } public static software.amazon.cryptography.materialproviders.internaldafny.types._ICommitmentPolicy ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S38_ValidateCommitmentPolicyOnDecryptInput__M16_commitmentPolicy(AWS.Cryptography.MaterialProviders.CommitmentPolicy value) { - return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S16_CommitmentPolicy(value); + return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S16_CommitmentPolicy((AWS.Cryptography.MaterialProviders.CommitmentPolicy)value); } public static AWS.Cryptography.MaterialProviders.AlgorithmSuiteId FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S38_ValidateCommitmentPolicyOnEncryptInput__M9_algorithm(software.amazon.cryptography.materialproviders.internaldafny.types._IAlgorithmSuiteId value) { @@ -2741,7 +2741,7 @@ public static AWS.Cryptography.MaterialProviders.AlgorithmSuiteId FromDafny_N3_a } public static software.amazon.cryptography.materialproviders.internaldafny.types._IAlgorithmSuiteId ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S38_ValidateCommitmentPolicyOnEncryptInput__M9_algorithm(AWS.Cryptography.MaterialProviders.AlgorithmSuiteId value) { - return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S16_AlgorithmSuiteId(value); + return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S16_AlgorithmSuiteId((AWS.Cryptography.MaterialProviders.AlgorithmSuiteId)value); } public static AWS.Cryptography.MaterialProviders.CommitmentPolicy FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S38_ValidateCommitmentPolicyOnEncryptInput__M16_commitmentPolicy(software.amazon.cryptography.materialproviders.internaldafny.types._ICommitmentPolicy value) { @@ -2749,7 +2749,7 @@ public static AWS.Cryptography.MaterialProviders.CommitmentPolicy FromDafny_N3_a } public static software.amazon.cryptography.materialproviders.internaldafny.types._ICommitmentPolicy ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S38_ValidateCommitmentPolicyOnEncryptInput__M16_commitmentPolicy(AWS.Cryptography.MaterialProviders.CommitmentPolicy value) { - return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S16_CommitmentPolicy(value); + return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S16_CommitmentPolicy((AWS.Cryptography.MaterialProviders.CommitmentPolicy)value); } public static AWS.Cryptography.MaterialProviders.DecryptionMaterials FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S39_ValidDecryptionMaterialsTransitionInput__M5_start(software.amazon.cryptography.materialproviders.internaldafny.types._IDecryptionMaterials value) { @@ -2757,7 +2757,7 @@ public static AWS.Cryptography.MaterialProviders.DecryptionMaterials FromDafny_N } public static software.amazon.cryptography.materialproviders.internaldafny.types._IDecryptionMaterials ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S39_ValidDecryptionMaterialsTransitionInput__M5_start(AWS.Cryptography.MaterialProviders.DecryptionMaterials value) { - return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S19_DecryptionMaterials(value); + return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S19_DecryptionMaterials((AWS.Cryptography.MaterialProviders.DecryptionMaterials)value); } public static AWS.Cryptography.MaterialProviders.DecryptionMaterials FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S39_ValidDecryptionMaterialsTransitionInput__M4_stop(software.amazon.cryptography.materialproviders.internaldafny.types._IDecryptionMaterials value) { @@ -2765,7 +2765,7 @@ public static AWS.Cryptography.MaterialProviders.DecryptionMaterials FromDafny_N } public static software.amazon.cryptography.materialproviders.internaldafny.types._IDecryptionMaterials ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S39_ValidDecryptionMaterialsTransitionInput__M4_stop(AWS.Cryptography.MaterialProviders.DecryptionMaterials value) { - return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S19_DecryptionMaterials(value); + return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S19_DecryptionMaterials((AWS.Cryptography.MaterialProviders.DecryptionMaterials)value); } public static AWS.Cryptography.MaterialProviders.EncryptionMaterials FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S39_ValidEncryptionMaterialsTransitionInput__M5_start(software.amazon.cryptography.materialproviders.internaldafny.types._IEncryptionMaterials value) { @@ -2773,7 +2773,7 @@ public static AWS.Cryptography.MaterialProviders.EncryptionMaterials FromDafny_N } public static software.amazon.cryptography.materialproviders.internaldafny.types._IEncryptionMaterials ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S39_ValidEncryptionMaterialsTransitionInput__M5_start(AWS.Cryptography.MaterialProviders.EncryptionMaterials value) { - return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S19_EncryptionMaterials(value); + return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S19_EncryptionMaterials((AWS.Cryptography.MaterialProviders.EncryptionMaterials)value); } public static AWS.Cryptography.MaterialProviders.EncryptionMaterials FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S39_ValidEncryptionMaterialsTransitionInput__M4_stop(software.amazon.cryptography.materialproviders.internaldafny.types._IEncryptionMaterials value) { @@ -2781,7 +2781,7 @@ public static AWS.Cryptography.MaterialProviders.EncryptionMaterials FromDafny_N } public static software.amazon.cryptography.materialproviders.internaldafny.types._IEncryptionMaterials ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S39_ValidEncryptionMaterialsTransitionInput__M4_stop(AWS.Cryptography.MaterialProviders.EncryptionMaterials value) { - return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S19_EncryptionMaterials(value); + return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S19_EncryptionMaterials((AWS.Cryptography.MaterialProviders.EncryptionMaterials)value); } public static System.IO.MemoryStream FromDafny_N6_smithy__N3_api__S4_Blob(Dafny.ISequence value) { @@ -3287,21 +3287,21 @@ public static software.amazon.cryptography.primitives.internaldafny.types._IDige if (AWS.Cryptography.Primitives.DigestAlgorithm.SHA_256.Equals(value)) return software.amazon.cryptography.primitives.internaldafny.types.DigestAlgorithm.create_SHA__256(); throw new System.ArgumentException("Invalid AWS.Cryptography.Primitives.DigestAlgorithm value"); } - public static int FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S12_DefaultCache__M13_entryCapacity(int value) + public static int? FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S12_DefaultCache__M13_entryCapacity(int value) { return FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S14_CountingNumber(value); } - public static int ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S12_DefaultCache__M13_entryCapacity(int value) + public static int ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S12_DefaultCache__M13_entryCapacity(int? value) { - return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S14_CountingNumber(value); + return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S14_CountingNumber((int)value); } - public static int FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S19_SingleThreadedCache__M13_entryCapacity(int value) + public static int? FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S19_SingleThreadedCache__M13_entryCapacity(int value) { return FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S14_CountingNumber(value); } - public static int ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S19_SingleThreadedCache__M13_entryCapacity(int value) + public static int ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S19_SingleThreadedCache__M13_entryCapacity(int? value) { - return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S14_CountingNumber(value); + return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S14_CountingNumber((int)value); } public static int? FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S19_SingleThreadedCache__M20_entryPruningTailSize(Wrappers_Compile._IOption value) { @@ -3311,13 +3311,13 @@ public static Wrappers_Compile._IOption ToDafny_N3_aws__N12_cryptography__N { return value == null ? Wrappers_Compile.Option.create_None() : Wrappers_Compile.Option.create_Some(ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S14_CountingNumber((int)value)); } - public static int FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S18_MultiThreadedCache__M13_entryCapacity(int value) + public static int? FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S18_MultiThreadedCache__M13_entryCapacity(int value) { return FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S14_CountingNumber(value); } - public static int ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S18_MultiThreadedCache__M13_entryCapacity(int value) + public static int ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S18_MultiThreadedCache__M13_entryCapacity(int? value) { - return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S14_CountingNumber(value); + return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S14_CountingNumber((int)value); } public static int? FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S18_MultiThreadedCache__M20_entryPruningTailSize(Wrappers_Compile._IOption value) { @@ -3327,13 +3327,13 @@ public static Wrappers_Compile._IOption ToDafny_N3_aws__N12_cryptography__N { return value == null ? Wrappers_Compile.Option.create_None() : Wrappers_Compile.Option.create_Some(ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S14_CountingNumber((int)value)); } - public static int FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S18_StormTrackingCache__M13_entryCapacity(int value) + public static int? FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S18_StormTrackingCache__M13_entryCapacity(int value) { return FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S14_CountingNumber(value); } - public static int ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S18_StormTrackingCache__M13_entryCapacity(int value) + public static int ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S18_StormTrackingCache__M13_entryCapacity(int? value) { - return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S14_CountingNumber(value); + return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S14_CountingNumber((int)value); } public static int? FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S18_StormTrackingCache__M20_entryPruningTailSize(Wrappers_Compile._IOption value) { @@ -3343,45 +3343,45 @@ public static Wrappers_Compile._IOption ToDafny_N3_aws__N12_cryptography__N { return value == null ? Wrappers_Compile.Option.create_None() : Wrappers_Compile.Option.create_Some(ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S14_CountingNumber((int)value)); } - public static int FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S18_StormTrackingCache__M11_gracePeriod(int value) + public static int? FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S18_StormTrackingCache__M11_gracePeriod(int value) { return FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S14_CountingNumber(value); } - public static int ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S18_StormTrackingCache__M11_gracePeriod(int value) + public static int ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S18_StormTrackingCache__M11_gracePeriod(int? value) { - return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S14_CountingNumber(value); + return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S14_CountingNumber((int)value); } - public static int FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S18_StormTrackingCache__M13_graceInterval(int value) + public static int? FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S18_StormTrackingCache__M13_graceInterval(int value) { return FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S14_CountingNumber(value); } - public static int ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S18_StormTrackingCache__M13_graceInterval(int value) + public static int ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S18_StormTrackingCache__M13_graceInterval(int? value) { - return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S14_CountingNumber(value); + return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S14_CountingNumber((int)value); } - public static int FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S18_StormTrackingCache__M6_fanOut(int value) + public static int? FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S18_StormTrackingCache__M6_fanOut(int value) { return FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S14_CountingNumber(value); } - public static int ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S18_StormTrackingCache__M6_fanOut(int value) + public static int ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S18_StormTrackingCache__M6_fanOut(int? value) { - return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S14_CountingNumber(value); + return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S14_CountingNumber((int)value); } - public static int FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S18_StormTrackingCache__M11_inFlightTTL(int value) + public static int? FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S18_StormTrackingCache__M11_inFlightTTL(int value) { return FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S14_CountingNumber(value); } - public static int ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S18_StormTrackingCache__M11_inFlightTTL(int value) + public static int ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S18_StormTrackingCache__M11_inFlightTTL(int? value) { - return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S14_CountingNumber(value); + return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S14_CountingNumber((int)value); } - public static int FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S18_StormTrackingCache__M10_sleepMilli(int value) + public static int? FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S18_StormTrackingCache__M10_sleepMilli(int value) { return FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S14_CountingNumber(value); } - public static int ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S18_StormTrackingCache__M10_sleepMilli(int value) + public static int ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S18_StormTrackingCache__M10_sleepMilli(int? value) { - return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S14_CountingNumber(value); + return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S14_CountingNumber((int)value); } public static AWS.Cryptography.MaterialProviders.TimeUnits FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S18_StormTrackingCache__M9_timeUnits(Wrappers_Compile._IOption value) { @@ -3397,7 +3397,7 @@ public static System.Collections.Generic.List FromDafny_N3_aws__N12_cryp } public static Dafny.ISequence> ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S15_DiscoveryFilter__M10_accountIds(System.Collections.Generic.List value) { - return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S13_AccountIdList(value); + return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S13_AccountIdList((System.Collections.Generic.List)value); } public static string FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S15_DiscoveryFilter__M9_partition(Dafny.ISequence value) { @@ -3405,7 +3405,7 @@ public static string FromDafny_N3_aws__N12_cryptography__N17_materialProviders__ } public static Dafny.ISequence ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S15_DiscoveryFilter__M9_partition(string value) { - return ToDafny_N6_smithy__N3_api__S6_String(value); + return ToDafny_N6_smithy__N3_api__S6_String((string)value); } public static string FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S14_GrantTokenList__M6_member(Dafny.ISequence value) { @@ -3413,7 +3413,7 @@ public static string FromDafny_N3_aws__N12_cryptography__N17_materialProviders__ } public static Dafny.ISequence ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S14_GrantTokenList__M6_member(string value) { - return ToDafny_N6_smithy__N3_api__S6_String(value); + return ToDafny_N6_smithy__N3_api__S6_String((string)value); } public static string FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S10_RegionList__M6_member(Dafny.ISequence value) { @@ -3421,7 +3421,7 @@ public static string FromDafny_N3_aws__N12_cryptography__N17_materialProviders__ } public static Dafny.ISequence ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S10_RegionList__M6_member(string value) { - return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S6_Region(value); + return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S6_Region((string)value); } public static string FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S12_KmsKeyIdList__M6_member(Dafny.ISequence value) { @@ -3429,7 +3429,7 @@ public static string FromDafny_N3_aws__N12_cryptography__N17_materialProviders__ } public static Dafny.ISequence ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S12_KmsKeyIdList__M6_member(string value) { - return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S8_KmsKeyId(value); + return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S8_KmsKeyId((string)value); } public static AWS.Cryptography.MaterialProviders.IKeyring FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S11_KeyringList__M6_member(software.amazon.cryptography.materialproviders.internaldafny.types.IKeyring value) { @@ -3437,7 +3437,7 @@ public static AWS.Cryptography.MaterialProviders.IKeyring FromDafny_N3_aws__N12_ } public static software.amazon.cryptography.materialproviders.internaldafny.types.IKeyring ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S11_KeyringList__M6_member(AWS.Cryptography.MaterialProviders.IKeyring value) { - return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S16_KeyringReference(value); + return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S16_KeyringReference((AWS.Cryptography.MaterialProviders.IKeyring)value); } public static string FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S21_EncryptionContextKeys__M6_member(Dafny.ISequence value) { @@ -3445,7 +3445,7 @@ public static string FromDafny_N3_aws__N12_cryptography__N17_materialProviders__ } public static Dafny.ISequence ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S21_EncryptionContextKeys__M6_member(string value) { - return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S9_Utf8Bytes(value); + return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S9_Utf8Bytes((string)value); } public static string FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S17_EncryptionContext__M3_key(Dafny.ISequence value) { @@ -3453,7 +3453,7 @@ public static string FromDafny_N3_aws__N12_cryptography__N17_materialProviders__ } public static Dafny.ISequence ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S17_EncryptionContext__M3_key(string value) { - return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S9_Utf8Bytes(value); + return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S9_Utf8Bytes((string)value); } public static string FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S17_EncryptionContext__M5_value(Dafny.ISequence value) { @@ -3461,7 +3461,7 @@ public static string FromDafny_N3_aws__N12_cryptography__N17_materialProviders__ } public static Dafny.ISequence ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S17_EncryptionContext__M5_value(string value) { - return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S9_Utf8Bytes(value); + return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S9_Utf8Bytes((string)value); } public static AWS.Cryptography.MaterialProviders.EncryptedDataKey FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S20_EncryptedDataKeyList__M6_member(software.amazon.cryptography.materialproviders.internaldafny.types._IEncryptedDataKey value) { @@ -3469,7 +3469,7 @@ public static AWS.Cryptography.MaterialProviders.EncryptedDataKey FromDafny_N3_a } public static software.amazon.cryptography.materialproviders.internaldafny.types._IEncryptedDataKey ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S20_EncryptedDataKeyList__M6_member(AWS.Cryptography.MaterialProviders.EncryptedDataKey value) { - return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S16_EncryptedDataKey(value); + return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S16_EncryptedDataKey((AWS.Cryptography.MaterialProviders.EncryptedDataKey)value); } public static AWS.Cryptography.Primitives.DigestAlgorithm FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S4_HKDF__M4_hmac(software.amazon.cryptography.primitives.internaldafny.types._IDigestAlgorithm value) { @@ -3477,31 +3477,31 @@ public static AWS.Cryptography.Primitives.DigestAlgorithm FromDafny_N3_aws__N12_ } public static software.amazon.cryptography.primitives.internaldafny.types._IDigestAlgorithm ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S4_HKDF__M4_hmac(AWS.Cryptography.Primitives.DigestAlgorithm value) { - return ToDafny_N3_aws__N12_cryptography__N10_primitives__S15_DigestAlgorithm(value); + return ToDafny_N3_aws__N12_cryptography__N10_primitives__S15_DigestAlgorithm((AWS.Cryptography.Primitives.DigestAlgorithm)value); } - public static int FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S4_HKDF__M10_saltLength(int value) + public static int? FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S4_HKDF__M10_saltLength(int value) { return FromDafny_N3_aws__N12_cryptography__N10_primitives__S15_PositiveInteger(value); } - public static int ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S4_HKDF__M10_saltLength(int value) + public static int ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S4_HKDF__M10_saltLength(int? value) { - return ToDafny_N3_aws__N12_cryptography__N10_primitives__S15_PositiveInteger(value); + return ToDafny_N3_aws__N12_cryptography__N10_primitives__S15_PositiveInteger((int)value); } - public static int FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S4_HKDF__M14_inputKeyLength(int value) + public static int? FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S4_HKDF__M14_inputKeyLength(int value) { return FromDafny_N3_aws__N12_cryptography__N10_primitives__S18_SymmetricKeyLength(value); } - public static int ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S4_HKDF__M14_inputKeyLength(int value) + public static int ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S4_HKDF__M14_inputKeyLength(int? value) { - return ToDafny_N3_aws__N12_cryptography__N10_primitives__S18_SymmetricKeyLength(value); + return ToDafny_N3_aws__N12_cryptography__N10_primitives__S18_SymmetricKeyLength((int)value); } - public static int FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S4_HKDF__M15_outputKeyLength(int value) + public static int? FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S4_HKDF__M15_outputKeyLength(int value) { return FromDafny_N3_aws__N12_cryptography__N10_primitives__S18_SymmetricKeyLength(value); } - public static int ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S4_HKDF__M15_outputKeyLength(int value) + public static int ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S4_HKDF__M15_outputKeyLength(int? value) { - return ToDafny_N3_aws__N12_cryptography__N10_primitives__S18_SymmetricKeyLength(value); + return ToDafny_N3_aws__N12_cryptography__N10_primitives__S18_SymmetricKeyLength((int)value); } public static AWS.Cryptography.MaterialProviders.DerivationAlgorithm FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S23_IntermediateKeyWrapping__M19_keyEncryptionKeyKdf(software.amazon.cryptography.materialproviders.internaldafny.types._IDerivationAlgorithm value) { @@ -3509,7 +3509,7 @@ public static AWS.Cryptography.MaterialProviders.DerivationAlgorithm FromDafny_N } public static software.amazon.cryptography.materialproviders.internaldafny.types._IDerivationAlgorithm ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S23_IntermediateKeyWrapping__M19_keyEncryptionKeyKdf(AWS.Cryptography.MaterialProviders.DerivationAlgorithm value) { - return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S19_DerivationAlgorithm(value); + return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S19_DerivationAlgorithm((AWS.Cryptography.MaterialProviders.DerivationAlgorithm)value); } public static AWS.Cryptography.MaterialProviders.DerivationAlgorithm FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S23_IntermediateKeyWrapping__M9_macKeyKdf(software.amazon.cryptography.materialproviders.internaldafny.types._IDerivationAlgorithm value) { @@ -3517,7 +3517,7 @@ public static AWS.Cryptography.MaterialProviders.DerivationAlgorithm FromDafny_N } public static software.amazon.cryptography.materialproviders.internaldafny.types._IDerivationAlgorithm ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S23_IntermediateKeyWrapping__M9_macKeyKdf(AWS.Cryptography.MaterialProviders.DerivationAlgorithm value) { - return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S19_DerivationAlgorithm(value); + return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S19_DerivationAlgorithm((AWS.Cryptography.MaterialProviders.DerivationAlgorithm)value); } public static AWS.Cryptography.MaterialProviders.Encrypt FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S23_IntermediateKeyWrapping__M19_pdkEncryptAlgorithm(software.amazon.cryptography.materialproviders.internaldafny.types._IEncrypt value) { @@ -3525,31 +3525,31 @@ public static AWS.Cryptography.MaterialProviders.Encrypt FromDafny_N3_aws__N12_c } public static software.amazon.cryptography.materialproviders.internaldafny.types._IEncrypt ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S23_IntermediateKeyWrapping__M19_pdkEncryptAlgorithm(AWS.Cryptography.MaterialProviders.Encrypt value) { - return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S7_Encrypt(value); + return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S7_Encrypt((AWS.Cryptography.MaterialProviders.Encrypt)value); } - public static int FromDafny_N3_aws__N12_cryptography__N10_primitives__S7_AES_GCM__M9_keyLength(int value) + public static int? FromDafny_N3_aws__N12_cryptography__N10_primitives__S7_AES_GCM__M9_keyLength(int value) { return FromDafny_N3_aws__N12_cryptography__N10_primitives__S18_SymmetricKeyLength(value); } - public static int ToDafny_N3_aws__N12_cryptography__N10_primitives__S7_AES_GCM__M9_keyLength(int value) + public static int ToDafny_N3_aws__N12_cryptography__N10_primitives__S7_AES_GCM__M9_keyLength(int? value) { - return ToDafny_N3_aws__N12_cryptography__N10_primitives__S18_SymmetricKeyLength(value); + return ToDafny_N3_aws__N12_cryptography__N10_primitives__S18_SymmetricKeyLength((int)value); } - public static int FromDafny_N3_aws__N12_cryptography__N10_primitives__S7_AES_GCM__M9_tagLength(int value) + public static int? FromDafny_N3_aws__N12_cryptography__N10_primitives__S7_AES_GCM__M9_tagLength(int value) { return FromDafny_N3_aws__N12_cryptography__N10_primitives__S10_Uint8Bytes(value); } - public static int ToDafny_N3_aws__N12_cryptography__N10_primitives__S7_AES_GCM__M9_tagLength(int value) + public static int ToDafny_N3_aws__N12_cryptography__N10_primitives__S7_AES_GCM__M9_tagLength(int? value) { - return ToDafny_N3_aws__N12_cryptography__N10_primitives__S10_Uint8Bytes(value); + return ToDafny_N3_aws__N12_cryptography__N10_primitives__S10_Uint8Bytes((int)value); } - public static int FromDafny_N3_aws__N12_cryptography__N10_primitives__S7_AES_GCM__M8_ivLength(int value) + public static int? FromDafny_N3_aws__N12_cryptography__N10_primitives__S7_AES_GCM__M8_ivLength(int value) { return FromDafny_N3_aws__N12_cryptography__N10_primitives__S9_Uint8Bits(value); } - public static int ToDafny_N3_aws__N12_cryptography__N10_primitives__S7_AES_GCM__M8_ivLength(int value) + public static int ToDafny_N3_aws__N12_cryptography__N10_primitives__S7_AES_GCM__M8_ivLength(int? value) { - return ToDafny_N3_aws__N12_cryptography__N10_primitives__S9_Uint8Bits(value); + return ToDafny_N3_aws__N12_cryptography__N10_primitives__S9_Uint8Bits((int)value); } public static System.IO.MemoryStream FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S23_SymmetricSigningKeyList__M6_member(Dafny.ISequence value) { @@ -3557,7 +3557,7 @@ public static System.IO.MemoryStream FromDafny_N3_aws__N12_cryptography__N17_mat } public static Dafny.ISequence ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S23_SymmetricSigningKeyList__M6_member(System.IO.MemoryStream value) { - return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S6_Secret(value); + return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S6_Secret((System.IO.MemoryStream)value); } public static string FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S26_KmsPublicKeyDiscoveryInput__M22_recipientKmsIdentifier(Dafny.ISequence value) { @@ -3565,7 +3565,7 @@ public static string FromDafny_N3_aws__N12_cryptography__N17_materialProviders__ } public static Dafny.ISequence ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S26_KmsPublicKeyDiscoveryInput__M22_recipientKmsIdentifier(string value) { - return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S8_KmsKeyId(value); + return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S8_KmsKeyId((string)value); } public static string FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S35_KmsPrivateKeyToStaticPublicKeyInput__M19_senderKmsIdentifier(Dafny.ISequence value) { @@ -3573,7 +3573,7 @@ public static string FromDafny_N3_aws__N12_cryptography__N17_materialProviders__ } public static Dafny.ISequence ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S35_KmsPrivateKeyToStaticPublicKeyInput__M19_senderKmsIdentifier(string value) { - return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S8_KmsKeyId(value); + return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S8_KmsKeyId((string)value); } public static System.IO.MemoryStream FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S35_KmsPrivateKeyToStaticPublicKeyInput__M15_senderPublicKey(Wrappers_Compile._IOption> value) { @@ -3589,7 +3589,7 @@ public static System.IO.MemoryStream FromDafny_N3_aws__N12_cryptography__N17_mat } public static Dafny.ISequence ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S35_KmsPrivateKeyToStaticPublicKeyInput__M18_recipientPublicKey(System.IO.MemoryStream value) { - return ToDafny_N6_smithy__N3_api__S4_Blob(value); + return ToDafny_N6_smithy__N3_api__S4_Blob((System.IO.MemoryStream)value); } public static string FromDafny_N3_aws__N12_cryptography__N8_keyStore__S18_BranchKeyMaterials__M19_branchKeyIdentifier(Dafny.ISequence value) { @@ -3597,7 +3597,7 @@ public static string FromDafny_N3_aws__N12_cryptography__N8_keyStore__S18_Branch } public static Dafny.ISequence ToDafny_N3_aws__N12_cryptography__N8_keyStore__S18_BranchKeyMaterials__M19_branchKeyIdentifier(string value) { - return ToDafny_N6_smithy__N3_api__S6_String(value); + return ToDafny_N6_smithy__N3_api__S6_String((string)value); } public static string FromDafny_N3_aws__N12_cryptography__N8_keyStore__S18_BranchKeyMaterials__M16_branchKeyVersion(Dafny.ISequence value) { @@ -3605,7 +3605,7 @@ public static string FromDafny_N3_aws__N12_cryptography__N8_keyStore__S18_Branch } public static Dafny.ISequence ToDafny_N3_aws__N12_cryptography__N8_keyStore__S18_BranchKeyMaterials__M16_branchKeyVersion(string value) { - return ToDafny_N3_aws__N12_cryptography__N8_keyStore__S9_Utf8Bytes(value); + return ToDafny_N3_aws__N12_cryptography__N8_keyStore__S9_Utf8Bytes((string)value); } public static System.Collections.Generic.Dictionary FromDafny_N3_aws__N12_cryptography__N8_keyStore__S18_BranchKeyMaterials__M17_encryptionContext(Dafny.IMap, Dafny.ISequence> value) { @@ -3613,7 +3613,7 @@ public static System.Collections.Generic.Dictionary FromDafny_N3 } public static Dafny.IMap, Dafny.ISequence> ToDafny_N3_aws__N12_cryptography__N8_keyStore__S18_BranchKeyMaterials__M17_encryptionContext(System.Collections.Generic.Dictionary value) { - return ToDafny_N3_aws__N12_cryptography__N8_keyStore__S17_EncryptionContext(value); + return ToDafny_N3_aws__N12_cryptography__N8_keyStore__S17_EncryptionContext((System.Collections.Generic.Dictionary)value); } public static System.IO.MemoryStream FromDafny_N3_aws__N12_cryptography__N8_keyStore__S18_BranchKeyMaterials__M9_branchKey(Dafny.ISequence value) { @@ -3621,7 +3621,7 @@ public static System.IO.MemoryStream FromDafny_N3_aws__N12_cryptography__N8_keyS } public static Dafny.ISequence ToDafny_N3_aws__N12_cryptography__N8_keyStore__S18_BranchKeyMaterials__M9_branchKey(System.IO.MemoryStream value) { - return ToDafny_N3_aws__N12_cryptography__N8_keyStore__S6_Secret(value); + return ToDafny_N3_aws__N12_cryptography__N8_keyStore__S6_Secret((System.IO.MemoryStream)value); } public static string FromDafny_N3_aws__N12_cryptography__N8_keyStore__S18_BeaconKeyMaterials__M19_beaconKeyIdentifier(Dafny.ISequence value) { @@ -3629,7 +3629,7 @@ public static string FromDafny_N3_aws__N12_cryptography__N8_keyStore__S18_Beacon } public static Dafny.ISequence ToDafny_N3_aws__N12_cryptography__N8_keyStore__S18_BeaconKeyMaterials__M19_beaconKeyIdentifier(string value) { - return ToDafny_N6_smithy__N3_api__S6_String(value); + return ToDafny_N6_smithy__N3_api__S6_String((string)value); } public static System.Collections.Generic.Dictionary FromDafny_N3_aws__N12_cryptography__N8_keyStore__S18_BeaconKeyMaterials__M17_encryptionContext(Dafny.IMap, Dafny.ISequence> value) { @@ -3637,7 +3637,7 @@ public static System.Collections.Generic.Dictionary FromDafny_N3 } public static Dafny.IMap, Dafny.ISequence> ToDafny_N3_aws__N12_cryptography__N8_keyStore__S18_BeaconKeyMaterials__M17_encryptionContext(System.Collections.Generic.Dictionary value) { - return ToDafny_N3_aws__N12_cryptography__N8_keyStore__S17_EncryptionContext(value); + return ToDafny_N3_aws__N12_cryptography__N8_keyStore__S17_EncryptionContext((System.Collections.Generic.Dictionary)value); } public static System.IO.MemoryStream FromDafny_N3_aws__N12_cryptography__N8_keyStore__S18_BeaconKeyMaterials__M9_beaconKey(Wrappers_Compile._IOption> value) { @@ -3661,7 +3661,7 @@ public static System.IO.MemoryStream FromDafny_N3_aws__N12_cryptography__N17_mat } public static Dafny.ISequence ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S23_PublicKeyDiscoveryInput__M25_recipientStaticPrivateKey(System.IO.MemoryStream value) { - return ToDafny_N6_smithy__N3_api__S4_Blob(value); + return ToDafny_N6_smithy__N3_api__S4_Blob((System.IO.MemoryStream)value); } public static System.IO.MemoryStream FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S35_RawPrivateKeyToStaticPublicKeyInput__M22_senderStaticPrivateKey(Dafny.ISequence value) { @@ -3669,7 +3669,7 @@ public static System.IO.MemoryStream FromDafny_N3_aws__N12_cryptography__N17_mat } public static Dafny.ISequence ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S35_RawPrivateKeyToStaticPublicKeyInput__M22_senderStaticPrivateKey(System.IO.MemoryStream value) { - return ToDafny_N6_smithy__N3_api__S4_Blob(value); + return ToDafny_N6_smithy__N3_api__S4_Blob((System.IO.MemoryStream)value); } public static System.IO.MemoryStream FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S35_RawPrivateKeyToStaticPublicKeyInput__M18_recipientPublicKey(Dafny.ISequence value) { @@ -3677,7 +3677,7 @@ public static System.IO.MemoryStream FromDafny_N3_aws__N12_cryptography__N17_mat } public static Dafny.ISequence ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S35_RawPrivateKeyToStaticPublicKeyInput__M18_recipientPublicKey(System.IO.MemoryStream value) { - return ToDafny_N6_smithy__N3_api__S4_Blob(value); + return ToDafny_N6_smithy__N3_api__S4_Blob((System.IO.MemoryStream)value); } public static System.IO.MemoryStream FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S41_EphemeralPrivateKeyToStaticPublicKeyInput__M18_recipientPublicKey(Dafny.ISequence value) { @@ -3685,7 +3685,7 @@ public static System.IO.MemoryStream FromDafny_N3_aws__N12_cryptography__N17_mat } public static Dafny.ISequence ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S41_EphemeralPrivateKeyToStaticPublicKeyInput__M18_recipientPublicKey(System.IO.MemoryStream value) { - return ToDafny_N6_smithy__N3_api__S4_Blob(value); + return ToDafny_N6_smithy__N3_api__S4_Blob((System.IO.MemoryStream)value); } public static AWS.Cryptography.Primitives.ECDSASignatureAlgorithm FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S5_ECDSA__M5_curve(software.amazon.cryptography.primitives.internaldafny.types._IECDSASignatureAlgorithm value) { @@ -3693,7 +3693,7 @@ public static AWS.Cryptography.Primitives.ECDSASignatureAlgorithm FromDafny_N3_a } public static software.amazon.cryptography.primitives.internaldafny.types._IECDSASignatureAlgorithm ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S5_ECDSA__M5_curve(AWS.Cryptography.Primitives.ECDSASignatureAlgorithm value) { - return ToDafny_N3_aws__N12_cryptography__N10_primitives__S23_ECDSASignatureAlgorithm(value); + return ToDafny_N3_aws__N12_cryptography__N10_primitives__S23_ECDSASignatureAlgorithm((AWS.Cryptography.Primitives.ECDSASignatureAlgorithm)value); } public static int FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S14_CountingNumber(int value) { @@ -3826,7 +3826,7 @@ public static string FromDafny_N3_aws__N12_cryptography__N17_materialProviders__ } public static Dafny.ISequence ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S13_AccountIdList__M6_member(string value) { - return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S9_AccountId(value); + return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S9_AccountId((string)value); } public static string FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S16_EncryptedDataKey__M13_keyProviderId(Dafny.ISequence value) { @@ -3834,7 +3834,7 @@ public static string FromDafny_N3_aws__N12_cryptography__N17_materialProviders__ } public static Dafny.ISequence ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S16_EncryptedDataKey__M13_keyProviderId(string value) { - return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S9_Utf8Bytes(value); + return ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S9_Utf8Bytes((string)value); } public static System.IO.MemoryStream FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S16_EncryptedDataKey__M15_keyProviderInfo(Dafny.ISequence value) { @@ -3842,7 +3842,7 @@ public static System.IO.MemoryStream FromDafny_N3_aws__N12_cryptography__N17_mat } public static Dafny.ISequence ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S16_EncryptedDataKey__M15_keyProviderInfo(System.IO.MemoryStream value) { - return ToDafny_N6_smithy__N3_api__S4_Blob(value); + return ToDafny_N6_smithy__N3_api__S4_Blob((System.IO.MemoryStream)value); } public static System.IO.MemoryStream FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S16_EncryptedDataKey__M10_ciphertext(Dafny.ISequence value) { @@ -3850,7 +3850,7 @@ public static System.IO.MemoryStream FromDafny_N3_aws__N12_cryptography__N17_mat } public static Dafny.ISequence ToDafny_N3_aws__N12_cryptography__N17_materialProviders__S16_EncryptedDataKey__M10_ciphertext(System.IO.MemoryStream value) { - return ToDafny_N6_smithy__N3_api__S4_Blob(value); + return ToDafny_N6_smithy__N3_api__S4_Blob((System.IO.MemoryStream)value); } public static string FromDafny_N3_aws__N12_cryptography__N8_keyStore__S17_EncryptionContext__M3_key(Dafny.ISequence value) { @@ -3858,7 +3858,7 @@ public static string FromDafny_N3_aws__N12_cryptography__N8_keyStore__S17_Encryp } public static Dafny.ISequence ToDafny_N3_aws__N12_cryptography__N8_keyStore__S17_EncryptionContext__M3_key(string value) { - return ToDafny_N3_aws__N12_cryptography__N8_keyStore__S9_Utf8Bytes(value); + return ToDafny_N3_aws__N12_cryptography__N8_keyStore__S9_Utf8Bytes((string)value); } public static string FromDafny_N3_aws__N12_cryptography__N8_keyStore__S17_EncryptionContext__M5_value(Dafny.ISequence value) { @@ -3866,7 +3866,7 @@ public static string FromDafny_N3_aws__N12_cryptography__N8_keyStore__S17_Encryp } public static Dafny.ISequence ToDafny_N3_aws__N12_cryptography__N8_keyStore__S17_EncryptionContext__M5_value(string value) { - return ToDafny_N3_aws__N12_cryptography__N8_keyStore__S9_Utf8Bytes(value); + return ToDafny_N3_aws__N12_cryptography__N8_keyStore__S9_Utf8Bytes((string)value); } public static string FromDafny_N3_aws__N12_cryptography__N8_keyStore__S10_HmacKeyMap__M3_key(Dafny.ISequence value) { @@ -3874,7 +3874,7 @@ public static string FromDafny_N3_aws__N12_cryptography__N8_keyStore__S10_HmacKe } public static Dafny.ISequence ToDafny_N3_aws__N12_cryptography__N8_keyStore__S10_HmacKeyMap__M3_key(string value) { - return ToDafny_N6_smithy__N3_api__S6_String(value); + return ToDafny_N6_smithy__N3_api__S6_String((string)value); } public static System.IO.MemoryStream FromDafny_N3_aws__N12_cryptography__N8_keyStore__S10_HmacKeyMap__M5_value(Dafny.ISequence value) { @@ -3882,7 +3882,7 @@ public static System.IO.MemoryStream FromDafny_N3_aws__N12_cryptography__N8_keyS } public static Dafny.ISequence ToDafny_N3_aws__N12_cryptography__N8_keyStore__S10_HmacKeyMap__M5_value(System.IO.MemoryStream value) { - return ToDafny_N3_aws__N12_cryptography__N8_keyStore__S6_Secret(value); + return ToDafny_N3_aws__N12_cryptography__N8_keyStore__S6_Secret((System.IO.MemoryStream)value); } public static string FromDafny_N3_aws__N12_cryptography__N17_materialProviders__S9_AccountId(Dafny.ISequence value) { diff --git a/smithy-dafny b/smithy-dafny index 5fb3f25ea..fe7f3f404 160000 --- a/smithy-dafny +++ b/smithy-dafny @@ -1 +1 @@ -Subproject commit 5fb3f25ea3444c51b2ad30b25ab03964cf866cd1 +Subproject commit fe7f3f4042077a18fbc71f5e8cf2181367c211c3