diff --git a/AwsCryptographicMaterialProviders/Makefile b/AwsCryptographicMaterialProviders/Makefile index 9377b9cd3..f6828ec81 100644 --- a/AwsCryptographicMaterialProviders/Makefile +++ b/AwsCryptographicMaterialProviders/Makefile @@ -94,7 +94,7 @@ _sed_index_file_add_extern: # Python -PYTHON_MODULE_NAME=aws_cryptographic_materialproviders +PYTHON_MODULE_NAME=aws_cryptographic_material_providers TRANSLATION_RECORD_PYTHON := \ --translation-record ../StandardLibrary/runtimes/python/src/smithy_dafny_standard_library/internaldafny/generated/dafny_src-py.dtr \ @@ -106,5 +106,5 @@ PYTHON_DEPENDENCY_MODULE_NAMES := \ --dependency-library-name=aws.cryptography.primitives=aws_cryptography_primitives \ --dependency-library-name=com.amazonaws.kms=aws_cryptography_internal_kms \ --dependency-library-name=com.amazonaws.dynamodb=aws_cryptography_internal_dynamodb \ - --dependency-library-name=aws.cryptography.materialProviders=aws_cryptographic_materialproviders \ - --dependency-library-name=aws.cryptography.keyStore=aws_cryptographic_materialproviders \ \ No newline at end of file + --dependency-library-name=aws.cryptography.materialProviders=aws_cryptographic_material_providers \ + --dependency-library-name=aws.cryptography.keyStore=aws_cryptographic_material_providers \ \ No newline at end of file diff --git a/AwsCryptographicMaterialProviders/codebuild/release-python/validate.yml b/AwsCryptographicMaterialProviders/codebuild/release-python/validate.yml index ea53a56fb..d701b5e33 100644 --- a/AwsCryptographicMaterialProviders/codebuild/release-python/validate.yml +++ b/AwsCryptographicMaterialProviders/codebuild/release-python/validate.yml @@ -33,11 +33,11 @@ phases: # Install the published artifact from PyPI. # The tests will use the installed package, not the local code. # The actual test code must be from local, since we don't publish tests. - - pip install aws-cryptographic-materialproviders==$VERSION + - pip install aws-cryptographic-material-providers==$VERSION # Install ESDK-Python, override its requirements to force use of the just-published MPL version - git clone -b mpl-reviewed https://github.com/aws/aws-encryption-sdk-python.git - cd aws-encryption-sdk-python - - sed -i "s/aws-cryptographic-materialproviders.*/aws-cryptographic-materialproviders==$VERSION/" requirements_mpl.txt + - sed -i "s/aws-cryptographic-material-providers.*/aws-cryptographic-material-providers==$VERSION/" requirements_mpl.txt - cd .. # Get CI Creds to be able to call KMS and DDB - TMP_ROLE=$(aws sts assume-role --role-arn "arn:aws:iam::370957321024:role/GitHub-CI-MPL-Dafny-Role-us-west-2" --role-session-name "MPL-Python-Release") diff --git a/AwsCryptographicMaterialProviders/runtimes/python/doc/conf.py b/AwsCryptographicMaterialProviders/runtimes/python/doc/conf.py index 41372f070..fa2bb68e6 100644 --- a/AwsCryptographicMaterialProviders/runtimes/python/doc/conf.py +++ b/AwsCryptographicMaterialProviders/runtimes/python/doc/conf.py @@ -21,7 +21,7 @@ def get_version(): return ".".join(split_version[:2]) return release -project = u"aws-cryptographic-materialproviders" +project = u"aws-cryptographic-material-providers" version = get_version() release = get_release() diff --git a/AwsCryptographicMaterialProviders/runtimes/python/doc/index.rst b/AwsCryptographicMaterialProviders/runtimes/python/doc/index.rst index 762a7e8c9..0aaa1d727 100644 --- a/AwsCryptographicMaterialProviders/runtimes/python/doc/index.rst +++ b/AwsCryptographicMaterialProviders/runtimes/python/doc/index.rst @@ -10,15 +10,15 @@ Modules .. autosummary:: :toctree: generated - aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_keystore.client - aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_keystore.config - aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_keystore.errors - aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_keystore.models - aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.client - aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.config - aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.errors - aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.models - aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.references + aws_cryptographic_material_providers.smithygenerated.aws_cryptography_keystore.client + aws_cryptographic_material_providers.smithygenerated.aws_cryptography_keystore.config + aws_cryptographic_material_providers.smithygenerated.aws_cryptography_keystore.errors + aws_cryptographic_material_providers.smithygenerated.aws_cryptography_keystore.models + aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.client + aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.config + aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.errors + aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.models + aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.references .. include:: ../../../../CHANGELOG.md :parser: myst_parser.docutils_ \ No newline at end of file diff --git a/AwsCryptographicMaterialProviders/runtimes/python/pyproject.toml b/AwsCryptographicMaterialProviders/runtimes/python/pyproject.toml index 71e4e6870..8192d591c 100644 --- a/AwsCryptographicMaterialProviders/runtimes/python/pyproject.toml +++ b/AwsCryptographicMaterialProviders/runtimes/python/pyproject.toml @@ -1,10 +1,10 @@ [tool.poetry] -name = "aws-cryptographic-materialproviders" +name = "aws-cryptographic-material-providers" version = "1.7.1" description = "AWS Cryptographic Material Providers Library for Python" authors = ["AWS Crypto Tools "] packages = [ - { include = "aws_cryptographic_materialproviders", from = "src" }, + { include = "aws_cryptographic_material_providers", from = "src" }, ] # Include generated internaldafny files in package distributions, # even though they are not included in version control diff --git a/AwsCryptographicMaterialProviders/runtimes/python/src/aws_cryptographic_materialproviders/__init__.py b/AwsCryptographicMaterialProviders/runtimes/python/src/aws_cryptographic_material_providers/__init__.py similarity index 60% rename from AwsCryptographicMaterialProviders/runtimes/python/src/aws_cryptographic_materialproviders/__init__.py rename to AwsCryptographicMaterialProviders/runtimes/python/src/aws_cryptographic_material_providers/__init__.py index 90cb5ca0d..f556fe9d6 100644 --- a/AwsCryptographicMaterialProviders/runtimes/python/src/aws_cryptographic_materialproviders/__init__.py +++ b/AwsCryptographicMaterialProviders/runtimes/python/src/aws_cryptographic_material_providers/__init__.py @@ -8,8 +8,8 @@ from .internaldafny import extern # Export user-friendly access paths -import aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders as mpl -import aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_keystore as keystore +import aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders as mpl +import aws_cryptographic_material_providers.smithygenerated.aws_cryptography_keystore as keystore __all__ = [ mpl, diff --git a/AwsCryptographicMaterialProviders/runtimes/python/src/aws_cryptographic_materialproviders/internaldafny/extern/StormTrackingCMC.py b/AwsCryptographicMaterialProviders/runtimes/python/src/aws_cryptographic_material_providers/internaldafny/extern/StormTrackingCMC.py similarity index 84% rename from AwsCryptographicMaterialProviders/runtimes/python/src/aws_cryptographic_materialproviders/internaldafny/extern/StormTrackingCMC.py rename to AwsCryptographicMaterialProviders/runtimes/python/src/aws_cryptographic_material_providers/internaldafny/extern/StormTrackingCMC.py index 3d36b96a8..5164cebde 100644 --- a/AwsCryptographicMaterialProviders/runtimes/python/src/aws_cryptographic_materialproviders/internaldafny/extern/StormTrackingCMC.py +++ b/AwsCryptographicMaterialProviders/runtimes/python/src/aws_cryptographic_material_providers/internaldafny/extern/StormTrackingCMC.py @@ -1,7 +1,7 @@ import time -import aws_cryptographic_materialproviders.internaldafny.generated.StormTrackingCMC +import aws_cryptographic_material_providers.internaldafny.generated.StormTrackingCMC import smithy_dafny_standard_library.internaldafny.generated.Wrappers as Wrappers -import aws_cryptographic_materialproviders.internaldafny.generated.AwsCryptographyMaterialProvidersTypes +import aws_cryptographic_material_providers.internaldafny.generated.AwsCryptographyMaterialProvidersTypes from . import Lock class StormTrackingCMC: @@ -61,7 +61,7 @@ def GetCacheEntry_k(self, input): return Wrappers.Result_Success(result.value.data) elif result.value.is_EmptyFetch: return Wrappers.Result_Failure( - aws_cryptographic_materialproviders.internaldafny.generated.AwsCryptographyMaterialProvidersTypes.Error_EntryDoesNotExist( + aws_cryptographic_material_providers.internaldafny.generated.AwsCryptographyMaterialProvidersTypes.Error_EntryDoesNotExist( "Entry does not exist" ) ) @@ -80,4 +80,4 @@ def DeleteCacheEntry_k(self, input): def __str__(self): return "StormTracker.StormTrackerCMC" -aws_cryptographic_materialproviders.internaldafny.generated.StormTrackingCMC.StormTrackingCMC = StormTrackingCMC \ No newline at end of file +aws_cryptographic_material_providers.internaldafny.generated.StormTrackingCMC.StormTrackingCMC = StormTrackingCMC \ No newline at end of file diff --git a/AwsCryptographicMaterialProviders/runtimes/python/src/aws_cryptographic_materialproviders/internaldafny/extern/SynchronizedLocalCMC.py b/AwsCryptographicMaterialProviders/runtimes/python/src/aws_cryptographic_material_providers/internaldafny/extern/SynchronizedLocalCMC.py similarity index 81% rename from AwsCryptographicMaterialProviders/runtimes/python/src/aws_cryptographic_materialproviders/internaldafny/extern/SynchronizedLocalCMC.py rename to AwsCryptographicMaterialProviders/runtimes/python/src/aws_cryptographic_material_providers/internaldafny/extern/SynchronizedLocalCMC.py index 8b7eca684..122b54c84 100644 --- a/AwsCryptographicMaterialProviders/runtimes/python/src/aws_cryptographic_materialproviders/internaldafny/extern/SynchronizedLocalCMC.py +++ b/AwsCryptographicMaterialProviders/runtimes/python/src/aws_cryptographic_material_providers/internaldafny/extern/SynchronizedLocalCMC.py @@ -1,7 +1,7 @@ -import aws_cryptographic_materialproviders.internaldafny.generated.StormTrackingCMC -import aws_cryptographic_materialproviders.internaldafny.generated.SynchronizedLocalCMC +import aws_cryptographic_material_providers.internaldafny.generated.StormTrackingCMC +import aws_cryptographic_material_providers.internaldafny.generated.SynchronizedLocalCMC import smithy_dafny_standard_library.internaldafny.generated.Wrappers as Wrappers -import aws_cryptographic_materialproviders.internaldafny.generated.AwsCryptographyMaterialProvidersTypes +import aws_cryptographic_material_providers.internaldafny.generated.AwsCryptographyMaterialProvidersTypes from . import Lock class SynchronizedLocalCMC: @@ -67,4 +67,4 @@ def DeleteCacheEntry_k(self, input): def __str__(self): return "LocalCMC.SynchronizedLocalCMC" -aws_cryptographic_materialproviders.internaldafny.generated.SynchronizedLocalCMC.SynchronizedLocalCMC = SynchronizedLocalCMC \ No newline at end of file +aws_cryptographic_material_providers.internaldafny.generated.SynchronizedLocalCMC.SynchronizedLocalCMC = SynchronizedLocalCMC \ No newline at end of file diff --git a/AwsCryptographicMaterialProviders/runtimes/python/src/aws_cryptographic_materialproviders/internaldafny/extern/__init__.py b/AwsCryptographicMaterialProviders/runtimes/python/src/aws_cryptographic_material_providers/internaldafny/extern/__init__.py similarity index 100% rename from AwsCryptographicMaterialProviders/runtimes/python/src/aws_cryptographic_materialproviders/internaldafny/extern/__init__.py rename to AwsCryptographicMaterialProviders/runtimes/python/src/aws_cryptographic_material_providers/internaldafny/extern/__init__.py diff --git a/AwsCryptographicMaterialProviders/runtimes/python/src/aws_cryptographic_material_providers/internaldafny/generated/dafny_src-py.dtr b/AwsCryptographicMaterialProviders/runtimes/python/src/aws_cryptographic_material_providers/internaldafny/generated/dafny_src-py.dtr new file mode 100644 index 000000000..48d701b7a --- /dev/null +++ b/AwsCryptographicMaterialProviders/runtimes/python/src/aws_cryptographic_material_providers/internaldafny/generated/dafny_src-py.dtr @@ -0,0 +1,179 @@ +file_format_version = "1.0" +dafny_version = "4.8.0.0" +[options_by_module.AwsCryptographyKeyStoreTypes] +legacy-module-names = false +python-module-name = "aws_cryptographic_material_providers.internaldafny.generated" +[options_by_module.AbstractAwsCryptographyKeyStoreOperations] +legacy-module-names = false +python-module-name = "aws_cryptographic_material_providers.internaldafny.generated" +[options_by_module.AbstractAwsCryptographyKeyStoreService] +legacy-module-names = false +python-module-name = "aws_cryptographic_material_providers.internaldafny.generated" +[options_by_module.AwsCryptographyMaterialProvidersTypes] +legacy-module-names = false +python-module-name = "aws_cryptographic_material_providers.internaldafny.generated" +[options_by_module.AwsArnParsing] +legacy-module-names = false +python-module-name = "aws_cryptographic_material_providers.internaldafny.generated" +[options_by_module.AwsKmsMrkMatchForDecrypt] +legacy-module-names = false +python-module-name = "aws_cryptographic_material_providers.internaldafny.generated" +[options_by_module.AwsKmsUtils] +legacy-module-names = false +python-module-name = "aws_cryptographic_material_providers.internaldafny.generated" +[options_by_module.KeyStoreErrorMessages] +legacy-module-names = false +python-module-name = "aws_cryptographic_material_providers.internaldafny.generated" +[options_by_module.KmsArn] +legacy-module-names = false +python-module-name = "aws_cryptographic_material_providers.internaldafny.generated" +[options_by_module.Structure] +legacy-module-names = false +python-module-name = "aws_cryptographic_material_providers.internaldafny.generated" +[options_by_module.KMSKeystoreOperations] +legacy-module-names = false +python-module-name = "aws_cryptographic_material_providers.internaldafny.generated" +[options_by_module.DDBKeystoreOperations] +legacy-module-names = false +python-module-name = "aws_cryptographic_material_providers.internaldafny.generated" +[options_by_module.CreateKeys] +legacy-module-names = false +python-module-name = "aws_cryptographic_material_providers.internaldafny.generated" +[options_by_module.CreateKeyStoreTable] +legacy-module-names = false +python-module-name = "aws_cryptographic_material_providers.internaldafny.generated" +[options_by_module.GetKeys] +legacy-module-names = false +python-module-name = "aws_cryptographic_material_providers.internaldafny.generated" +[options_by_module.AwsCryptographyKeyStoreOperations] +legacy-module-names = false +python-module-name = "aws_cryptographic_material_providers.internaldafny.generated" +[options_by_module.KeyStore] +legacy-module-names = false +python-module-name = "aws_cryptographic_material_providers.internaldafny.generated" +[options_by_module.AbstractAwsCryptographyMaterialProvidersOperations] +legacy-module-names = false +python-module-name = "aws_cryptographic_material_providers.internaldafny.generated" +[options_by_module.AbstractAwsCryptographyMaterialProvidersService] +legacy-module-names = false +python-module-name = "aws_cryptographic_material_providers.internaldafny.generated" +[options_by_module.AlgorithmSuites] +legacy-module-names = false +python-module-name = "aws_cryptographic_material_providers.internaldafny.generated" +[options_by_module.Materials] +legacy-module-names = false +python-module-name = "aws_cryptographic_material_providers.internaldafny.generated" +[options_by_module.Keyring] +legacy-module-names = false +python-module-name = "aws_cryptographic_material_providers.internaldafny.generated" +[options_by_module.MultiKeyring] +legacy-module-names = false +python-module-name = "aws_cryptographic_material_providers.internaldafny.generated" +[options_by_module.AwsKmsMrkAreUnique] +legacy-module-names = false +python-module-name = "aws_cryptographic_material_providers.internaldafny.generated" +[options_by_module.Constants] +legacy-module-names = false +python-module-name = "aws_cryptographic_material_providers.internaldafny.generated" +[options_by_module.MaterialWrapping] +legacy-module-names = false +python-module-name = "aws_cryptographic_material_providers.internaldafny.generated" +[options_by_module.CanonicalEncryptionContext] +legacy-module-names = false +python-module-name = "aws_cryptographic_material_providers.internaldafny.generated" +[options_by_module.IntermediateKeyWrapping] +legacy-module-names = false +python-module-name = "aws_cryptographic_material_providers.internaldafny.generated" +[options_by_module.EdkWrapping] +legacy-module-names = false +python-module-name = "aws_cryptographic_material_providers.internaldafny.generated" +[options_by_module.ErrorMessages] +legacy-module-names = false +python-module-name = "aws_cryptographic_material_providers.internaldafny.generated" +[options_by_module.AwsKmsKeyring] +legacy-module-names = false +python-module-name = "aws_cryptographic_material_providers.internaldafny.generated" +[options_by_module.StrictMultiKeyring] +legacy-module-names = false +python-module-name = "aws_cryptographic_material_providers.internaldafny.generated" +[options_by_module.AwsKmsDiscoveryKeyring] +legacy-module-names = false +python-module-name = "aws_cryptographic_material_providers.internaldafny.generated" +[options_by_module.DiscoveryMultiKeyring] +legacy-module-names = false +python-module-name = "aws_cryptographic_material_providers.internaldafny.generated" +[options_by_module.AwsKmsMrkDiscoveryKeyring] +legacy-module-names = false +python-module-name = "aws_cryptographic_material_providers.internaldafny.generated" +[options_by_module.MrkAwareDiscoveryMultiKeyring] +legacy-module-names = false +python-module-name = "aws_cryptographic_material_providers.internaldafny.generated" +[options_by_module.AwsKmsMrkKeyring] +legacy-module-names = false +python-module-name = "aws_cryptographic_material_providers.internaldafny.generated" +[options_by_module.MrkAwareStrictMultiKeyring] +legacy-module-names = false +python-module-name = "aws_cryptographic_material_providers.internaldafny.generated" +[options_by_module.LocalCMC] +legacy-module-names = false +python-module-name = "aws_cryptographic_material_providers.internaldafny.generated" +[options_by_module.SynchronizedLocalCMC] +legacy-module-names = false +python-module-name = "aws_cryptographic_material_providers.internaldafny.generated" +[options_by_module.StormTracker] +legacy-module-names = false +python-module-name = "aws_cryptographic_material_providers.internaldafny.generated" +[options_by_module.StormTrackingCMC] +legacy-module-names = false +python-module-name = "aws_cryptographic_material_providers.internaldafny.generated" +[options_by_module.CacheConstants] +legacy-module-names = false +python-module-name = "aws_cryptographic_material_providers.internaldafny.generated" +[options_by_module.AwsKmsHierarchicalKeyring] +legacy-module-names = false +python-module-name = "aws_cryptographic_material_providers.internaldafny.generated" +[options_by_module.AwsKmsRsaKeyring] +legacy-module-names = false +python-module-name = "aws_cryptographic_material_providers.internaldafny.generated" +[options_by_module.EcdhEdkWrapping] +legacy-module-names = false +python-module-name = "aws_cryptographic_material_providers.internaldafny.generated" +[options_by_module.RawECDHKeyring] +legacy-module-names = false +python-module-name = "aws_cryptographic_material_providers.internaldafny.generated" +[options_by_module.AwsKmsEcdhKeyring] +legacy-module-names = false +python-module-name = "aws_cryptographic_material_providers.internaldafny.generated" +[options_by_module.RawAESKeyring] +legacy-module-names = false +python-module-name = "aws_cryptographic_material_providers.internaldafny.generated" +[options_by_module.RawRSAKeyring] +legacy-module-names = false +python-module-name = "aws_cryptographic_material_providers.internaldafny.generated" +[options_by_module.CMM] +legacy-module-names = false +python-module-name = "aws_cryptographic_material_providers.internaldafny.generated" +[options_by_module.Defaults] +legacy-module-names = false +python-module-name = "aws_cryptographic_material_providers.internaldafny.generated" +[options_by_module.Commitment] +legacy-module-names = false +python-module-name = "aws_cryptographic_material_providers.internaldafny.generated" +[options_by_module.DefaultCMM] +legacy-module-names = false +python-module-name = "aws_cryptographic_material_providers.internaldafny.generated" +[options_by_module.DefaultClientSupplier] +legacy-module-names = false +python-module-name = "aws_cryptographic_material_providers.internaldafny.generated" +[options_by_module.Utils] +legacy-module-names = false +python-module-name = "aws_cryptographic_material_providers.internaldafny.generated" +[options_by_module.RequiredEncryptionContextCMM] +legacy-module-names = false +python-module-name = "aws_cryptographic_material_providers.internaldafny.generated" +[options_by_module.AwsCryptographyMaterialProvidersOperations] +legacy-module-names = false +python-module-name = "aws_cryptographic_material_providers.internaldafny.generated" +[options_by_module.MaterialProviders] +legacy-module-names = false +python-module-name = "aws_cryptographic_material_providers.internaldafny.generated" diff --git a/AwsCryptographicMaterialProviders/runtimes/python/src/aws_cryptographic_materialproviders/keystore/__init__.py b/AwsCryptographicMaterialProviders/runtimes/python/src/aws_cryptographic_material_providers/keystore/__init__.py similarity index 100% rename from AwsCryptographicMaterialProviders/runtimes/python/src/aws_cryptographic_materialproviders/keystore/__init__.py rename to AwsCryptographicMaterialProviders/runtimes/python/src/aws_cryptographic_material_providers/keystore/__init__.py diff --git a/AwsCryptographicMaterialProviders/runtimes/python/src/aws_cryptographic_materialproviders/keystore/client.py b/AwsCryptographicMaterialProviders/runtimes/python/src/aws_cryptographic_material_providers/keystore/client.py similarity index 51% rename from AwsCryptographicMaterialProviders/runtimes/python/src/aws_cryptographic_materialproviders/keystore/client.py rename to AwsCryptographicMaterialProviders/runtimes/python/src/aws_cryptographic_material_providers/keystore/client.py index 132e93507..178c395da 100644 --- a/AwsCryptographicMaterialProviders/runtimes/python/src/aws_cryptographic_materialproviders/keystore/client.py +++ b/AwsCryptographicMaterialProviders/runtimes/python/src/aws_cryptographic_material_providers/keystore/client.py @@ -1,3 +1,3 @@ # Copyright Amazon.com Inc. or its affiliates. All Rights Reserved. # SPDX-License-Identifier: Apache-2.0 -from aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_keystore.client import * +from aws_cryptographic_material_providers.smithygenerated.aws_cryptography_keystore.client import * diff --git a/AwsCryptographicMaterialProviders/runtimes/python/src/aws_cryptographic_materialproviders/keystore/config.py b/AwsCryptographicMaterialProviders/runtimes/python/src/aws_cryptographic_material_providers/keystore/config.py similarity index 51% rename from AwsCryptographicMaterialProviders/runtimes/python/src/aws_cryptographic_materialproviders/keystore/config.py rename to AwsCryptographicMaterialProviders/runtimes/python/src/aws_cryptographic_material_providers/keystore/config.py index 3925445fe..9ca394ec2 100644 --- a/AwsCryptographicMaterialProviders/runtimes/python/src/aws_cryptographic_materialproviders/keystore/config.py +++ b/AwsCryptographicMaterialProviders/runtimes/python/src/aws_cryptographic_material_providers/keystore/config.py @@ -1,3 +1,3 @@ # Copyright Amazon.com Inc. or its affiliates. All Rights Reserved. # SPDX-License-Identifier: Apache-2.0 -from aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_keystore.config import * +from aws_cryptographic_material_providers.smithygenerated.aws_cryptography_keystore.config import * diff --git a/AwsCryptographicMaterialProviders/runtimes/python/src/aws_cryptographic_materialproviders/keystore/errors.py b/AwsCryptographicMaterialProviders/runtimes/python/src/aws_cryptographic_material_providers/keystore/errors.py similarity index 51% rename from AwsCryptographicMaterialProviders/runtimes/python/src/aws_cryptographic_materialproviders/keystore/errors.py rename to AwsCryptographicMaterialProviders/runtimes/python/src/aws_cryptographic_material_providers/keystore/errors.py index 494095b1a..3b1657962 100644 --- a/AwsCryptographicMaterialProviders/runtimes/python/src/aws_cryptographic_materialproviders/keystore/errors.py +++ b/AwsCryptographicMaterialProviders/runtimes/python/src/aws_cryptographic_material_providers/keystore/errors.py @@ -1,3 +1,3 @@ # Copyright Amazon.com Inc. or its affiliates. All Rights Reserved. # SPDX-License-Identifier: Apache-2.0 -from aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_keystore.errors import * +from aws_cryptographic_material_providers.smithygenerated.aws_cryptography_keystore.errors import * diff --git a/AwsCryptographicMaterialProviders/runtimes/python/src/aws_cryptographic_materialproviders/keystore/models.py b/AwsCryptographicMaterialProviders/runtimes/python/src/aws_cryptographic_material_providers/keystore/models.py similarity index 51% rename from AwsCryptographicMaterialProviders/runtimes/python/src/aws_cryptographic_materialproviders/keystore/models.py rename to AwsCryptographicMaterialProviders/runtimes/python/src/aws_cryptographic_material_providers/keystore/models.py index af8dc0e01..5000e8b16 100644 --- a/AwsCryptographicMaterialProviders/runtimes/python/src/aws_cryptographic_materialproviders/keystore/models.py +++ b/AwsCryptographicMaterialProviders/runtimes/python/src/aws_cryptographic_material_providers/keystore/models.py @@ -1,3 +1,3 @@ # Copyright Amazon.com Inc. or its affiliates. All Rights Reserved. # SPDX-License-Identifier: Apache-2.0 -from aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_keystore.models import * +from aws_cryptographic_material_providers.smithygenerated.aws_cryptography_keystore.models import * diff --git a/AwsCryptographicMaterialProviders/runtimes/python/src/aws_cryptographic_materialproviders/mpl/__init__.py b/AwsCryptographicMaterialProviders/runtimes/python/src/aws_cryptographic_material_providers/mpl/__init__.py similarity index 100% rename from AwsCryptographicMaterialProviders/runtimes/python/src/aws_cryptographic_materialproviders/mpl/__init__.py rename to AwsCryptographicMaterialProviders/runtimes/python/src/aws_cryptographic_material_providers/mpl/__init__.py diff --git a/AwsCryptographicMaterialProviders/runtimes/python/src/aws_cryptographic_material_providers/mpl/client.py b/AwsCryptographicMaterialProviders/runtimes/python/src/aws_cryptographic_material_providers/mpl/client.py new file mode 100644 index 000000000..440e5e347 --- /dev/null +++ b/AwsCryptographicMaterialProviders/runtimes/python/src/aws_cryptographic_material_providers/mpl/client.py @@ -0,0 +1,3 @@ +# Copyright Amazon.com Inc. or its affiliates. All Rights Reserved. +# SPDX-License-Identifier: Apache-2.0 +from aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.client import * diff --git a/AwsCryptographicMaterialProviders/runtimes/python/src/aws_cryptographic_material_providers/mpl/config.py b/AwsCryptographicMaterialProviders/runtimes/python/src/aws_cryptographic_material_providers/mpl/config.py new file mode 100644 index 000000000..53ce7ea07 --- /dev/null +++ b/AwsCryptographicMaterialProviders/runtimes/python/src/aws_cryptographic_material_providers/mpl/config.py @@ -0,0 +1,3 @@ +# Copyright Amazon.com Inc. or its affiliates. All Rights Reserved. +# SPDX-License-Identifier: Apache-2.0 +from aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.config import * diff --git a/AwsCryptographicMaterialProviders/runtimes/python/src/aws_cryptographic_material_providers/mpl/errors.py b/AwsCryptographicMaterialProviders/runtimes/python/src/aws_cryptographic_material_providers/mpl/errors.py new file mode 100644 index 000000000..ff8705d8d --- /dev/null +++ b/AwsCryptographicMaterialProviders/runtimes/python/src/aws_cryptographic_material_providers/mpl/errors.py @@ -0,0 +1,3 @@ +# Copyright Amazon.com Inc. or its affiliates. All Rights Reserved. +# SPDX-License-Identifier: Apache-2.0 +from aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.errors import * diff --git a/AwsCryptographicMaterialProviders/runtimes/python/src/aws_cryptographic_material_providers/mpl/models.py b/AwsCryptographicMaterialProviders/runtimes/python/src/aws_cryptographic_material_providers/mpl/models.py new file mode 100644 index 000000000..c06d3399f --- /dev/null +++ b/AwsCryptographicMaterialProviders/runtimes/python/src/aws_cryptographic_material_providers/mpl/models.py @@ -0,0 +1,3 @@ +# Copyright Amazon.com Inc. or its affiliates. All Rights Reserved. +# SPDX-License-Identifier: Apache-2.0 +from aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.models import * diff --git a/AwsCryptographicMaterialProviders/runtimes/python/src/aws_cryptographic_material_providers/mpl/references.py b/AwsCryptographicMaterialProviders/runtimes/python/src/aws_cryptographic_material_providers/mpl/references.py new file mode 100644 index 000000000..a5390c533 --- /dev/null +++ b/AwsCryptographicMaterialProviders/runtimes/python/src/aws_cryptographic_material_providers/mpl/references.py @@ -0,0 +1,3 @@ +# Copyright Amazon.com Inc. or its affiliates. All Rights Reserved. +# SPDX-License-Identifier: Apache-2.0 +from aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.references import * diff --git a/AwsCryptographicMaterialProviders/runtimes/python/src/aws_cryptographic_materialproviders/smithygenerated/aws_cryptography_keystore/__init__.py b/AwsCryptographicMaterialProviders/runtimes/python/src/aws_cryptographic_material_providers/smithygenerated/aws_cryptography_keystore/__init__.py similarity index 100% rename from AwsCryptographicMaterialProviders/runtimes/python/src/aws_cryptographic_materialproviders/smithygenerated/aws_cryptography_keystore/__init__.py rename to AwsCryptographicMaterialProviders/runtimes/python/src/aws_cryptographic_material_providers/smithygenerated/aws_cryptography_keystore/__init__.py diff --git a/AwsCryptographicMaterialProviders/runtimes/python/src/aws_cryptographic_materialproviders/smithygenerated/aws_cryptography_keystore/client.py b/AwsCryptographicMaterialProviders/runtimes/python/src/aws_cryptographic_material_providers/smithygenerated/aws_cryptography_keystore/client.py similarity index 99% rename from AwsCryptographicMaterialProviders/runtimes/python/src/aws_cryptographic_materialproviders/smithygenerated/aws_cryptography_keystore/client.py rename to AwsCryptographicMaterialProviders/runtimes/python/src/aws_cryptographic_material_providers/smithygenerated/aws_cryptography_keystore/client.py index 477e66639..f35f12562 100644 --- a/AwsCryptographicMaterialProviders/runtimes/python/src/aws_cryptographic_materialproviders/smithygenerated/aws_cryptography_keystore/client.py +++ b/AwsCryptographicMaterialProviders/runtimes/python/src/aws_cryptographic_material_providers/smithygenerated/aws_cryptography_keystore/client.py @@ -2,7 +2,7 @@ # SPDX-License-Identifier: Apache-2.0 # Do not modify this file. This file is machine generated, and any changes to it will be overwritten. -from aws_cryptographic_materialproviders.internaldafny.generated.AwsCryptographyKeyStoreTypes import ( +from aws_cryptographic_material_providers.internaldafny.generated.AwsCryptographyKeyStoreTypes import ( IKeyStoreClient, ) from typing import Callable, TypeVar, cast diff --git a/AwsCryptographicMaterialProviders/runtimes/python/src/aws_cryptographic_materialproviders/smithygenerated/aws_cryptography_keystore/config.py b/AwsCryptographicMaterialProviders/runtimes/python/src/aws_cryptographic_material_providers/smithygenerated/aws_cryptography_keystore/config.py similarity index 91% rename from AwsCryptographicMaterialProviders/runtimes/python/src/aws_cryptographic_materialproviders/smithygenerated/aws_cryptography_keystore/config.py rename to AwsCryptographicMaterialProviders/runtimes/python/src/aws_cryptographic_material_providers/smithygenerated/aws_cryptography_keystore/config.py index ba61a7027..c79bcff34 100644 --- a/AwsCryptographicMaterialProviders/runtimes/python/src/aws_cryptographic_materialproviders/smithygenerated/aws_cryptography_keystore/config.py +++ b/AwsCryptographicMaterialProviders/runtimes/python/src/aws_cryptographic_material_providers/smithygenerated/aws_cryptography_keystore/config.py @@ -2,12 +2,12 @@ # SPDX-License-Identifier: Apache-2.0 # Do not modify this file. This file is machine generated, and any changes to it will be overwritten. -from aws_cryptographic_materialproviders.internaldafny.generated.AwsCryptographyKeyStoreTypes import ( +from aws_cryptographic_material_providers.internaldafny.generated.AwsCryptographyKeyStoreTypes import ( KeyStoreConfig_KeyStoreConfig as DafnyKeyStoreConfig, ) -import aws_cryptographic_materialproviders.internaldafny.generated.module_ -import aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_keystore.dafny_to_smithy -import aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_keystore.smithy_to_dafny +import aws_cryptographic_material_providers.internaldafny.generated.module_ +import aws_cryptographic_material_providers.smithygenerated.aws_cryptography_keystore.dafny_to_smithy +import aws_cryptographic_material_providers.smithygenerated.aws_cryptography_keystore.smithy_to_dafny from dataclasses import dataclass from typing import Any, Callable, Dict, Optional, TypeAlias @@ -198,7 +198,7 @@ def __eq__(self, other: Any) -> bool: def dafny_config_to_smithy_config(dafny_config) -> KeyStoreConfig: """Converts the provided Dafny shape for this localService's config into the corresponding Smithy-modelled shape.""" - return aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_keystore.dafny_to_smithy.aws_cryptography_keystore_KeyStoreConfig( + return aws_cryptographic_material_providers.smithygenerated.aws_cryptography_keystore.dafny_to_smithy.aws_cryptography_keystore_KeyStoreConfig( dafny_config ) @@ -206,6 +206,6 @@ def dafny_config_to_smithy_config(dafny_config) -> KeyStoreConfig: def smithy_config_to_dafny_config(smithy_config) -> DafnyKeyStoreConfig: """Converts the provided Smithy-modelled shape for this localService's config into the corresponding Dafny shape.""" - return aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_keystore.smithy_to_dafny.aws_cryptography_keystore_KeyStoreConfig( + return aws_cryptographic_material_providers.smithygenerated.aws_cryptography_keystore.smithy_to_dafny.aws_cryptography_keystore_KeyStoreConfig( smithy_config ) diff --git a/AwsCryptographicMaterialProviders/runtimes/python/src/aws_cryptographic_materialproviders/smithygenerated/aws_cryptography_keystore/dafnyImplInterface.py b/AwsCryptographicMaterialProviders/runtimes/python/src/aws_cryptographic_material_providers/smithygenerated/aws_cryptography_keystore/dafnyImplInterface.py similarity index 95% rename from AwsCryptographicMaterialProviders/runtimes/python/src/aws_cryptographic_materialproviders/smithygenerated/aws_cryptography_keystore/dafnyImplInterface.py rename to AwsCryptographicMaterialProviders/runtimes/python/src/aws_cryptographic_material_providers/smithygenerated/aws_cryptography_keystore/dafnyImplInterface.py index aab1c7b6c..06d6a6557 100644 --- a/AwsCryptographicMaterialProviders/runtimes/python/src/aws_cryptographic_materialproviders/smithygenerated/aws_cryptography_keystore/dafnyImplInterface.py +++ b/AwsCryptographicMaterialProviders/runtimes/python/src/aws_cryptographic_material_providers/smithygenerated/aws_cryptography_keystore/dafnyImplInterface.py @@ -2,7 +2,7 @@ # SPDX-License-Identifier: Apache-2.0 # Do not modify this file. This file is machine generated, and any changes to it will be overwritten. -from aws_cryptographic_materialproviders.internaldafny.generated.KeyStore import ( +from aws_cryptographic_material_providers.internaldafny.generated.KeyStore import ( KeyStoreClient, ) from .dafny_protocol import DafnyRequest diff --git a/AwsCryptographicMaterialProviders/runtimes/python/src/aws_cryptographic_materialproviders/smithygenerated/aws_cryptography_keystore/dafny_protocol.py b/AwsCryptographicMaterialProviders/runtimes/python/src/aws_cryptographic_material_providers/smithygenerated/aws_cryptography_keystore/dafny_protocol.py similarity index 88% rename from AwsCryptographicMaterialProviders/runtimes/python/src/aws_cryptographic_materialproviders/smithygenerated/aws_cryptography_keystore/dafny_protocol.py rename to AwsCryptographicMaterialProviders/runtimes/python/src/aws_cryptographic_material_providers/smithygenerated/aws_cryptography_keystore/dafny_protocol.py index dda2b999f..b188822b9 100644 --- a/AwsCryptographicMaterialProviders/runtimes/python/src/aws_cryptographic_materialproviders/smithygenerated/aws_cryptography_keystore/dafny_protocol.py +++ b/AwsCryptographicMaterialProviders/runtimes/python/src/aws_cryptographic_material_providers/smithygenerated/aws_cryptography_keystore/dafny_protocol.py @@ -2,7 +2,7 @@ # SPDX-License-Identifier: Apache-2.0 # Do not modify this file. This file is machine generated, and any changes to it will be overwritten. -from aws_cryptographic_materialproviders.internaldafny.generated.AwsCryptographyKeyStoreTypes import ( +from aws_cryptographic_material_providers.internaldafny.generated.AwsCryptographyKeyStoreTypes import ( CreateKeyInput_CreateKeyInput as DafnyCreateKeyInput, CreateKeyStoreInput_CreateKeyStoreInput as DafnyCreateKeyStoreInput, GetActiveBranchKeyInput_GetActiveBranchKeyInput as DafnyGetActiveBranchKeyInput, @@ -10,7 +10,7 @@ GetBranchKeyVersionInput_GetBranchKeyVersionInput as DafnyGetBranchKeyVersionInput, VersionKeyInput_VersionKeyInput as DafnyVersionKeyInput, ) -import aws_cryptographic_materialproviders.internaldafny.generated.module_ +import aws_cryptographic_material_providers.internaldafny.generated.module_ import smithy_dafny_standard_library.internaldafny.generated.Wrappers as Wrappers diff --git a/AwsCryptographicMaterialProviders/runtimes/python/src/aws_cryptographic_materialproviders/smithygenerated/aws_cryptography_keystore/dafny_to_smithy.py b/AwsCryptographicMaterialProviders/runtimes/python/src/aws_cryptographic_material_providers/smithygenerated/aws_cryptography_keystore/dafny_to_smithy.py similarity index 66% rename from AwsCryptographicMaterialProviders/runtimes/python/src/aws_cryptographic_materialproviders/smithygenerated/aws_cryptography_keystore/dafny_to_smithy.py rename to AwsCryptographicMaterialProviders/runtimes/python/src/aws_cryptographic_material_providers/smithygenerated/aws_cryptography_keystore/dafny_to_smithy.py index f0e72c0a1..3f84327b0 100644 --- a/AwsCryptographicMaterialProviders/runtimes/python/src/aws_cryptographic_materialproviders/smithygenerated/aws_cryptography_keystore/dafny_to_smithy.py +++ b/AwsCryptographicMaterialProviders/runtimes/python/src/aws_cryptographic_material_providers/smithygenerated/aws_cryptography_keystore/dafny_to_smithy.py @@ -2,30 +2,30 @@ # SPDX-License-Identifier: Apache-2.0 # Do not modify this file. This file is machine generated, and any changes to it will be overwritten. -from aws_cryptographic_materialproviders.internaldafny.generated.AwsCryptographyKeyStoreTypes import ( +from aws_cryptographic_material_providers.internaldafny.generated.AwsCryptographyKeyStoreTypes import ( KMSConfiguration_discovery, KMSConfiguration_kmsKeyArn, KMSConfiguration_kmsMRKeyArn, KMSConfiguration_mrDiscovery, ) -import aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_keystore.dafny_to_smithy -import aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_keystore.models +import aws_cryptographic_material_providers.smithygenerated.aws_cryptography_keystore.dafny_to_smithy +import aws_cryptographic_material_providers.smithygenerated.aws_cryptography_keystore.models def smithy_api_Unit(): return ( - aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_keystore.models.Unit() + aws_cryptographic_material_providers.smithygenerated.aws_cryptography_keystore.models.Unit() ) def aws_cryptography_keystore_CreateKeyStoreInput(dafny_input): return ( - aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_keystore.models.CreateKeyStoreInput() + aws_cryptographic_material_providers.smithygenerated.aws_cryptography_keystore.models.CreateKeyStoreInput() ) def aws_cryptography_keystore_CreateKeyInput(dafny_input): - return aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_keystore.models.CreateKeyInput( + return aws_cryptographic_material_providers.smithygenerated.aws_cryptography_keystore.models.CreateKeyInput( branch_key_identifier=( ( b"".join( @@ -52,7 +52,7 @@ def aws_cryptography_keystore_CreateKeyInput(dafny_input): def aws_cryptography_keystore_VersionKeyInput(dafny_input): - return aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_keystore.models.VersionKeyInput( + return aws_cryptographic_material_providers.smithygenerated.aws_cryptography_keystore.models.VersionKeyInput( branch_key_identifier=b"".join( ord(c).to_bytes(2, "big") for c in dafny_input.branchKeyIdentifier ).decode("utf-16-be"), @@ -60,7 +60,7 @@ def aws_cryptography_keystore_VersionKeyInput(dafny_input): def aws_cryptography_keystore_GetActiveBranchKeyInput(dafny_input): - return aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_keystore.models.GetActiveBranchKeyInput( + return aws_cryptographic_material_providers.smithygenerated.aws_cryptography_keystore.models.GetActiveBranchKeyInput( branch_key_identifier=b"".join( ord(c).to_bytes(2, "big") for c in dafny_input.branchKeyIdentifier ).decode("utf-16-be"), @@ -68,7 +68,7 @@ def aws_cryptography_keystore_GetActiveBranchKeyInput(dafny_input): def aws_cryptography_keystore_GetBranchKeyVersionInput(dafny_input): - return aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_keystore.models.GetBranchKeyVersionInput( + return aws_cryptographic_material_providers.smithygenerated.aws_cryptography_keystore.models.GetBranchKeyVersionInput( branch_key_identifier=b"".join( ord(c).to_bytes(2, "big") for c in dafny_input.branchKeyIdentifier ).decode("utf-16-be"), @@ -79,7 +79,7 @@ def aws_cryptography_keystore_GetBranchKeyVersionInput(dafny_input): def aws_cryptography_keystore_GetBeaconKeyInput(dafny_input): - return aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_keystore.models.GetBeaconKeyInput( + return aws_cryptographic_material_providers.smithygenerated.aws_cryptography_keystore.models.GetBeaconKeyInput( branch_key_identifier=b"".join( ord(c).to_bytes(2, "big") for c in dafny_input.branchKeyIdentifier ).decode("utf-16-be"), @@ -89,26 +89,26 @@ def aws_cryptography_keystore_GetBeaconKeyInput(dafny_input): def aws_cryptography_keystore_KMSConfiguration(dafny_input): # Convert KMSConfiguration if isinstance(dafny_input, KMSConfiguration_kmsKeyArn): - KMSConfiguration_union_value = aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_keystore.models.KMSConfigurationKmsKeyArn( + KMSConfiguration_union_value = aws_cryptographic_material_providers.smithygenerated.aws_cryptography_keystore.models.KMSConfigurationKmsKeyArn( b"".join(ord(c).to_bytes(2, "big") for c in dafny_input.kmsKeyArn).decode( "utf-16-be" ) ) elif isinstance(dafny_input, KMSConfiguration_kmsMRKeyArn): - KMSConfiguration_union_value = aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_keystore.models.KMSConfigurationKmsMRKeyArn( + KMSConfiguration_union_value = aws_cryptographic_material_providers.smithygenerated.aws_cryptography_keystore.models.KMSConfigurationKmsMRKeyArn( b"".join(ord(c).to_bytes(2, "big") for c in dafny_input.kmsMRKeyArn).decode( "utf-16-be" ) ) elif isinstance(dafny_input, KMSConfiguration_discovery): - KMSConfiguration_union_value = aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_keystore.models.KMSConfigurationDiscovery( - aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_keystore.dafny_to_smithy.aws_cryptography_keystore_Discovery( + KMSConfiguration_union_value = aws_cryptographic_material_providers.smithygenerated.aws_cryptography_keystore.models.KMSConfigurationDiscovery( + aws_cryptographic_material_providers.smithygenerated.aws_cryptography_keystore.dafny_to_smithy.aws_cryptography_keystore_Discovery( dafny_input.discovery ) ) elif isinstance(dafny_input, KMSConfiguration_mrDiscovery): - KMSConfiguration_union_value = aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_keystore.models.KMSConfigurationMrDiscovery( - aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_keystore.dafny_to_smithy.aws_cryptography_keystore_MRDiscovery( + KMSConfiguration_union_value = aws_cryptographic_material_providers.smithygenerated.aws_cryptography_keystore.models.KMSConfigurationMrDiscovery( + aws_cryptographic_material_providers.smithygenerated.aws_cryptography_keystore.dafny_to_smithy.aws_cryptography_keystore_MRDiscovery( dafny_input.mrDiscovery ) ) @@ -120,12 +120,12 @@ def aws_cryptography_keystore_KMSConfiguration(dafny_input): def aws_cryptography_keystore_Discovery(dafny_input): return ( - aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_keystore.models.Discovery() + aws_cryptographic_material_providers.smithygenerated.aws_cryptography_keystore.models.Discovery() ) def aws_cryptography_keystore_MRDiscovery(dafny_input): - return aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_keystore.models.MRDiscovery( + return aws_cryptographic_material_providers.smithygenerated.aws_cryptography_keystore.models.MRDiscovery( region=b"".join(ord(c).to_bytes(2, "big") for c in dafny_input.region).decode( "utf-16-be" ), @@ -133,7 +133,7 @@ def aws_cryptography_keystore_MRDiscovery(dafny_input): def aws_cryptography_keystore_GetKeyStoreInfoOutput(dafny_input): - return aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_keystore.models.GetKeyStoreInfoOutput( + return aws_cryptographic_material_providers.smithygenerated.aws_cryptography_keystore.models.GetKeyStoreInfoOutput( key_store_id=b"".join( ord(c).to_bytes(2, "big") for c in dafny_input.keyStoreId ).decode("utf-16-be"), @@ -149,14 +149,14 @@ def aws_cryptography_keystore_GetKeyStoreInfoOutput(dafny_input): ) for list_element in dafny_input.grantTokens ], - kms_configuration=aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_keystore.dafny_to_smithy.aws_cryptography_keystore_KMSConfiguration( + kms_configuration=aws_cryptographic_material_providers.smithygenerated.aws_cryptography_keystore.dafny_to_smithy.aws_cryptography_keystore_KMSConfiguration( dafny_input.kmsConfiguration ), ) def aws_cryptography_keystore_CreateKeyStoreOutput(dafny_input): - return aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_keystore.models.CreateKeyStoreOutput( + return aws_cryptographic_material_providers.smithygenerated.aws_cryptography_keystore.models.CreateKeyStoreOutput( table_arn=b"".join( ord(c).to_bytes(2, "big") for c in dafny_input.tableArn ).decode("utf-16-be"), @@ -164,7 +164,7 @@ def aws_cryptography_keystore_CreateKeyStoreOutput(dafny_input): def aws_cryptography_keystore_CreateKeyOutput(dafny_input): - return aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_keystore.models.CreateKeyOutput( + return aws_cryptographic_material_providers.smithygenerated.aws_cryptography_keystore.models.CreateKeyOutput( branch_key_identifier=b"".join( ord(c).to_bytes(2, "big") for c in dafny_input.branchKeyIdentifier ).decode("utf-16-be"), @@ -173,12 +173,12 @@ def aws_cryptography_keystore_CreateKeyOutput(dafny_input): def aws_cryptography_keystore_VersionKeyOutput(dafny_input): return ( - aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_keystore.models.VersionKeyOutput() + aws_cryptographic_material_providers.smithygenerated.aws_cryptography_keystore.models.VersionKeyOutput() ) def aws_cryptography_keystore_BranchKeyMaterials(dafny_input): - return aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_keystore.models.BranchKeyMaterials( + return aws_cryptographic_material_providers.smithygenerated.aws_cryptography_keystore.models.BranchKeyMaterials( branch_key_identifier=b"".join( ord(c).to_bytes(2, "big") for c in dafny_input.branchKeyIdentifier ).decode("utf-16-be"), @@ -192,23 +192,23 @@ def aws_cryptography_keystore_BranchKeyMaterials(dafny_input): def aws_cryptography_keystore_GetActiveBranchKeyOutput(dafny_input): - return aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_keystore.models.GetActiveBranchKeyOutput( - branch_key_materials=aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_keystore.dafny_to_smithy.aws_cryptography_keystore_BranchKeyMaterials( + return aws_cryptographic_material_providers.smithygenerated.aws_cryptography_keystore.models.GetActiveBranchKeyOutput( + branch_key_materials=aws_cryptographic_material_providers.smithygenerated.aws_cryptography_keystore.dafny_to_smithy.aws_cryptography_keystore_BranchKeyMaterials( dafny_input.branchKeyMaterials ), ) def aws_cryptography_keystore_GetBranchKeyVersionOutput(dafny_input): - return aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_keystore.models.GetBranchKeyVersionOutput( - branch_key_materials=aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_keystore.dafny_to_smithy.aws_cryptography_keystore_BranchKeyMaterials( + return aws_cryptographic_material_providers.smithygenerated.aws_cryptography_keystore.models.GetBranchKeyVersionOutput( + branch_key_materials=aws_cryptographic_material_providers.smithygenerated.aws_cryptography_keystore.dafny_to_smithy.aws_cryptography_keystore_BranchKeyMaterials( dafny_input.branchKeyMaterials ), ) def aws_cryptography_keystore_BeaconKeyMaterials(dafny_input): - return aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_keystore.models.BeaconKeyMaterials( + return aws_cryptographic_material_providers.smithygenerated.aws_cryptography_keystore.models.BeaconKeyMaterials( beacon_key_identifier=b"".join( ord(c).to_bytes(2, "big") for c in dafny_input.beaconKeyIdentifier ).decode("utf-16-be"), @@ -237,8 +237,8 @@ def aws_cryptography_keystore_BeaconKeyMaterials(dafny_input): def aws_cryptography_keystore_GetBeaconKeyOutput(dafny_input): - return aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_keystore.models.GetBeaconKeyOutput( - beacon_key_materials=aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_keystore.dafny_to_smithy.aws_cryptography_keystore_BeaconKeyMaterials( + return aws_cryptographic_material_providers.smithygenerated.aws_cryptography_keystore.models.GetBeaconKeyOutput( + beacon_key_materials=aws_cryptographic_material_providers.smithygenerated.aws_cryptography_keystore.dafny_to_smithy.aws_cryptography_keystore_BeaconKeyMaterials( dafny_input.beaconKeyMaterials ), ) @@ -254,13 +254,13 @@ def aws_cryptography_keystore_KmsClientReference(dafny_input): def aws_cryptography_keystore_KeyStoreConfig(dafny_input): # Deferred import of .config to avoid circular dependency - import aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_keystore.config + import aws_cryptographic_material_providers.smithygenerated.aws_cryptography_keystore.config - return aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_keystore.config.KeyStoreConfig( + return aws_cryptographic_material_providers.smithygenerated.aws_cryptography_keystore.config.KeyStoreConfig( ddb_table_name=b"".join( ord(c).to_bytes(2, "big") for c in dafny_input.ddbTableName ).decode("utf-16-be"), - kms_configuration=aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_keystore.dafny_to_smithy.aws_cryptography_keystore_KMSConfiguration( + kms_configuration=aws_cryptographic_material_providers.smithygenerated.aws_cryptography_keystore.dafny_to_smithy.aws_cryptography_keystore_KMSConfiguration( dafny_input.kmsConfiguration ), logical_key_store_name=b"".join( @@ -289,7 +289,7 @@ def aws_cryptography_keystore_KeyStoreConfig(dafny_input): ), ddb_client=( ( - aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_keystore.dafny_to_smithy.aws_cryptography_keystore_DdbClientReference( + aws_cryptographic_material_providers.smithygenerated.aws_cryptography_keystore.dafny_to_smithy.aws_cryptography_keystore_DdbClientReference( dafny_input.ddbClient.UnwrapOr(None) ) ) @@ -298,7 +298,7 @@ def aws_cryptography_keystore_KeyStoreConfig(dafny_input): ), kms_client=( ( - aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_keystore.dafny_to_smithy.aws_cryptography_keystore_KmsClientReference( + aws_cryptographic_material_providers.smithygenerated.aws_cryptography_keystore.dafny_to_smithy.aws_cryptography_keystore_KmsClientReference( dafny_input.kmsClient.UnwrapOr(None) ) ) diff --git a/AwsCryptographicMaterialProviders/runtimes/python/src/aws_cryptographic_materialproviders/smithygenerated/aws_cryptography_keystore/deserialize.py b/AwsCryptographicMaterialProviders/runtimes/python/src/aws_cryptographic_material_providers/smithygenerated/aws_cryptography_keystore/deserialize.py similarity index 71% rename from AwsCryptographicMaterialProviders/runtimes/python/src/aws_cryptographic_materialproviders/smithygenerated/aws_cryptography_keystore/deserialize.py rename to AwsCryptographicMaterialProviders/runtimes/python/src/aws_cryptographic_material_providers/smithygenerated/aws_cryptography_keystore/deserialize.py index 83d1ad464..559eda641 100644 --- a/AwsCryptographicMaterialProviders/runtimes/python/src/aws_cryptographic_materialproviders/smithygenerated/aws_cryptography_keystore/deserialize.py +++ b/AwsCryptographicMaterialProviders/runtimes/python/src/aws_cryptographic_material_providers/smithygenerated/aws_cryptography_keystore/deserialize.py @@ -3,7 +3,7 @@ # Do not modify this file. This file is machine generated, and any changes to it will be overwritten. import _dafny -from aws_cryptographic_materialproviders.internaldafny.generated.AwsCryptographyKeyStoreTypes import ( +from aws_cryptographic_material_providers.internaldafny.generated.AwsCryptographyKeyStoreTypes import ( CreateKeyOutput_CreateKeyOutput as DafnyCreateKeyOutput, CreateKeyStoreOutput_CreateKeyStoreOutput as DafnyCreateKeyStoreOutput, Error, @@ -14,8 +14,8 @@ GetKeyStoreInfoOutput_GetKeyStoreInfoOutput as DafnyGetKeyStoreInfoOutput, VersionKeyOutput_VersionKeyOutput as DafnyVersionKeyOutput, ) -import aws_cryptographic_materialproviders.internaldafny.generated.module_ -import aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_keystore.dafny_to_smithy +import aws_cryptographic_material_providers.internaldafny.generated.module_ +import aws_cryptographic_material_providers.smithygenerated.aws_cryptography_keystore.dafny_to_smithy from typing import Any from .dafny_protocol import DafnyResponse @@ -41,7 +41,7 @@ def _deserialize_get_key_store_info(input: DafnyResponse, config: Config): if input.IsFailure(): return _deserialize_error(input.error) - return aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_keystore.dafny_to_smithy.aws_cryptography_keystore_GetKeyStoreInfoOutput( + return aws_cryptographic_material_providers.smithygenerated.aws_cryptography_keystore.dafny_to_smithy.aws_cryptography_keystore_GetKeyStoreInfoOutput( input.value ) @@ -50,7 +50,7 @@ def _deserialize_create_key_store(input: DafnyResponse, config: Config): if input.IsFailure(): return _deserialize_error(input.error) - return aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_keystore.dafny_to_smithy.aws_cryptography_keystore_CreateKeyStoreOutput( + return aws_cryptographic_material_providers.smithygenerated.aws_cryptography_keystore.dafny_to_smithy.aws_cryptography_keystore_CreateKeyStoreOutput( input.value ) @@ -59,7 +59,7 @@ def _deserialize_create_key(input: DafnyResponse, config: Config): if input.IsFailure(): return _deserialize_error(input.error) - return aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_keystore.dafny_to_smithy.aws_cryptography_keystore_CreateKeyOutput( + return aws_cryptographic_material_providers.smithygenerated.aws_cryptography_keystore.dafny_to_smithy.aws_cryptography_keystore_CreateKeyOutput( input.value ) @@ -68,7 +68,7 @@ def _deserialize_version_key(input: DafnyResponse, config: Config): if input.IsFailure(): return _deserialize_error(input.error) - return aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_keystore.dafny_to_smithy.aws_cryptography_keystore_VersionKeyOutput( + return aws_cryptographic_material_providers.smithygenerated.aws_cryptography_keystore.dafny_to_smithy.aws_cryptography_keystore_VersionKeyOutput( input.value ) @@ -77,7 +77,7 @@ def _deserialize_get_active_branch_key(input: DafnyResponse, config: Config): if input.IsFailure(): return _deserialize_error(input.error) - return aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_keystore.dafny_to_smithy.aws_cryptography_keystore_GetActiveBranchKeyOutput( + return aws_cryptographic_material_providers.smithygenerated.aws_cryptography_keystore.dafny_to_smithy.aws_cryptography_keystore_GetActiveBranchKeyOutput( input.value ) @@ -86,7 +86,7 @@ def _deserialize_get_branch_key_version(input: DafnyResponse, config: Config): if input.IsFailure(): return _deserialize_error(input.error) - return aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_keystore.dafny_to_smithy.aws_cryptography_keystore_GetBranchKeyVersionOutput( + return aws_cryptographic_material_providers.smithygenerated.aws_cryptography_keystore.dafny_to_smithy.aws_cryptography_keystore_GetBranchKeyVersionOutput( input.value ) @@ -95,7 +95,7 @@ def _deserialize_get_beacon_key(input: DafnyResponse, config: Config): if input.IsFailure(): return _deserialize_error(input.error) - return aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_keystore.dafny_to_smithy.aws_cryptography_keystore_GetBeaconKeyOutput( + return aws_cryptographic_material_providers.smithygenerated.aws_cryptography_keystore.dafny_to_smithy.aws_cryptography_keystore_GetBeaconKeyOutput( input.value ) diff --git a/AwsCryptographicMaterialProviders/runtimes/python/src/aws_cryptographic_materialproviders/smithygenerated/aws_cryptography_keystore/errors.py b/AwsCryptographicMaterialProviders/runtimes/python/src/aws_cryptographic_material_providers/smithygenerated/aws_cryptography_keystore/errors.py similarity index 86% rename from AwsCryptographicMaterialProviders/runtimes/python/src/aws_cryptographic_materialproviders/smithygenerated/aws_cryptography_keystore/errors.py rename to AwsCryptographicMaterialProviders/runtimes/python/src/aws_cryptographic_material_providers/smithygenerated/aws_cryptography_keystore/errors.py index ec7154fe8..e06e72414 100644 --- a/AwsCryptographicMaterialProviders/runtimes/python/src/aws_cryptographic_materialproviders/smithygenerated/aws_cryptography_keystore/errors.py +++ b/AwsCryptographicMaterialProviders/runtimes/python/src/aws_cryptographic_material_providers/smithygenerated/aws_cryptography_keystore/errors.py @@ -3,9 +3,9 @@ # Do not modify this file. This file is machine generated, and any changes to it will be overwritten. import _dafny -import aws_cryptographic_materialproviders.internaldafny.generated -import aws_cryptographic_materialproviders.internaldafny.generated.AwsCryptographyKeyStoreTypes -import aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_keystore.errors +import aws_cryptographic_material_providers.internaldafny.generated +import aws_cryptographic_material_providers.internaldafny.generated.AwsCryptographyKeyStoreTypes +import aws_cryptographic_material_providers.smithygenerated.aws_cryptography_keystore.errors from aws_cryptography_internal_dynamodb.smithygenerated.com_amazonaws_dynamodb.shim import ( _sdk_error_to_dafny_error as com_amazonaws_dynamodb_sdk_error_to_dafny_error, ) @@ -209,24 +209,24 @@ def _smithy_error_to_dafny_error(e: ServiceError): Dafny error.""" if isinstance( e, - aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_keystore.errors.KeyStoreException, + aws_cryptographic_material_providers.smithygenerated.aws_cryptography_keystore.errors.KeyStoreException, ): - return aws_cryptographic_materialproviders.internaldafny.generated.AwsCryptographyKeyStoreTypes.Error_KeyStoreException( + return aws_cryptographic_material_providers.internaldafny.generated.AwsCryptographyKeyStoreTypes.Error_KeyStoreException( message=_dafny.Seq(e.message) ) if isinstance(e, ComAmazonawsDynamodb): - return aws_cryptographic_materialproviders.internaldafny.generated.AwsCryptographyKeyStoreTypes.Error_ComAmazonawsDynamodb( + return aws_cryptographic_material_providers.internaldafny.generated.AwsCryptographyKeyStoreTypes.Error_ComAmazonawsDynamodb( com_amazonaws_dynamodb_sdk_error_to_dafny_error(e.message) ) if isinstance(e, ComAmazonawsKms): - return aws_cryptographic_materialproviders.internaldafny.generated.AwsCryptographyKeyStoreTypes.Error_ComAmazonawsKms( + return aws_cryptographic_material_providers.internaldafny.generated.AwsCryptographyKeyStoreTypes.Error_ComAmazonawsKms( com_amazonaws_kms_sdk_error_to_dafny_error(e.message) ) if isinstance(e, CollectionOfErrors): - return aws_cryptographic_materialproviders.internaldafny.generated.AwsCryptographyKeyStoreTypes.Error_CollectionOfErrors( + return aws_cryptographic_material_providers.internaldafny.generated.AwsCryptographyKeyStoreTypes.Error_CollectionOfErrors( message=_dafny.Seq(e.message), list=_dafny.Seq( _smithy_error_to_dafny_error(native_err) for native_err in e.list @@ -234,12 +234,12 @@ def _smithy_error_to_dafny_error(e: ServiceError): ) if isinstance(e, OpaqueError): - return aws_cryptographic_materialproviders.internaldafny.generated.AwsCryptographyKeyStoreTypes.Error_Opaque( + return aws_cryptographic_material_providers.internaldafny.generated.AwsCryptographyKeyStoreTypes.Error_Opaque( obj=e.obj, alt__text=e.alt_text ) else: - return aws_cryptographic_materialproviders.internaldafny.generated.AwsCryptographyKeyStoreTypes.Error_Opaque( + return aws_cryptographic_material_providers.internaldafny.generated.AwsCryptographyKeyStoreTypes.Error_Opaque( obj=e, alt__text=_dafny.Seq( "".join( diff --git a/AwsCryptographicMaterialProviders/runtimes/python/src/aws_cryptographic_materialproviders/smithygenerated/aws_cryptography_keystore/models.py b/AwsCryptographicMaterialProviders/runtimes/python/src/aws_cryptographic_material_providers/smithygenerated/aws_cryptography_keystore/models.py similarity index 100% rename from AwsCryptographicMaterialProviders/runtimes/python/src/aws_cryptographic_materialproviders/smithygenerated/aws_cryptography_keystore/models.py rename to AwsCryptographicMaterialProviders/runtimes/python/src/aws_cryptographic_material_providers/smithygenerated/aws_cryptography_keystore/models.py diff --git a/AwsCryptographicMaterialProviders/runtimes/python/src/aws_cryptographic_materialproviders/smithygenerated/aws_cryptography_keystore/plugin.py b/AwsCryptographicMaterialProviders/runtimes/python/src/aws_cryptographic_material_providers/smithygenerated/aws_cryptography_keystore/plugin.py similarity index 94% rename from AwsCryptographicMaterialProviders/runtimes/python/src/aws_cryptographic_materialproviders/smithygenerated/aws_cryptography_keystore/plugin.py rename to AwsCryptographicMaterialProviders/runtimes/python/src/aws_cryptographic_material_providers/smithygenerated/aws_cryptography_keystore/plugin.py index bf0948d70..206e81b1a 100644 --- a/AwsCryptographicMaterialProviders/runtimes/python/src/aws_cryptographic_materialproviders/smithygenerated/aws_cryptography_keystore/plugin.py +++ b/AwsCryptographicMaterialProviders/runtimes/python/src/aws_cryptographic_material_providers/smithygenerated/aws_cryptography_keystore/plugin.py @@ -13,7 +13,7 @@ def set_config_impl(config: Config): and load our custom NoRetriesStrategy.""" config.dafnyImplInterface = DafnyImplInterface() if isinstance(config, KeyStoreConfig): - from aws_cryptographic_materialproviders.internaldafny.generated.KeyStore import ( + from aws_cryptographic_material_providers.internaldafny.generated.KeyStore import ( default__, ) diff --git a/AwsCryptographicMaterialProviders/runtimes/python/src/aws_cryptographic_materialproviders/smithygenerated/aws_cryptography_keystore/serialize.py b/AwsCryptographicMaterialProviders/runtimes/python/src/aws_cryptographic_material_providers/smithygenerated/aws_cryptography_keystore/serialize.py similarity index 56% rename from AwsCryptographicMaterialProviders/runtimes/python/src/aws_cryptographic_materialproviders/smithygenerated/aws_cryptography_keystore/serialize.py rename to AwsCryptographicMaterialProviders/runtimes/python/src/aws_cryptographic_material_providers/smithygenerated/aws_cryptography_keystore/serialize.py index b459e2cd3..19adcfc2c 100644 --- a/AwsCryptographicMaterialProviders/runtimes/python/src/aws_cryptographic_materialproviders/smithygenerated/aws_cryptography_keystore/serialize.py +++ b/AwsCryptographicMaterialProviders/runtimes/python/src/aws_cryptographic_material_providers/smithygenerated/aws_cryptography_keystore/serialize.py @@ -2,7 +2,7 @@ # SPDX-License-Identifier: Apache-2.0 # Do not modify this file. This file is machine generated, and any changes to it will be overwritten. -import aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_keystore.smithy_to_dafny +import aws_cryptographic_material_providers.smithygenerated.aws_cryptography_keystore.smithy_to_dafny from .dafny_protocol import DafnyRequest @@ -16,7 +16,7 @@ def _serialize_get_key_store_info(input, config: Config) -> DafnyRequest: def _serialize_create_key_store(input, config: Config) -> DafnyRequest: return DafnyRequest( operation_name="CreateKeyStore", - dafny_operation_input=aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_keystore.smithy_to_dafny.aws_cryptography_keystore_CreateKeyStoreInput( + dafny_operation_input=aws_cryptographic_material_providers.smithygenerated.aws_cryptography_keystore.smithy_to_dafny.aws_cryptography_keystore_CreateKeyStoreInput( input ), ) @@ -25,7 +25,7 @@ def _serialize_create_key_store(input, config: Config) -> DafnyRequest: def _serialize_create_key(input, config: Config) -> DafnyRequest: return DafnyRequest( operation_name="CreateKey", - dafny_operation_input=aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_keystore.smithy_to_dafny.aws_cryptography_keystore_CreateKeyInput( + dafny_operation_input=aws_cryptographic_material_providers.smithygenerated.aws_cryptography_keystore.smithy_to_dafny.aws_cryptography_keystore_CreateKeyInput( input ), ) @@ -34,7 +34,7 @@ def _serialize_create_key(input, config: Config) -> DafnyRequest: def _serialize_version_key(input, config: Config) -> DafnyRequest: return DafnyRequest( operation_name="VersionKey", - dafny_operation_input=aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_keystore.smithy_to_dafny.aws_cryptography_keystore_VersionKeyInput( + dafny_operation_input=aws_cryptographic_material_providers.smithygenerated.aws_cryptography_keystore.smithy_to_dafny.aws_cryptography_keystore_VersionKeyInput( input ), ) @@ -43,7 +43,7 @@ def _serialize_version_key(input, config: Config) -> DafnyRequest: def _serialize_get_active_branch_key(input, config: Config) -> DafnyRequest: return DafnyRequest( operation_name="GetActiveBranchKey", - dafny_operation_input=aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_keystore.smithy_to_dafny.aws_cryptography_keystore_GetActiveBranchKeyInput( + dafny_operation_input=aws_cryptographic_material_providers.smithygenerated.aws_cryptography_keystore.smithy_to_dafny.aws_cryptography_keystore_GetActiveBranchKeyInput( input ), ) @@ -52,7 +52,7 @@ def _serialize_get_active_branch_key(input, config: Config) -> DafnyRequest: def _serialize_get_branch_key_version(input, config: Config) -> DafnyRequest: return DafnyRequest( operation_name="GetBranchKeyVersion", - dafny_operation_input=aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_keystore.smithy_to_dafny.aws_cryptography_keystore_GetBranchKeyVersionInput( + dafny_operation_input=aws_cryptographic_material_providers.smithygenerated.aws_cryptography_keystore.smithy_to_dafny.aws_cryptography_keystore_GetBranchKeyVersionInput( input ), ) @@ -61,7 +61,7 @@ def _serialize_get_branch_key_version(input, config: Config) -> DafnyRequest: def _serialize_get_beacon_key(input, config: Config) -> DafnyRequest: return DafnyRequest( operation_name="GetBeaconKey", - dafny_operation_input=aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_keystore.smithy_to_dafny.aws_cryptography_keystore_GetBeaconKeyInput( + dafny_operation_input=aws_cryptographic_material_providers.smithygenerated.aws_cryptography_keystore.smithy_to_dafny.aws_cryptography_keystore_GetBeaconKeyInput( input ), ) diff --git a/AwsCryptographicMaterialProviders/runtimes/python/src/aws_cryptographic_materialproviders/smithygenerated/aws_cryptography_keystore/smithy_to_dafny.py b/AwsCryptographicMaterialProviders/runtimes/python/src/aws_cryptographic_material_providers/smithygenerated/aws_cryptography_keystore/smithy_to_dafny.py similarity index 86% rename from AwsCryptographicMaterialProviders/runtimes/python/src/aws_cryptographic_materialproviders/smithygenerated/aws_cryptography_keystore/smithy_to_dafny.py rename to AwsCryptographicMaterialProviders/runtimes/python/src/aws_cryptographic_material_providers/smithygenerated/aws_cryptography_keystore/smithy_to_dafny.py index 7bac3cc5f..fb600a8ae 100644 --- a/AwsCryptographicMaterialProviders/runtimes/python/src/aws_cryptographic_materialproviders/smithygenerated/aws_cryptography_keystore/smithy_to_dafny.py +++ b/AwsCryptographicMaterialProviders/runtimes/python/src/aws_cryptographic_material_providers/smithygenerated/aws_cryptography_keystore/smithy_to_dafny.py @@ -3,7 +3,7 @@ # Do not modify this file. This file is machine generated, and any changes to it will be overwritten. from _dafny import Map, Seq -from aws_cryptographic_materialproviders.internaldafny.generated.AwsCryptographyKeyStoreTypes import ( +from aws_cryptographic_material_providers.internaldafny.generated.AwsCryptographyKeyStoreTypes import ( BeaconKeyMaterials_BeaconKeyMaterials as DafnyBeaconKeyMaterials, BranchKeyMaterials_BranchKeyMaterials as DafnyBranchKeyMaterials, CreateKeyInput_CreateKeyInput as DafnyCreateKeyInput, @@ -27,9 +27,9 @@ VersionKeyInput_VersionKeyInput as DafnyVersionKeyInput, VersionKeyOutput_VersionKeyOutput as DafnyVersionKeyOutput, ) -import aws_cryptographic_materialproviders.internaldafny.generated.module_ -import aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_keystore.models -import aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_keystore.smithy_to_dafny +import aws_cryptographic_material_providers.internaldafny.generated.module_ +import aws_cryptographic_material_providers.smithygenerated.aws_cryptography_keystore.models +import aws_cryptographic_material_providers.smithygenerated.aws_cryptography_keystore.smithy_to_dafny from aws_cryptography_internal_dynamodb.internaldafny.generated.ComAmazonawsDynamodbTypes import ( IDynamoDBClient, ) @@ -218,7 +218,7 @@ def aws_cryptography_keystore_GetKeyStoreInfoOutput(native_input): for list_element in native_input.grant_tokens ] ), - kmsConfiguration=aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_keystore.smithy_to_dafny.aws_cryptography_keystore_KMSConfiguration( + kmsConfiguration=aws_cryptographic_material_providers.smithygenerated.aws_cryptography_keystore.smithy_to_dafny.aws_cryptography_keystore_KMSConfiguration( native_input.kms_configuration ), ) @@ -227,7 +227,7 @@ def aws_cryptography_keystore_GetKeyStoreInfoOutput(native_input): def aws_cryptography_keystore_KMSConfiguration(native_input): if isinstance( native_input, - aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_keystore.models.KMSConfigurationKmsKeyArn, + aws_cryptographic_material_providers.smithygenerated.aws_cryptography_keystore.models.KMSConfigurationKmsKeyArn, ): KMSConfiguration_union_value = KMSConfiguration_kmsKeyArn( Seq( @@ -243,7 +243,7 @@ def aws_cryptography_keystore_KMSConfiguration(native_input): ) elif isinstance( native_input, - aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_keystore.models.KMSConfigurationKmsMRKeyArn, + aws_cryptographic_material_providers.smithygenerated.aws_cryptography_keystore.models.KMSConfigurationKmsMRKeyArn, ): KMSConfiguration_union_value = KMSConfiguration_kmsMRKeyArn( Seq( @@ -259,19 +259,19 @@ def aws_cryptography_keystore_KMSConfiguration(native_input): ) elif isinstance( native_input, - aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_keystore.models.KMSConfigurationDiscovery, + aws_cryptographic_material_providers.smithygenerated.aws_cryptography_keystore.models.KMSConfigurationDiscovery, ): KMSConfiguration_union_value = KMSConfiguration_discovery( - aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_keystore.smithy_to_dafny.aws_cryptography_keystore_Discovery( + aws_cryptographic_material_providers.smithygenerated.aws_cryptography_keystore.smithy_to_dafny.aws_cryptography_keystore_Discovery( native_input.value ) ) elif isinstance( native_input, - aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_keystore.models.KMSConfigurationMrDiscovery, + aws_cryptographic_material_providers.smithygenerated.aws_cryptography_keystore.models.KMSConfigurationMrDiscovery, ): KMSConfiguration_union_value = KMSConfiguration_mrDiscovery( - aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_keystore.smithy_to_dafny.aws_cryptography_keystore_MRDiscovery( + aws_cryptographic_material_providers.smithygenerated.aws_cryptography_keystore.smithy_to_dafny.aws_cryptography_keystore_MRDiscovery( native_input.value ) ) @@ -339,7 +339,7 @@ def aws_cryptography_keystore_VersionKeyOutput(native_input): def aws_cryptography_keystore_GetActiveBranchKeyOutput(native_input): return DafnyGetActiveBranchKeyOutput( - branchKeyMaterials=aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_keystore.smithy_to_dafny.aws_cryptography_keystore_BranchKeyMaterials( + branchKeyMaterials=aws_cryptographic_material_providers.smithygenerated.aws_cryptography_keystore.smithy_to_dafny.aws_cryptography_keystore_BranchKeyMaterials( native_input.branch_key_materials ), ) @@ -371,7 +371,7 @@ def aws_cryptography_keystore_BranchKeyMaterials(native_input): def aws_cryptography_keystore_GetBranchKeyVersionOutput(native_input): return DafnyGetBranchKeyVersionOutput( - branchKeyMaterials=aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_keystore.smithy_to_dafny.aws_cryptography_keystore_BranchKeyMaterials( + branchKeyMaterials=aws_cryptographic_material_providers.smithygenerated.aws_cryptography_keystore.smithy_to_dafny.aws_cryptography_keystore_BranchKeyMaterials( native_input.branch_key_materials ), ) @@ -379,7 +379,7 @@ def aws_cryptography_keystore_GetBranchKeyVersionOutput(native_input): def aws_cryptography_keystore_GetBeaconKeyOutput(native_input): return DafnyGetBeaconKeyOutput( - beaconKeyMaterials=aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_keystore.smithy_to_dafny.aws_cryptography_keystore_BeaconKeyMaterials( + beaconKeyMaterials=aws_cryptographic_material_providers.smithygenerated.aws_cryptography_keystore.smithy_to_dafny.aws_cryptography_keystore_BeaconKeyMaterials( native_input.beacon_key_materials ), ) @@ -447,7 +447,7 @@ def aws_cryptography_keystore_KeyStoreConfig(native_input): ] ) ), - kmsConfiguration=aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_keystore.smithy_to_dafny.aws_cryptography_keystore_KMSConfiguration( + kmsConfiguration=aws_cryptographic_material_providers.smithygenerated.aws_cryptography_keystore.smithy_to_dafny.aws_cryptography_keystore_KMSConfiguration( native_input.kms_configuration ), logicalKeyStoreName=Seq( @@ -506,7 +506,7 @@ def aws_cryptography_keystore_KeyStoreConfig(native_input): ddbClient=( ( Option_Some( - aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_keystore.smithy_to_dafny.aws_cryptography_keystore_DdbClientReference( + aws_cryptographic_material_providers.smithygenerated.aws_cryptography_keystore.smithy_to_dafny.aws_cryptography_keystore_DdbClientReference( native_input.ddb_client ) ) @@ -514,7 +514,7 @@ def aws_cryptography_keystore_KeyStoreConfig(native_input): if ( (native_input.ddb_client is not None) and ( - aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_keystore.smithy_to_dafny.aws_cryptography_keystore_DdbClientReference( + aws_cryptographic_material_providers.smithygenerated.aws_cryptography_keystore.smithy_to_dafny.aws_cryptography_keystore_DdbClientReference( native_input.ddb_client ) is not None @@ -525,7 +525,7 @@ def aws_cryptography_keystore_KeyStoreConfig(native_input): kmsClient=( ( Option_Some( - aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_keystore.smithy_to_dafny.aws_cryptography_keystore_KmsClientReference( + aws_cryptographic_material_providers.smithygenerated.aws_cryptography_keystore.smithy_to_dafny.aws_cryptography_keystore_KmsClientReference( native_input.kms_client ) ) @@ -533,7 +533,7 @@ def aws_cryptography_keystore_KeyStoreConfig(native_input): if ( (native_input.kms_client is not None) and ( - aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_keystore.smithy_to_dafny.aws_cryptography_keystore_KmsClientReference( + aws_cryptographic_material_providers.smithygenerated.aws_cryptography_keystore.smithy_to_dafny.aws_cryptography_keystore_KmsClientReference( native_input.kms_client ) is not None diff --git a/AwsCryptographicMaterialProviders/runtimes/python/src/aws_cryptographic_materialproviders/smithygenerated/aws_cryptography_materialproviders/__init__.py b/AwsCryptographicMaterialProviders/runtimes/python/src/aws_cryptographic_material_providers/smithygenerated/aws_cryptography_materialproviders/__init__.py similarity index 100% rename from AwsCryptographicMaterialProviders/runtimes/python/src/aws_cryptographic_materialproviders/smithygenerated/aws_cryptography_materialproviders/__init__.py rename to AwsCryptographicMaterialProviders/runtimes/python/src/aws_cryptographic_material_providers/smithygenerated/aws_cryptography_materialproviders/__init__.py diff --git a/AwsCryptographicMaterialProviders/runtimes/python/src/aws_cryptographic_materialproviders/smithygenerated/aws_cryptography_materialproviders/aws_sdk_to_dafny.py b/AwsCryptographicMaterialProviders/runtimes/python/src/aws_cryptographic_material_providers/smithygenerated/aws_cryptography_materialproviders/aws_sdk_to_dafny.py similarity index 100% rename from AwsCryptographicMaterialProviders/runtimes/python/src/aws_cryptographic_materialproviders/smithygenerated/aws_cryptography_materialproviders/aws_sdk_to_dafny.py rename to AwsCryptographicMaterialProviders/runtimes/python/src/aws_cryptographic_material_providers/smithygenerated/aws_cryptography_materialproviders/aws_sdk_to_dafny.py diff --git a/AwsCryptographicMaterialProviders/runtimes/python/src/aws_cryptographic_materialproviders/smithygenerated/aws_cryptography_materialproviders/client.py b/AwsCryptographicMaterialProviders/runtimes/python/src/aws_cryptographic_material_providers/smithygenerated/aws_cryptography_materialproviders/client.py similarity index 93% rename from AwsCryptographicMaterialProviders/runtimes/python/src/aws_cryptographic_materialproviders/smithygenerated/aws_cryptography_materialproviders/client.py rename to AwsCryptographicMaterialProviders/runtimes/python/src/aws_cryptographic_material_providers/smithygenerated/aws_cryptography_materialproviders/client.py index 2051bbac1..866be9750 100644 --- a/AwsCryptographicMaterialProviders/runtimes/python/src/aws_cryptographic_materialproviders/smithygenerated/aws_cryptography_materialproviders/client.py +++ b/AwsCryptographicMaterialProviders/runtimes/python/src/aws_cryptographic_material_providers/smithygenerated/aws_cryptography_materialproviders/client.py @@ -2,10 +2,10 @@ # SPDX-License-Identifier: Apache-2.0 # Do not modify this file. This file is machine generated, and any changes to it will be overwritten. -from aws_cryptographic_materialproviders.internaldafny.generated.AwsCryptographyMaterialProvidersTypes import ( +from aws_cryptographic_material_providers.internaldafny.generated.AwsCryptographyMaterialProvidersTypes import ( IAwsCryptographicMaterialProvidersClient, ) -import aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.references +import aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.references from typing import Callable, TypeVar, cast from .config import Config, MaterialProvidersConfig @@ -144,7 +144,7 @@ def __init__( def create_aws_kms_keyring( self, input: CreateAwsKmsKeyringInput - ) -> "aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.references.Keyring": + ) -> "aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.references.Keyring": """Creates an AWS KMS Keyring, which wraps and unwraps data keys using single symmetric AWS KMS Key. @@ -161,7 +161,7 @@ def create_aws_kms_keyring( def create_aws_kms_discovery_keyring( self, input: CreateAwsKmsDiscoveryKeyringInput - ) -> "aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.references.Keyring": + ) -> "aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.references.Keyring": """Creates an AWS KMS Discovery Keyring, which supports unwrapping data keys wrapped by a symmetric AWS KMS Key for a single region. @@ -179,7 +179,7 @@ def create_aws_kms_discovery_keyring( def create_aws_kms_multi_keyring( self, input: CreateAwsKmsMultiKeyringInput - ) -> "aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.references.Keyring": + ) -> "aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.references.Keyring": """Creates an AWS KMS Multi-Keyring, which wraps and unwraps data keys using one or more symmetric AWS KMS Keys. @@ -196,7 +196,7 @@ def create_aws_kms_multi_keyring( def create_aws_kms_discovery_multi_keyring( self, input: CreateAwsKmsDiscoveryMultiKeyringInput - ) -> "aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.references.Keyring": + ) -> "aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.references.Keyring": """Creates an AWS KMS Discovery Multi-Keyring, which supports unwrapping data keys wrapped by a symmetric AWS KMS Key, for multiple regions. @@ -215,7 +215,7 @@ def create_aws_kms_discovery_multi_keyring( def create_aws_kms_mrk_keyring( self, input: CreateAwsKmsMrkKeyringInput - ) -> "aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.references.Keyring": + ) -> "aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.references.Keyring": """Creates an AWS KMS MRK Keyring, which wraps and unwraps data keys using single symmetric AWS KMS Key or AWS KMS Multi-Region Key. @@ -232,7 +232,7 @@ def create_aws_kms_mrk_keyring( def create_aws_kms_mrk_multi_keyring( self, input: CreateAwsKmsMrkMultiKeyringInput - ) -> "aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.references.Keyring": + ) -> "aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.references.Keyring": """Creates an AWS KMS MRK Multi-Keyring, which wraps and unwraps data keys using one or more symmetric AWS KMS Keys or AWS KMS Multi-Region Keys. @@ -251,7 +251,7 @@ def create_aws_kms_mrk_multi_keyring( def create_aws_kms_mrk_discovery_keyring( self, input: CreateAwsKmsMrkDiscoveryKeyringInput - ) -> "aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.references.Keyring": + ) -> "aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.references.Keyring": """Creates an AWS KMS MRK Discovery Keyring, which supports unwrapping data keys wrapped by a symmetric AWS KMS Key or AWS KMS Multi-Region Key in a particular region. @@ -270,7 +270,7 @@ def create_aws_kms_mrk_discovery_keyring( def create_aws_kms_mrk_discovery_multi_keyring( self, input: CreateAwsKmsMrkDiscoveryMultiKeyringInput - ) -> "aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.references.Keyring": + ) -> "aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.references.Keyring": """Creates an AWS KMS MRK Discovery Multi-Keyring that supports unwrapping data keys wrapped by a symmetric AWS KMS Key or AWS KMS Multi-Region Key, for a single region. @@ -289,7 +289,7 @@ def create_aws_kms_mrk_discovery_multi_keyring( def create_aws_kms_hierarchical_keyring( self, input: CreateAwsKmsHierarchicalKeyringInput - ) -> "aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.references.Keyring": + ) -> "aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.references.Keyring": """Creates a Hierarchical Keyring, which supports wrapping and unwrapping data keys using Branch Keys persisted in DynamoDB and protected by a symmetric AWS KMS Key or AWS KMS Multi-Region Key. @@ -307,7 +307,7 @@ def create_aws_kms_hierarchical_keyring( def create_aws_kms_rsa_keyring( self, input: CreateAwsKmsRsaKeyringInput - ) -> "aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.references.Keyring": + ) -> "aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.references.Keyring": """Creates an AWS KMS RSA Keyring, which wraps and unwraps data keys using a single asymmetric AWS KMS Key for RSA. @@ -324,7 +324,7 @@ def create_aws_kms_rsa_keyring( def create_aws_kms_ecdh_keyring( self, input: CreateAwsKmsEcdhKeyringInput - ) -> "aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.references.Keyring": + ) -> "aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.references.Keyring": """Creates an AWS KMS ECDH Keyring, which wraps and unwraps data keys by deriving a shared data key from the established shared secret between parties through the ECDH protocol. @@ -342,7 +342,7 @@ def create_aws_kms_ecdh_keyring( def create_multi_keyring( self, input: CreateMultiKeyringInput - ) -> "aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.references.Keyring": + ) -> "aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.references.Keyring": """Creates a Multi-Keyring comprised of one or more other Keyrings. :param input: Inputs for creating a Multi-Keyring. @@ -358,7 +358,7 @@ def create_multi_keyring( def create_raw_aes_keyring( self, input: CreateRawAesKeyringInput - ) -> "aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.references.Keyring": + ) -> "aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.references.Keyring": """Creates a Raw AES Keyring, which wraps and unwraps data keys locally using AES_GCM. @@ -375,7 +375,7 @@ def create_raw_aes_keyring( def create_raw_rsa_keyring( self, input: CreateRawRsaKeyringInput - ) -> "aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.references.Keyring": + ) -> "aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.references.Keyring": """Creates a Raw RSA Keyring, which wraps and unwraps data keys locally using RSA. @@ -392,7 +392,7 @@ def create_raw_rsa_keyring( def create_raw_ecdh_keyring( self, input: CreateRawEcdhKeyringInput - ) -> "aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.references.Keyring": + ) -> "aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.references.Keyring": """Creates a Raw ECDH Keyring, which wraps and unwraps data keys by deriving a shared data key from the established shared secret between parties through the ECDH protocol. @@ -410,7 +410,7 @@ def create_raw_ecdh_keyring( def create_default_cryptographic_materials_manager( self, input: CreateDefaultCryptographicMaterialsManagerInput - ) -> "aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.references.CryptographicMaterialsManager": + ) -> "aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.references.CryptographicMaterialsManager": """Creates a Default Cryptographic Materials Manager. :param input: Inputs for creating a Default Cryptographic @@ -427,7 +427,7 @@ def create_default_cryptographic_materials_manager( def create_required_encryption_context_cmm( self, input: CreateRequiredEncryptionContextCMMInput - ) -> "aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.references.CryptographicMaterialsManager": + ) -> "aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.references.CryptographicMaterialsManager": """Creates an Required Encryption Context Cryptographic Materials Manager. @@ -445,7 +445,7 @@ def create_required_encryption_context_cmm( def create_cryptographic_materials_cache( self, input: CreateCryptographicMaterialsCacheInput - ) -> "aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.references.CryptographicMaterialsCache": + ) -> "aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.references.CryptographicMaterialsCache": """Invokes the CreateCryptographicMaterialsCache operation. :param input: The operation's input. @@ -461,7 +461,7 @@ def create_cryptographic_materials_cache( def create_default_client_supplier( self, input: CreateDefaultClientSupplierInput - ) -> "aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.references.ClientSupplier": + ) -> "aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.references.ClientSupplier": """Invokes the CreateDefaultClientSupplier operation. :param input: The operation's input. diff --git a/AwsCryptographicMaterialProviders/runtimes/python/src/aws_cryptographic_materialproviders/smithygenerated/aws_cryptography_materialproviders/config.py b/AwsCryptographicMaterialProviders/runtimes/python/src/aws_cryptographic_material_providers/smithygenerated/aws_cryptography_materialproviders/config.py similarity index 78% rename from AwsCryptographicMaterialProviders/runtimes/python/src/aws_cryptographic_materialproviders/smithygenerated/aws_cryptography_materialproviders/config.py rename to AwsCryptographicMaterialProviders/runtimes/python/src/aws_cryptographic_material_providers/smithygenerated/aws_cryptography_materialproviders/config.py index 7f4a53523..cf708be4f 100644 --- a/AwsCryptographicMaterialProviders/runtimes/python/src/aws_cryptographic_materialproviders/smithygenerated/aws_cryptography_materialproviders/config.py +++ b/AwsCryptographicMaterialProviders/runtimes/python/src/aws_cryptographic_material_providers/smithygenerated/aws_cryptography_materialproviders/config.py @@ -2,12 +2,12 @@ # SPDX-License-Identifier: Apache-2.0 # Do not modify this file. This file is machine generated, and any changes to it will be overwritten. -from aws_cryptographic_materialproviders.internaldafny.generated.AwsCryptographyMaterialProvidersTypes import ( +from aws_cryptographic_material_providers.internaldafny.generated.AwsCryptographyMaterialProvidersTypes import ( MaterialProvidersConfig_MaterialProvidersConfig as DafnyMaterialProvidersConfig, ) -import aws_cryptographic_materialproviders.internaldafny.generated.module_ -import aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.dafny_to_smithy -import aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.smithy_to_dafny +import aws_cryptographic_material_providers.internaldafny.generated.module_ +import aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.dafny_to_smithy +import aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.smithy_to_dafny from dataclasses import dataclass from typing import Any, Callable, Dict, TypeAlias @@ -79,7 +79,7 @@ def __eq__(self, other: Any) -> bool: def dafny_config_to_smithy_config(dafny_config) -> MaterialProvidersConfig: """Converts the provided Dafny shape for this localService's config into the corresponding Smithy-modelled shape.""" - return aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.dafny_to_smithy.aws_cryptography_materialproviders_MaterialProvidersConfig( + return aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.dafny_to_smithy.aws_cryptography_materialproviders_MaterialProvidersConfig( dafny_config ) @@ -87,6 +87,6 @@ def dafny_config_to_smithy_config(dafny_config) -> MaterialProvidersConfig: def smithy_config_to_dafny_config(smithy_config) -> DafnyMaterialProvidersConfig: """Converts the provided Smithy-modelled shape for this localService's config into the corresponding Dafny shape.""" - return aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.smithy_to_dafny.aws_cryptography_materialproviders_MaterialProvidersConfig( + return aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.smithy_to_dafny.aws_cryptography_materialproviders_MaterialProvidersConfig( smithy_config ) diff --git a/AwsCryptographicMaterialProviders/runtimes/python/src/aws_cryptographic_materialproviders/smithygenerated/aws_cryptography_materialproviders/dafnyImplInterface.py b/AwsCryptographicMaterialProviders/runtimes/python/src/aws_cryptographic_material_providers/smithygenerated/aws_cryptography_materialproviders/dafnyImplInterface.py similarity index 97% rename from AwsCryptographicMaterialProviders/runtimes/python/src/aws_cryptographic_materialproviders/smithygenerated/aws_cryptography_materialproviders/dafnyImplInterface.py rename to AwsCryptographicMaterialProviders/runtimes/python/src/aws_cryptographic_material_providers/smithygenerated/aws_cryptography_materialproviders/dafnyImplInterface.py index 3e67708bb..e580f3538 100644 --- a/AwsCryptographicMaterialProviders/runtimes/python/src/aws_cryptographic_materialproviders/smithygenerated/aws_cryptography_materialproviders/dafnyImplInterface.py +++ b/AwsCryptographicMaterialProviders/runtimes/python/src/aws_cryptographic_material_providers/smithygenerated/aws_cryptography_materialproviders/dafnyImplInterface.py @@ -2,7 +2,7 @@ # SPDX-License-Identifier: Apache-2.0 # Do not modify this file. This file is machine generated, and any changes to it will be overwritten. -from aws_cryptographic_materialproviders.internaldafny.generated.MaterialProviders import ( +from aws_cryptographic_material_providers.internaldafny.generated.MaterialProviders import ( MaterialProvidersClient, ) from .dafny_protocol import DafnyRequest diff --git a/AwsCryptographicMaterialProviders/runtimes/python/src/aws_cryptographic_materialproviders/smithygenerated/aws_cryptography_materialproviders/dafny_protocol.py b/AwsCryptographicMaterialProviders/runtimes/python/src/aws_cryptographic_material_providers/smithygenerated/aws_cryptography_materialproviders/dafny_protocol.py similarity index 96% rename from AwsCryptographicMaterialProviders/runtimes/python/src/aws_cryptographic_materialproviders/smithygenerated/aws_cryptography_materialproviders/dafny_protocol.py rename to AwsCryptographicMaterialProviders/runtimes/python/src/aws_cryptographic_material_providers/smithygenerated/aws_cryptography_materialproviders/dafny_protocol.py index 8e929e044..a714528c5 100644 --- a/AwsCryptographicMaterialProviders/runtimes/python/src/aws_cryptographic_materialproviders/smithygenerated/aws_cryptography_materialproviders/dafny_protocol.py +++ b/AwsCryptographicMaterialProviders/runtimes/python/src/aws_cryptographic_material_providers/smithygenerated/aws_cryptography_materialproviders/dafny_protocol.py @@ -2,7 +2,7 @@ # SPDX-License-Identifier: Apache-2.0 # Do not modify this file. This file is machine generated, and any changes to it will be overwritten. -from aws_cryptographic_materialproviders.internaldafny.generated.AwsCryptographyMaterialProvidersTypes import ( +from aws_cryptographic_material_providers.internaldafny.generated.AwsCryptographyMaterialProvidersTypes import ( AlgorithmSuiteInfo_AlgorithmSuiteInfo as DafnyAlgorithmSuiteInfo, CreateAwsKmsDiscoveryKeyringInput_CreateAwsKmsDiscoveryKeyringInput as DafnyCreateAwsKmsDiscoveryKeyringInput, CreateAwsKmsDiscoveryMultiKeyringInput_CreateAwsKmsDiscoveryMultiKeyringInput as DafnyCreateAwsKmsDiscoveryMultiKeyringInput, @@ -32,7 +32,7 @@ ValidateCommitmentPolicyOnDecryptInput_ValidateCommitmentPolicyOnDecryptInput as DafnyValidateCommitmentPolicyOnDecryptInput, ValidateCommitmentPolicyOnEncryptInput_ValidateCommitmentPolicyOnEncryptInput as DafnyValidateCommitmentPolicyOnEncryptInput, ) -import aws_cryptographic_materialproviders.internaldafny.generated.module_ +import aws_cryptographic_material_providers.internaldafny.generated.module_ import smithy_dafny_standard_library.internaldafny.generated.Wrappers as Wrappers diff --git a/AwsCryptographicMaterialProviders/runtimes/python/src/aws_cryptographic_materialproviders/smithygenerated/aws_cryptography_materialproviders/dafny_to_aws_sdk.py b/AwsCryptographicMaterialProviders/runtimes/python/src/aws_cryptographic_material_providers/smithygenerated/aws_cryptography_materialproviders/dafny_to_aws_sdk.py similarity index 100% rename from AwsCryptographicMaterialProviders/runtimes/python/src/aws_cryptographic_materialproviders/smithygenerated/aws_cryptography_materialproviders/dafny_to_aws_sdk.py rename to AwsCryptographicMaterialProviders/runtimes/python/src/aws_cryptographic_material_providers/smithygenerated/aws_cryptography_materialproviders/dafny_to_aws_sdk.py diff --git a/AwsCryptographicMaterialProviders/runtimes/python/src/aws_cryptographic_materialproviders/smithygenerated/aws_cryptography_materialproviders/dafny_to_smithy.py b/AwsCryptographicMaterialProviders/runtimes/python/src/aws_cryptographic_material_providers/smithygenerated/aws_cryptography_materialproviders/dafny_to_smithy.py similarity index 63% rename from AwsCryptographicMaterialProviders/runtimes/python/src/aws_cryptographic_materialproviders/smithygenerated/aws_cryptography_materialproviders/dafny_to_smithy.py rename to AwsCryptographicMaterialProviders/runtimes/python/src/aws_cryptographic_material_providers/smithygenerated/aws_cryptography_materialproviders/dafny_to_smithy.py index e1f638d23..ec9b4821f 100644 --- a/AwsCryptographicMaterialProviders/runtimes/python/src/aws_cryptographic_materialproviders/smithygenerated/aws_cryptography_materialproviders/dafny_to_smithy.py +++ b/AwsCryptographicMaterialProviders/runtimes/python/src/aws_cryptographic_material_providers/smithygenerated/aws_cryptography_materialproviders/dafny_to_smithy.py @@ -2,7 +2,7 @@ # SPDX-License-Identifier: Apache-2.0 # Do not modify this file. This file is machine generated, and any changes to it will be overwritten. -from aws_cryptographic_materialproviders.internaldafny.generated.AwsCryptographyMaterialProvidersTypes import ( +from aws_cryptographic_material_providers.internaldafny.generated.AwsCryptographyMaterialProvidersTypes import ( AesWrappingAlg_ALG__AES128__GCM__IV12__TAG16, AesWrappingAlg_ALG__AES192__GCM__IV12__TAG16, AesWrappingAlg_ALG__AES256__GCM__IV12__TAG16, @@ -58,16 +58,16 @@ SymmetricSignatureAlgorithm_HMAC, SymmetricSignatureAlgorithm_None, ) -import aws_cryptographic_materialproviders.internaldafny.generated.module_ -import aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_keystore.dafny_to_smithy -import aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.dafny_to_smithy -import aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.models +import aws_cryptographic_material_providers.internaldafny.generated.module_ +import aws_cryptographic_material_providers.smithygenerated.aws_cryptography_keystore.dafny_to_smithy +import aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.dafny_to_smithy +import aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.models import aws_cryptography_internal_kms.smithygenerated.com_amazonaws_kms.dafny_to_aws_sdk import aws_cryptography_primitives.smithygenerated.aws_cryptography_primitives.dafny_to_smithy def aws_cryptography_materialproviders_GetBranchKeyIdInput(dafny_input): - return aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.models.GetBranchKeyIdInput( + return aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.models.GetBranchKeyIdInput( encryption_context={ bytes(key.Elements).decode("utf-8"): bytes(value.Elements).decode("utf-8") for (key, value) in dafny_input.encryptionContext.items @@ -76,7 +76,7 @@ def aws_cryptography_materialproviders_GetBranchKeyIdInput(dafny_input): def aws_cryptography_materialproviders_GetBranchKeyIdOutput(dafny_input): - return aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.models.GetBranchKeyIdOutput( + return aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.models.GetBranchKeyIdOutput( branch_key_id=b"".join( ord(c).to_bytes(2, "big") for c in dafny_input.branchKeyId ).decode("utf-16-be"), @@ -84,7 +84,7 @@ def aws_cryptography_materialproviders_GetBranchKeyIdOutput(dafny_input): def aws_cryptography_materialproviders_GetClientInput(dafny_input): - return aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.models.GetClientInput( + return aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.models.GetClientInput( region=b"".join(ord(c).to_bytes(2, "big") for c in dafny_input.region).decode( "utf-16-be" ), @@ -96,7 +96,7 @@ def aws_cryptography_materialproviders_KmsClientReference(dafny_input): def aws_cryptography_materialproviders_GetClientOutput(dafny_input): - return aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.dafny_to_smithy.aws_cryptography_materialproviders_KmsClientReference( + return aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.dafny_to_smithy.aws_cryptography_materialproviders_KmsClientReference( dafny_input ) @@ -104,26 +104,26 @@ def aws_cryptography_materialproviders_GetClientOutput(dafny_input): def aws_cryptography_materialproviders_Materials(dafny_input): # Convert Materials if isinstance(dafny_input, Materials_Encryption): - Materials_union_value = aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.models.MaterialsEncryption( - aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.dafny_to_smithy.aws_cryptography_materialproviders_EncryptionMaterials( + Materials_union_value = aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.models.MaterialsEncryption( + aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.dafny_to_smithy.aws_cryptography_materialproviders_EncryptionMaterials( dafny_input.Encryption ) ) elif isinstance(dafny_input, Materials_Decryption): - Materials_union_value = aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.models.MaterialsDecryption( - aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.dafny_to_smithy.aws_cryptography_materialproviders_DecryptionMaterials( + Materials_union_value = aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.models.MaterialsDecryption( + aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.dafny_to_smithy.aws_cryptography_materialproviders_DecryptionMaterials( dafny_input.Decryption ) ) elif isinstance(dafny_input, Materials_BranchKey): - Materials_union_value = aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.models.MaterialsBranchKey( - aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_keystore.dafny_to_smithy.aws_cryptography_keystore_BranchKeyMaterials( + Materials_union_value = aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.models.MaterialsBranchKey( + aws_cryptographic_material_providers.smithygenerated.aws_cryptography_keystore.dafny_to_smithy.aws_cryptography_keystore_BranchKeyMaterials( dafny_input.BranchKey ) ) elif isinstance(dafny_input, Materials_BeaconKey): - Materials_union_value = aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.models.MaterialsBeaconKey( - aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_keystore.dafny_to_smithy.aws_cryptography_keystore_BeaconKeyMaterials( + Materials_union_value = aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.models.MaterialsBeaconKey( + aws_cryptographic_material_providers.smithygenerated.aws_cryptography_keystore.dafny_to_smithy.aws_cryptography_keystore_BeaconKeyMaterials( dafny_input.BeaconKey ) ) @@ -134,8 +134,8 @@ def aws_cryptography_materialproviders_Materials(dafny_input): def aws_cryptography_materialproviders_EncryptionMaterials(dafny_input): - return aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.models.EncryptionMaterials( - algorithm_suite=aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.dafny_to_smithy.aws_cryptography_materialproviders_AlgorithmSuiteInfo( + return aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.models.EncryptionMaterials( + algorithm_suite=aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.dafny_to_smithy.aws_cryptography_materialproviders_AlgorithmSuiteInfo( dafny_input.algorithmSuite ), encryption_context={ @@ -143,7 +143,7 @@ def aws_cryptography_materialproviders_EncryptionMaterials(dafny_input): for (key, value) in dafny_input.encryptionContext.items }, encrypted_data_keys=[ - aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.dafny_to_smithy.aws_cryptography_materialproviders_EncryptedDataKey( + aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.dafny_to_smithy.aws_cryptography_materialproviders_EncryptedDataKey( list_element ) for list_element in dafny_input.encryptedDataKeys @@ -176,8 +176,8 @@ def aws_cryptography_materialproviders_EncryptionMaterials(dafny_input): def aws_cryptography_materialproviders_DecryptionMaterials(dafny_input): - return aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.models.DecryptionMaterials( - algorithm_suite=aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.dafny_to_smithy.aws_cryptography_materialproviders_AlgorithmSuiteInfo( + return aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.models.DecryptionMaterials( + algorithm_suite=aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.dafny_to_smithy.aws_cryptography_materialproviders_AlgorithmSuiteInfo( dafny_input.algorithmSuite ), encryption_context={ @@ -207,35 +207,35 @@ def aws_cryptography_materialproviders_DecryptionMaterials(dafny_input): def aws_cryptography_materialproviders_AlgorithmSuiteInfo(dafny_input): - return aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.models.AlgorithmSuiteInfo( - id=aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.dafny_to_smithy.aws_cryptography_materialproviders_AlgorithmSuiteId( + return aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.models.AlgorithmSuiteInfo( + id=aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.dafny_to_smithy.aws_cryptography_materialproviders_AlgorithmSuiteId( dafny_input.id ), binary_id=bytes(dafny_input.binaryId), message_version=dafny_input.messageVersion, - encrypt=aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.dafny_to_smithy.aws_cryptography_materialproviders_Encrypt( + encrypt=aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.dafny_to_smithy.aws_cryptography_materialproviders_Encrypt( dafny_input.encrypt ), - kdf=aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.dafny_to_smithy.aws_cryptography_materialproviders_DerivationAlgorithm( + kdf=aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.dafny_to_smithy.aws_cryptography_materialproviders_DerivationAlgorithm( dafny_input.kdf ), - commitment=aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.dafny_to_smithy.aws_cryptography_materialproviders_DerivationAlgorithm( + commitment=aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.dafny_to_smithy.aws_cryptography_materialproviders_DerivationAlgorithm( dafny_input.commitment ), - signature=aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.dafny_to_smithy.aws_cryptography_materialproviders_SignatureAlgorithm( + signature=aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.dafny_to_smithy.aws_cryptography_materialproviders_SignatureAlgorithm( dafny_input.signature ), - symmetric_signature=aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.dafny_to_smithy.aws_cryptography_materialproviders_SymmetricSignatureAlgorithm( + symmetric_signature=aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.dafny_to_smithy.aws_cryptography_materialproviders_SymmetricSignatureAlgorithm( dafny_input.symmetricSignature ), - edk_wrapping=aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.dafny_to_smithy.aws_cryptography_materialproviders_EdkWrappingAlgorithm( + edk_wrapping=aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.dafny_to_smithy.aws_cryptography_materialproviders_EdkWrappingAlgorithm( dafny_input.edkWrapping ), ) def aws_cryptography_materialproviders_EncryptedDataKey(dafny_input): - return aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.models.EncryptedDataKey( + return aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.models.EncryptedDataKey( key_provider_id=bytes(dafny_input.keyProviderId.Elements).decode("utf-8"), key_provider_info=bytes(dafny_input.keyProviderInfo), ciphertext=bytes(dafny_input.ciphertext), @@ -245,14 +245,14 @@ def aws_cryptography_materialproviders_EncryptedDataKey(dafny_input): def aws_cryptography_materialproviders_AlgorithmSuiteId(dafny_input): # Convert AlgorithmSuiteId if isinstance(dafny_input, AlgorithmSuiteId_ESDK): - AlgorithmSuiteId_union_value = aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.models.AlgorithmSuiteIdESDK( - aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.dafny_to_smithy.aws_cryptography_materialproviders_ESDKAlgorithmSuiteId( + AlgorithmSuiteId_union_value = aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.models.AlgorithmSuiteIdESDK( + aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.dafny_to_smithy.aws_cryptography_materialproviders_ESDKAlgorithmSuiteId( dafny_input.ESDK ) ) elif isinstance(dafny_input, AlgorithmSuiteId_DBE): - AlgorithmSuiteId_union_value = aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.models.AlgorithmSuiteIdDBE( - aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.dafny_to_smithy.aws_cryptography_materialproviders_DBEAlgorithmSuiteId( + AlgorithmSuiteId_union_value = aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.models.AlgorithmSuiteIdDBE( + aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.dafny_to_smithy.aws_cryptography_materialproviders_DBEAlgorithmSuiteId( dafny_input.DBE ) ) @@ -265,7 +265,7 @@ def aws_cryptography_materialproviders_AlgorithmSuiteId(dafny_input): def aws_cryptography_materialproviders_Encrypt(dafny_input): # Convert Encrypt if isinstance(dafny_input, Encrypt_AES__GCM): - Encrypt_union_value = aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.models.EncryptAES_GCM( + Encrypt_union_value = aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.models.EncryptAES_GCM( aws_cryptography_primitives.smithygenerated.aws_cryptography_primitives.dafny_to_smithy.aws_cryptography_primitives_AES_GCM( dafny_input.AES__GCM ) @@ -279,20 +279,20 @@ def aws_cryptography_materialproviders_Encrypt(dafny_input): def aws_cryptography_materialproviders_DerivationAlgorithm(dafny_input): # Convert DerivationAlgorithm if isinstance(dafny_input, DerivationAlgorithm_HKDF): - DerivationAlgorithm_union_value = aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.models.DerivationAlgorithmHKDF( - aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.dafny_to_smithy.aws_cryptography_materialproviders_HKDF( + DerivationAlgorithm_union_value = aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.models.DerivationAlgorithmHKDF( + aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.dafny_to_smithy.aws_cryptography_materialproviders_HKDF( dafny_input.HKDF ) ) elif isinstance(dafny_input, DerivationAlgorithm_IDENTITY): - DerivationAlgorithm_union_value = aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.models.DerivationAlgorithmIDENTITY( - aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.dafny_to_smithy.aws_cryptography_materialproviders_IDENTITY( + DerivationAlgorithm_union_value = aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.models.DerivationAlgorithmIDENTITY( + aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.dafny_to_smithy.aws_cryptography_materialproviders_IDENTITY( dafny_input.IDENTITY ) ) elif isinstance(dafny_input, DerivationAlgorithm_None): - DerivationAlgorithm_union_value = aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.models.DerivationAlgorithmNone( - aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.dafny_to_smithy.aws_cryptography_materialproviders_None( + DerivationAlgorithm_union_value = aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.models.DerivationAlgorithmNone( + aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.dafny_to_smithy.aws_cryptography_materialproviders_None( dafny_input.None_ ) ) @@ -305,14 +305,14 @@ def aws_cryptography_materialproviders_DerivationAlgorithm(dafny_input): def aws_cryptography_materialproviders_SignatureAlgorithm(dafny_input): # Convert SignatureAlgorithm if isinstance(dafny_input, SignatureAlgorithm_ECDSA): - SignatureAlgorithm_union_value = aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.models.SignatureAlgorithmECDSA( - aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.dafny_to_smithy.aws_cryptography_materialproviders_ECDSA( + SignatureAlgorithm_union_value = aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.models.SignatureAlgorithmECDSA( + aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.dafny_to_smithy.aws_cryptography_materialproviders_ECDSA( dafny_input.ECDSA ) ) elif isinstance(dafny_input, SignatureAlgorithm_None): - SignatureAlgorithm_union_value = aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.models.SignatureAlgorithmNone( - aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.dafny_to_smithy.aws_cryptography_materialproviders_None( + SignatureAlgorithm_union_value = aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.models.SignatureAlgorithmNone( + aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.dafny_to_smithy.aws_cryptography_materialproviders_None( dafny_input.None_ ) ) @@ -325,14 +325,14 @@ def aws_cryptography_materialproviders_SignatureAlgorithm(dafny_input): def aws_cryptography_materialproviders_SymmetricSignatureAlgorithm(dafny_input): # Convert SymmetricSignatureAlgorithm if isinstance(dafny_input, SymmetricSignatureAlgorithm_HMAC): - SymmetricSignatureAlgorithm_union_value = aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.models.SymmetricSignatureAlgorithmHMAC( + SymmetricSignatureAlgorithm_union_value = aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.models.SymmetricSignatureAlgorithmHMAC( aws_cryptography_primitives.smithygenerated.aws_cryptography_primitives.dafny_to_smithy.aws_cryptography_primitives_DigestAlgorithm( dafny_input.HMAC ) ) elif isinstance(dafny_input, SymmetricSignatureAlgorithm_None): - SymmetricSignatureAlgorithm_union_value = aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.models.SymmetricSignatureAlgorithmNone( - aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.dafny_to_smithy.aws_cryptography_materialproviders_None( + SymmetricSignatureAlgorithm_union_value = aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.models.SymmetricSignatureAlgorithmNone( + aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.dafny_to_smithy.aws_cryptography_materialproviders_None( dafny_input.None_ ) ) @@ -345,14 +345,14 @@ def aws_cryptography_materialproviders_SymmetricSignatureAlgorithm(dafny_input): def aws_cryptography_materialproviders_EdkWrappingAlgorithm(dafny_input): # Convert EdkWrappingAlgorithm if isinstance(dafny_input, EdkWrappingAlgorithm_DIRECT__KEY__WRAPPING): - EdkWrappingAlgorithm_union_value = aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.models.EdkWrappingAlgorithmDIRECT_KEY_WRAPPING( - aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.dafny_to_smithy.aws_cryptography_materialproviders_DIRECT_KEY_WRAPPING( + EdkWrappingAlgorithm_union_value = aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.models.EdkWrappingAlgorithmDIRECT_KEY_WRAPPING( + aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.dafny_to_smithy.aws_cryptography_materialproviders_DIRECT_KEY_WRAPPING( dafny_input.DIRECT__KEY__WRAPPING ) ) elif isinstance(dafny_input, EdkWrappingAlgorithm_IntermediateKeyWrapping): - EdkWrappingAlgorithm_union_value = aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.models.EdkWrappingAlgorithmIntermediateKeyWrapping( - aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.dafny_to_smithy.aws_cryptography_materialproviders_IntermediateKeyWrapping( + EdkWrappingAlgorithm_union_value = aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.models.EdkWrappingAlgorithmIntermediateKeyWrapping( + aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.dafny_to_smithy.aws_cryptography_materialproviders_IntermediateKeyWrapping( dafny_input.IntermediateKeyWrapping ) ) @@ -444,7 +444,7 @@ def aws_cryptography_materialproviders_DBEAlgorithmSuiteId(dafny_input): def aws_cryptography_materialproviders_HKDF(dafny_input): - return aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.models.HKDF( + return aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.models.HKDF( hmac=aws_cryptography_primitives.smithygenerated.aws_cryptography_primitives.dafny_to_smithy.aws_cryptography_primitives_DigestAlgorithm( dafny_input.hmac ), @@ -456,18 +456,18 @@ def aws_cryptography_materialproviders_HKDF(dafny_input): def aws_cryptography_materialproviders_IDENTITY(dafny_input): return ( - aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.models.IDENTITY() + aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.models.IDENTITY() ) def aws_cryptography_materialproviders_None(dafny_input): return ( - aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.models.None_() + aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.models.None_() ) def aws_cryptography_materialproviders_ECDSA(dafny_input): - return aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.models.ECDSA( + return aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.models.ECDSA( curve=aws_cryptography_primitives.smithygenerated.aws_cryptography_primitives.dafny_to_smithy.aws_cryptography_primitives_ECDSASignatureAlgorithm( dafny_input.curve ), @@ -476,28 +476,28 @@ def aws_cryptography_materialproviders_ECDSA(dafny_input): def aws_cryptography_materialproviders_DIRECT_KEY_WRAPPING(dafny_input): return ( - aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.models.DIRECT_KEY_WRAPPING() + aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.models.DIRECT_KEY_WRAPPING() ) def aws_cryptography_materialproviders_IntermediateKeyWrapping(dafny_input): - return aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.models.IntermediateKeyWrapping( - key_encryption_key_kdf=aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.dafny_to_smithy.aws_cryptography_materialproviders_DerivationAlgorithm( + return aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.models.IntermediateKeyWrapping( + key_encryption_key_kdf=aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.dafny_to_smithy.aws_cryptography_materialproviders_DerivationAlgorithm( dafny_input.keyEncryptionKeyKdf ), - mac_key_kdf=aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.dafny_to_smithy.aws_cryptography_materialproviders_DerivationAlgorithm( + mac_key_kdf=aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.dafny_to_smithy.aws_cryptography_materialproviders_DerivationAlgorithm( dafny_input.macKeyKdf ), - pdk_encrypt_algorithm=aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.dafny_to_smithy.aws_cryptography_materialproviders_Encrypt( + pdk_encrypt_algorithm=aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.dafny_to_smithy.aws_cryptography_materialproviders_Encrypt( dafny_input.pdkEncryptAlgorithm ), ) def aws_cryptography_materialproviders_PutCacheEntryInput(dafny_input): - return aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.models.PutCacheEntryInput( + return aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.models.PutCacheEntryInput( identifier=bytes(dafny_input.identifier), - materials=aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.dafny_to_smithy.aws_cryptography_materialproviders_Materials( + materials=aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.dafny_to_smithy.aws_cryptography_materialproviders_Materials( dafny_input.materials ), creation_time=dafny_input.creationTime, @@ -515,12 +515,12 @@ def aws_cryptography_materialproviders_PutCacheEntryInput(dafny_input): def smithy_api_Unit(): return ( - aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.models.Unit() + aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.models.Unit() ) def aws_cryptography_materialproviders_GetCacheEntryInput(dafny_input): - return aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.models.GetCacheEntryInput( + return aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.models.GetCacheEntryInput( identifier=bytes(dafny_input.identifier), bytes_used=( (dafny_input.bytesUsed.value) if (dafny_input.bytesUsed.is_Some) else None @@ -529,8 +529,8 @@ def aws_cryptography_materialproviders_GetCacheEntryInput(dafny_input): def aws_cryptography_materialproviders_GetCacheEntryOutput(dafny_input): - return aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.models.GetCacheEntryOutput( - materials=aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.dafny_to_smithy.aws_cryptography_materialproviders_Materials( + return aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.models.GetCacheEntryOutput( + materials=aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.dafny_to_smithy.aws_cryptography_materialproviders_Materials( dafny_input.materials ), creation_time=dafny_input.creationTime, @@ -541,14 +541,14 @@ def aws_cryptography_materialproviders_GetCacheEntryOutput(dafny_input): def aws_cryptography_materialproviders_UpdateUsageMetadataInput(dafny_input): - return aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.models.UpdateUsageMetadataInput( + return aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.models.UpdateUsageMetadataInput( identifier=bytes(dafny_input.identifier), bytes_used=dafny_input.bytesUsed, ) def aws_cryptography_materialproviders_DeleteCacheEntryInput(dafny_input): - return aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.models.DeleteCacheEntryInput( + return aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.models.DeleteCacheEntryInput( identifier=bytes(dafny_input.identifier), ) @@ -556,14 +556,14 @@ def aws_cryptography_materialproviders_DeleteCacheEntryInput(dafny_input): def aws_cryptography_materialproviders_CommitmentPolicy(dafny_input): # Convert CommitmentPolicy if isinstance(dafny_input, CommitmentPolicy_ESDK): - CommitmentPolicy_union_value = aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.models.CommitmentPolicyESDK( - aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.dafny_to_smithy.aws_cryptography_materialproviders_ESDKCommitmentPolicy( + CommitmentPolicy_union_value = aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.models.CommitmentPolicyESDK( + aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.dafny_to_smithy.aws_cryptography_materialproviders_ESDKCommitmentPolicy( dafny_input.ESDK ) ) elif isinstance(dafny_input, CommitmentPolicy_DBE): - CommitmentPolicy_union_value = aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.models.CommitmentPolicyDBE( - aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.dafny_to_smithy.aws_cryptography_materialproviders_DBECommitmentPolicy( + CommitmentPolicy_union_value = aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.models.CommitmentPolicyDBE( + aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.dafny_to_smithy.aws_cryptography_materialproviders_DBECommitmentPolicy( dafny_input.DBE ) ) @@ -598,17 +598,17 @@ def aws_cryptography_materialproviders_DBECommitmentPolicy(dafny_input): def aws_cryptography_materialproviders_GetEncryptionMaterialsInput(dafny_input): - return aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.models.GetEncryptionMaterialsInput( + return aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.models.GetEncryptionMaterialsInput( encryption_context={ bytes(key.Elements).decode("utf-8"): bytes(value.Elements).decode("utf-8") for (key, value) in dafny_input.encryptionContext.items }, - commitment_policy=aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.dafny_to_smithy.aws_cryptography_materialproviders_CommitmentPolicy( + commitment_policy=aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.dafny_to_smithy.aws_cryptography_materialproviders_CommitmentPolicy( dafny_input.commitmentPolicy ), algorithm_suite_id=( ( - aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.dafny_to_smithy.aws_cryptography_materialproviders_AlgorithmSuiteId( + aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.dafny_to_smithy.aws_cryptography_materialproviders_AlgorithmSuiteId( dafny_input.algorithmSuiteId.value ) ) @@ -634,23 +634,23 @@ def aws_cryptography_materialproviders_GetEncryptionMaterialsInput(dafny_input): def aws_cryptography_materialproviders_GetEncryptionMaterialsOutput(dafny_input): - return aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.models.GetEncryptionMaterialsOutput( - encryption_materials=aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.dafny_to_smithy.aws_cryptography_materialproviders_EncryptionMaterials( + return aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.models.GetEncryptionMaterialsOutput( + encryption_materials=aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.dafny_to_smithy.aws_cryptography_materialproviders_EncryptionMaterials( dafny_input.encryptionMaterials ), ) def aws_cryptography_materialproviders_DecryptMaterialsInput(dafny_input): - return aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.models.DecryptMaterialsInput( - algorithm_suite_id=aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.dafny_to_smithy.aws_cryptography_materialproviders_AlgorithmSuiteId( + return aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.models.DecryptMaterialsInput( + algorithm_suite_id=aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.dafny_to_smithy.aws_cryptography_materialproviders_AlgorithmSuiteId( dafny_input.algorithmSuiteId ), - commitment_policy=aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.dafny_to_smithy.aws_cryptography_materialproviders_CommitmentPolicy( + commitment_policy=aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.dafny_to_smithy.aws_cryptography_materialproviders_CommitmentPolicy( dafny_input.commitmentPolicy ), encrypted_data_keys=[ - aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.dafny_to_smithy.aws_cryptography_materialproviders_EncryptedDataKey( + aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.dafny_to_smithy.aws_cryptography_materialproviders_EncryptedDataKey( list_element ) for list_element in dafny_input.encryptedDataKeys @@ -678,36 +678,36 @@ def aws_cryptography_materialproviders_DecryptMaterialsInput(dafny_input): def aws_cryptography_materialproviders_DecryptMaterialsOutput(dafny_input): - return aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.models.DecryptMaterialsOutput( - decryption_materials=aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.dafny_to_smithy.aws_cryptography_materialproviders_DecryptionMaterials( + return aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.models.DecryptMaterialsOutput( + decryption_materials=aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.dafny_to_smithy.aws_cryptography_materialproviders_DecryptionMaterials( dafny_input.decryptionMaterials ), ) def aws_cryptography_materialproviders_OnEncryptInput(dafny_input): - return aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.models.OnEncryptInput( - materials=aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.dafny_to_smithy.aws_cryptography_materialproviders_EncryptionMaterials( + return aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.models.OnEncryptInput( + materials=aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.dafny_to_smithy.aws_cryptography_materialproviders_EncryptionMaterials( dafny_input.materials ), ) def aws_cryptography_materialproviders_OnEncryptOutput(dafny_input): - return aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.models.OnEncryptOutput( - materials=aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.dafny_to_smithy.aws_cryptography_materialproviders_EncryptionMaterials( + return aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.models.OnEncryptOutput( + materials=aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.dafny_to_smithy.aws_cryptography_materialproviders_EncryptionMaterials( dafny_input.materials ), ) def aws_cryptography_materialproviders_OnDecryptInput(dafny_input): - return aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.models.OnDecryptInput( - materials=aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.dafny_to_smithy.aws_cryptography_materialproviders_DecryptionMaterials( + return aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.models.OnDecryptInput( + materials=aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.dafny_to_smithy.aws_cryptography_materialproviders_DecryptionMaterials( dafny_input.materials ), encrypted_data_keys=[ - aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.dafny_to_smithy.aws_cryptography_materialproviders_EncryptedDataKey( + aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.dafny_to_smithy.aws_cryptography_materialproviders_EncryptedDataKey( list_element ) for list_element in dafny_input.encryptedDataKeys @@ -716,21 +716,21 @@ def aws_cryptography_materialproviders_OnDecryptInput(dafny_input): def aws_cryptography_materialproviders_OnDecryptOutput(dafny_input): - return aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.models.OnDecryptOutput( - materials=aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.dafny_to_smithy.aws_cryptography_materialproviders_DecryptionMaterials( + return aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.models.OnDecryptOutput( + materials=aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.dafny_to_smithy.aws_cryptography_materialproviders_DecryptionMaterials( dafny_input.materials ), ) def aws_cryptography_materialproviders_CreateAwsKmsKeyringInput(dafny_input): - return aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.models.CreateAwsKmsKeyringInput( + return aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.models.CreateAwsKmsKeyringInput( kms_key_id=b"".join( ord(c).to_bytes(2, "big") for c in dafny_input.kmsKeyId ).decode("utf-16-be"), kms_client=( ( - aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.dafny_to_smithy.aws_cryptography_materialproviders_KmsClientReference( + aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.dafny_to_smithy.aws_cryptography_materialproviders_KmsClientReference( dafny_input.kmsClient ) ) @@ -753,7 +753,7 @@ def aws_cryptography_materialproviders_CreateAwsKmsKeyringInput(dafny_input): def aws_cryptography_materialproviders_DiscoveryFilter(dafny_input): - return aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.models.DiscoveryFilter( + return aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.models.DiscoveryFilter( account_ids=[ b"".join(ord(c).to_bytes(2, "big") for c in list_element).decode( "utf-16-be" @@ -767,10 +767,10 @@ def aws_cryptography_materialproviders_DiscoveryFilter(dafny_input): def aws_cryptography_materialproviders_CreateAwsKmsDiscoveryKeyringInput(dafny_input): - return aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.models.CreateAwsKmsDiscoveryKeyringInput( + return aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.models.CreateAwsKmsDiscoveryKeyringInput( kms_client=( ( - aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.dafny_to_smithy.aws_cryptography_materialproviders_KmsClientReference( + aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.dafny_to_smithy.aws_cryptography_materialproviders_KmsClientReference( dafny_input.kmsClient ) ) @@ -779,7 +779,7 @@ def aws_cryptography_materialproviders_CreateAwsKmsDiscoveryKeyringInput(dafny_i ), discovery_filter=( ( - aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.dafny_to_smithy.aws_cryptography_materialproviders_DiscoveryFilter( + aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.dafny_to_smithy.aws_cryptography_materialproviders_DiscoveryFilter( dafny_input.discoveryFilter.value ) ) @@ -806,7 +806,7 @@ def aws_cryptography_materialproviders_ClientSupplierReference(dafny_input): return dafny_input._native_impl else: - from aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.references import ( + from aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.references import ( ClientSupplier, ) @@ -814,7 +814,7 @@ def aws_cryptography_materialproviders_ClientSupplierReference(dafny_input): def aws_cryptography_materialproviders_CreateAwsKmsMultiKeyringInput(dafny_input): - return aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.models.CreateAwsKmsMultiKeyringInput( + return aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.models.CreateAwsKmsMultiKeyringInput( generator=( ( b"".join( @@ -838,7 +838,7 @@ def aws_cryptography_materialproviders_CreateAwsKmsMultiKeyringInput(dafny_input ), client_supplier=( ( - aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.dafny_to_smithy.aws_cryptography_materialproviders_ClientSupplierReference( + aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.dafny_to_smithy.aws_cryptography_materialproviders_ClientSupplierReference( dafny_input.clientSupplier.UnwrapOr(None) ) ) @@ -863,7 +863,7 @@ def aws_cryptography_materialproviders_CreateAwsKmsMultiKeyringInput(dafny_input def aws_cryptography_materialproviders_CreateAwsKmsDiscoveryMultiKeyringInput( dafny_input, ): - return aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.models.CreateAwsKmsDiscoveryMultiKeyringInput( + return aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.models.CreateAwsKmsDiscoveryMultiKeyringInput( regions=[ b"".join(ord(c).to_bytes(2, "big") for c in list_element).decode( "utf-16-be" @@ -872,7 +872,7 @@ def aws_cryptography_materialproviders_CreateAwsKmsDiscoveryMultiKeyringInput( ], discovery_filter=( ( - aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.dafny_to_smithy.aws_cryptography_materialproviders_DiscoveryFilter( + aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.dafny_to_smithy.aws_cryptography_materialproviders_DiscoveryFilter( dafny_input.discoveryFilter.value ) ) @@ -881,7 +881,7 @@ def aws_cryptography_materialproviders_CreateAwsKmsDiscoveryMultiKeyringInput( ), client_supplier=( ( - aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.dafny_to_smithy.aws_cryptography_materialproviders_ClientSupplierReference( + aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.dafny_to_smithy.aws_cryptography_materialproviders_ClientSupplierReference( dafny_input.clientSupplier.UnwrapOr(None) ) ) @@ -904,13 +904,13 @@ def aws_cryptography_materialproviders_CreateAwsKmsDiscoveryMultiKeyringInput( def aws_cryptography_materialproviders_CreateAwsKmsMrkKeyringInput(dafny_input): - return aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.models.CreateAwsKmsMrkKeyringInput( + return aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.models.CreateAwsKmsMrkKeyringInput( kms_key_id=b"".join( ord(c).to_bytes(2, "big") for c in dafny_input.kmsKeyId ).decode("utf-16-be"), kms_client=( ( - aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.dafny_to_smithy.aws_cryptography_materialproviders_KmsClientReference( + aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.dafny_to_smithy.aws_cryptography_materialproviders_KmsClientReference( dafny_input.kmsClient ) ) @@ -933,7 +933,7 @@ def aws_cryptography_materialproviders_CreateAwsKmsMrkKeyringInput(dafny_input): def aws_cryptography_materialproviders_CreateAwsKmsMrkMultiKeyringInput(dafny_input): - return aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.models.CreateAwsKmsMrkMultiKeyringInput( + return aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.models.CreateAwsKmsMrkMultiKeyringInput( generator=( ( b"".join( @@ -957,7 +957,7 @@ def aws_cryptography_materialproviders_CreateAwsKmsMrkMultiKeyringInput(dafny_in ), client_supplier=( ( - aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.dafny_to_smithy.aws_cryptography_materialproviders_ClientSupplierReference( + aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.dafny_to_smithy.aws_cryptography_materialproviders_ClientSupplierReference( dafny_input.clientSupplier.UnwrapOr(None) ) ) @@ -982,10 +982,10 @@ def aws_cryptography_materialproviders_CreateAwsKmsMrkMultiKeyringInput(dafny_in def aws_cryptography_materialproviders_CreateAwsKmsMrkDiscoveryKeyringInput( dafny_input, ): - return aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.models.CreateAwsKmsMrkDiscoveryKeyringInput( + return aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.models.CreateAwsKmsMrkDiscoveryKeyringInput( kms_client=( ( - aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.dafny_to_smithy.aws_cryptography_materialproviders_KmsClientReference( + aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.dafny_to_smithy.aws_cryptography_materialproviders_KmsClientReference( dafny_input.kmsClient ) ) @@ -994,7 +994,7 @@ def aws_cryptography_materialproviders_CreateAwsKmsMrkDiscoveryKeyringInput( ), discovery_filter=( ( - aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.dafny_to_smithy.aws_cryptography_materialproviders_DiscoveryFilter( + aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.dafny_to_smithy.aws_cryptography_materialproviders_DiscoveryFilter( dafny_input.discoveryFilter.value ) ) @@ -1022,7 +1022,7 @@ def aws_cryptography_materialproviders_CreateAwsKmsMrkDiscoveryKeyringInput( def aws_cryptography_materialproviders_CreateAwsKmsMrkDiscoveryMultiKeyringInput( dafny_input, ): - return aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.models.CreateAwsKmsMrkDiscoveryMultiKeyringInput( + return aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.models.CreateAwsKmsMrkDiscoveryMultiKeyringInput( regions=[ b"".join(ord(c).to_bytes(2, "big") for c in list_element).decode( "utf-16-be" @@ -1031,7 +1031,7 @@ def aws_cryptography_materialproviders_CreateAwsKmsMrkDiscoveryMultiKeyringInput ], discovery_filter=( ( - aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.dafny_to_smithy.aws_cryptography_materialproviders_DiscoveryFilter( + aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.dafny_to_smithy.aws_cryptography_materialproviders_DiscoveryFilter( dafny_input.discoveryFilter.value ) ) @@ -1040,7 +1040,7 @@ def aws_cryptography_materialproviders_CreateAwsKmsMrkDiscoveryMultiKeyringInput ), client_supplier=( ( - aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.dafny_to_smithy.aws_cryptography_materialproviders_ClientSupplierReference( + aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.dafny_to_smithy.aws_cryptography_materialproviders_ClientSupplierReference( dafny_input.clientSupplier.UnwrapOr(None) ) ) @@ -1067,7 +1067,7 @@ def aws_cryptography_materialproviders_BranchKeyIdSupplierReference(dafny_input) return dafny_input._native_impl else: - from aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.references import ( + from aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.references import ( BranchKeyIdSupplier, ) @@ -1075,7 +1075,7 @@ def aws_cryptography_materialproviders_BranchKeyIdSupplierReference(dafny_input) def aws_cryptography_materialproviders_KeyStoreReference(dafny_input): - from aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_keystore.client import ( + from aws_cryptographic_material_providers.smithygenerated.aws_cryptography_keystore.client import ( KeyStore, ) @@ -1085,38 +1085,38 @@ def aws_cryptography_materialproviders_KeyStoreReference(dafny_input): def aws_cryptography_materialproviders_CacheType(dafny_input): # Convert CacheType if isinstance(dafny_input, CacheType_Default): - CacheType_union_value = aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.models.CacheTypeDefault( - aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.dafny_to_smithy.aws_cryptography_materialproviders_DefaultCache( + CacheType_union_value = aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.models.CacheTypeDefault( + aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.dafny_to_smithy.aws_cryptography_materialproviders_DefaultCache( dafny_input.Default ) ) elif isinstance(dafny_input, CacheType_No): - CacheType_union_value = aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.models.CacheTypeNo( - aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.dafny_to_smithy.aws_cryptography_materialproviders_NoCache( + CacheType_union_value = aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.models.CacheTypeNo( + aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.dafny_to_smithy.aws_cryptography_materialproviders_NoCache( dafny_input.No ) ) elif isinstance(dafny_input, CacheType_SingleThreaded): - CacheType_union_value = aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.models.CacheTypeSingleThreaded( - aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.dafny_to_smithy.aws_cryptography_materialproviders_SingleThreadedCache( + CacheType_union_value = aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.models.CacheTypeSingleThreaded( + aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.dafny_to_smithy.aws_cryptography_materialproviders_SingleThreadedCache( dafny_input.SingleThreaded ) ) elif isinstance(dafny_input, CacheType_MultiThreaded): - CacheType_union_value = aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.models.CacheTypeMultiThreaded( - aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.dafny_to_smithy.aws_cryptography_materialproviders_MultiThreadedCache( + CacheType_union_value = aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.models.CacheTypeMultiThreaded( + aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.dafny_to_smithy.aws_cryptography_materialproviders_MultiThreadedCache( dafny_input.MultiThreaded ) ) elif isinstance(dafny_input, CacheType_StormTracking): - CacheType_union_value = aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.models.CacheTypeStormTracking( - aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.dafny_to_smithy.aws_cryptography_materialproviders_StormTrackingCache( + CacheType_union_value = aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.models.CacheTypeStormTracking( + aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.dafny_to_smithy.aws_cryptography_materialproviders_StormTrackingCache( dafny_input.StormTracking ) ) elif isinstance(dafny_input, CacheType_Shared): - CacheType_union_value = aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.models.CacheTypeShared( - aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.dafny_to_smithy.aws_cryptography_materialproviders_CryptographicMaterialsCacheReference( + CacheType_union_value = aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.models.CacheTypeShared( + aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.dafny_to_smithy.aws_cryptography_materialproviders_CryptographicMaterialsCacheReference( dafny_input.Shared ) ) @@ -1127,19 +1127,19 @@ def aws_cryptography_materialproviders_CacheType(dafny_input): def aws_cryptography_materialproviders_DefaultCache(dafny_input): - return aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.models.DefaultCache( + return aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.models.DefaultCache( entry_capacity=dafny_input.entryCapacity, ) def aws_cryptography_materialproviders_NoCache(dafny_input): return ( - aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.models.NoCache() + aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.models.NoCache() ) def aws_cryptography_materialproviders_SingleThreadedCache(dafny_input): - return aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.models.SingleThreadedCache( + return aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.models.SingleThreadedCache( entry_capacity=dafny_input.entryCapacity, entry_pruning_tail_size=( (dafny_input.entryPruningTailSize.value) @@ -1150,7 +1150,7 @@ def aws_cryptography_materialproviders_SingleThreadedCache(dafny_input): def aws_cryptography_materialproviders_MultiThreadedCache(dafny_input): - return aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.models.MultiThreadedCache( + return aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.models.MultiThreadedCache( entry_capacity=dafny_input.entryCapacity, entry_pruning_tail_size=( (dafny_input.entryPruningTailSize.value) @@ -1161,7 +1161,7 @@ def aws_cryptography_materialproviders_MultiThreadedCache(dafny_input): def aws_cryptography_materialproviders_StormTrackingCache(dafny_input): - return aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.models.StormTrackingCache( + return aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.models.StormTrackingCache( entry_capacity=dafny_input.entryCapacity, entry_pruning_tail_size=( (dafny_input.entryPruningTailSize.value) @@ -1183,7 +1183,7 @@ def aws_cryptography_materialproviders_CryptographicMaterialsCacheReference( return dafny_input._native_impl else: - from aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.references import ( + from aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.references import ( CryptographicMaterialsCache, ) @@ -1193,7 +1193,7 @@ def aws_cryptography_materialproviders_CryptographicMaterialsCacheReference( def aws_cryptography_materialproviders_CreateAwsKmsHierarchicalKeyringInput( dafny_input, ): - return aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.models.CreateAwsKmsHierarchicalKeyringInput( + return aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.models.CreateAwsKmsHierarchicalKeyringInput( branch_key_id=( ( b"".join( @@ -1205,7 +1205,7 @@ def aws_cryptography_materialproviders_CreateAwsKmsHierarchicalKeyringInput( ), branch_key_id_supplier=( ( - aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.dafny_to_smithy.aws_cryptography_materialproviders_BranchKeyIdSupplierReference( + aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.dafny_to_smithy.aws_cryptography_materialproviders_BranchKeyIdSupplierReference( dafny_input.branchKeyIdSupplier.UnwrapOr(None) ) ) @@ -1214,7 +1214,7 @@ def aws_cryptography_materialproviders_CreateAwsKmsHierarchicalKeyringInput( ), key_store=( ( - aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.dafny_to_smithy.aws_cryptography_materialproviders_KeyStoreReference( + aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.dafny_to_smithy.aws_cryptography_materialproviders_KeyStoreReference( dafny_input.keyStore ) ) @@ -1224,7 +1224,7 @@ def aws_cryptography_materialproviders_CreateAwsKmsHierarchicalKeyringInput( ttl_seconds=dafny_input.ttlSeconds, cache=( ( - aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.dafny_to_smithy.aws_cryptography_materialproviders_CacheType( + aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.dafny_to_smithy.aws_cryptography_materialproviders_CacheType( dafny_input.cache.value ) ) @@ -1244,7 +1244,7 @@ def aws_cryptography_materialproviders_CreateAwsKmsHierarchicalKeyringInput( def aws_cryptography_materialproviders_CreateAwsKmsRsaKeyringInput(dafny_input): - return aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.models.CreateAwsKmsRsaKeyringInput( + return aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.models.CreateAwsKmsRsaKeyringInput( public_key=( (bytes(dafny_input.publicKey.value)) if (dafny_input.publicKey.is_Some) @@ -1258,7 +1258,7 @@ def aws_cryptography_materialproviders_CreateAwsKmsRsaKeyringInput(dafny_input): ), kms_client=( ( - aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.dafny_to_smithy.aws_cryptography_materialproviders_KmsClientReference( + aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.dafny_to_smithy.aws_cryptography_materialproviders_KmsClientReference( dafny_input.kmsClient.UnwrapOr(None) ) ) @@ -1283,16 +1283,16 @@ def aws_cryptography_materialproviders_CreateAwsKmsRsaKeyringInput(dafny_input): def aws_cryptography_materialproviders_KmsEcdhStaticConfigurations(dafny_input): # Convert KmsEcdhStaticConfigurations if isinstance(dafny_input, KmsEcdhStaticConfigurations_KmsPublicKeyDiscovery): - KmsEcdhStaticConfigurations_union_value = aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.models.KmsEcdhStaticConfigurationsKmsPublicKeyDiscovery( - aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.dafny_to_smithy.aws_cryptography_materialproviders_KmsPublicKeyDiscoveryInput( + KmsEcdhStaticConfigurations_union_value = aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.models.KmsEcdhStaticConfigurationsKmsPublicKeyDiscovery( + aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.dafny_to_smithy.aws_cryptography_materialproviders_KmsPublicKeyDiscoveryInput( dafny_input.KmsPublicKeyDiscovery ) ) elif isinstance( dafny_input, KmsEcdhStaticConfigurations_KmsPrivateKeyToStaticPublicKey ): - KmsEcdhStaticConfigurations_union_value = aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.models.KmsEcdhStaticConfigurationsKmsPrivateKeyToStaticPublicKey( - aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.dafny_to_smithy.aws_cryptography_materialproviders_KmsPrivateKeyToStaticPublicKeyInput( + KmsEcdhStaticConfigurations_union_value = aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.models.KmsEcdhStaticConfigurationsKmsPrivateKeyToStaticPublicKey( + aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.dafny_to_smithy.aws_cryptography_materialproviders_KmsPrivateKeyToStaticPublicKeyInput( dafny_input.KmsPrivateKeyToStaticPublicKey ) ) @@ -1303,7 +1303,7 @@ def aws_cryptography_materialproviders_KmsEcdhStaticConfigurations(dafny_input): def aws_cryptography_materialproviders_KmsPublicKeyDiscoveryInput(dafny_input): - return aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.models.KmsPublicKeyDiscoveryInput( + return aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.models.KmsPublicKeyDiscoveryInput( recipient_kms_identifier=b"".join( ord(c).to_bytes(2, "big") for c in dafny_input.recipientKmsIdentifier ).decode("utf-16-be"), @@ -1311,7 +1311,7 @@ def aws_cryptography_materialproviders_KmsPublicKeyDiscoveryInput(dafny_input): def aws_cryptography_materialproviders_KmsPrivateKeyToStaticPublicKeyInput(dafny_input): - return aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.models.KmsPrivateKeyToStaticPublicKeyInput( + return aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.models.KmsPrivateKeyToStaticPublicKeyInput( sender_kms_identifier=b"".join( ord(c).to_bytes(2, "big") for c in dafny_input.senderKmsIdentifier ).decode("utf-16-be"), @@ -1325,8 +1325,8 @@ def aws_cryptography_materialproviders_KmsPrivateKeyToStaticPublicKeyInput(dafny def aws_cryptography_materialproviders_CreateAwsKmsEcdhKeyringInput(dafny_input): - return aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.models.CreateAwsKmsEcdhKeyringInput( - key_agreement_scheme=aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.dafny_to_smithy.aws_cryptography_materialproviders_KmsEcdhStaticConfigurations( + return aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.models.CreateAwsKmsEcdhKeyringInput( + key_agreement_scheme=aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.dafny_to_smithy.aws_cryptography_materialproviders_KmsEcdhStaticConfigurations( dafny_input.KeyAgreementScheme ), curve_spec=aws_cryptography_primitives.smithygenerated.aws_cryptography_primitives.dafny_to_smithy.aws_cryptography_primitives_ECDHCurveSpec( @@ -1334,7 +1334,7 @@ def aws_cryptography_materialproviders_CreateAwsKmsEcdhKeyringInput(dafny_input) ), kms_client=( ( - aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.dafny_to_smithy.aws_cryptography_materialproviders_KmsClientReference( + aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.dafny_to_smithy.aws_cryptography_materialproviders_KmsClientReference( dafny_input.kmsClient ) ) @@ -1361,7 +1361,7 @@ def aws_cryptography_materialproviders_KeyringReference(dafny_input): return dafny_input._native_impl else: - from aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.references import ( + from aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.references import ( Keyring, ) @@ -1369,10 +1369,10 @@ def aws_cryptography_materialproviders_KeyringReference(dafny_input): def aws_cryptography_materialproviders_CreateMultiKeyringInput(dafny_input): - return aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.models.CreateMultiKeyringInput( + return aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.models.CreateMultiKeyringInput( generator=( ( - aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.dafny_to_smithy.aws_cryptography_materialproviders_KeyringReference( + aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.dafny_to_smithy.aws_cryptography_materialproviders_KeyringReference( dafny_input.generator.UnwrapOr(None) ) ) @@ -1380,7 +1380,7 @@ def aws_cryptography_materialproviders_CreateMultiKeyringInput(dafny_input): else None ), child_keyrings=[ - aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.dafny_to_smithy.aws_cryptography_materialproviders_KeyringReference( + aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.dafny_to_smithy.aws_cryptography_materialproviders_KeyringReference( list_element ) for list_element in dafny_input.childKeyrings @@ -1403,7 +1403,7 @@ def aws_cryptography_materialproviders_AesWrappingAlg(dafny_input): def aws_cryptography_materialproviders_CreateRawAesKeyringInput(dafny_input): - return aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.models.CreateRawAesKeyringInput( + return aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.models.CreateRawAesKeyringInput( key_namespace=b"".join( ord(c).to_bytes(2, "big") for c in dafny_input.keyNamespace ).decode("utf-16-be"), @@ -1411,7 +1411,7 @@ def aws_cryptography_materialproviders_CreateRawAesKeyringInput(dafny_input): ord(c).to_bytes(2, "big") for c in dafny_input.keyName ).decode("utf-16-be"), wrapping_key=bytes(dafny_input.wrappingKey), - wrapping_alg=aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.dafny_to_smithy.aws_cryptography_materialproviders_AesWrappingAlg( + wrapping_alg=aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.dafny_to_smithy.aws_cryptography_materialproviders_AesWrappingAlg( dafny_input.wrappingAlg ), ) @@ -1438,14 +1438,14 @@ def aws_cryptography_materialproviders_PaddingScheme(dafny_input): def aws_cryptography_materialproviders_CreateRawRsaKeyringInput(dafny_input): - return aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.models.CreateRawRsaKeyringInput( + return aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.models.CreateRawRsaKeyringInput( key_namespace=b"".join( ord(c).to_bytes(2, "big") for c in dafny_input.keyNamespace ).decode("utf-16-be"), key_name=b"".join( ord(c).to_bytes(2, "big") for c in dafny_input.keyName ).decode("utf-16-be"), - padding_scheme=aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.dafny_to_smithy.aws_cryptography_materialproviders_PaddingScheme( + padding_scheme=aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.dafny_to_smithy.aws_cryptography_materialproviders_PaddingScheme( dafny_input.paddingScheme ), public_key=( @@ -1464,24 +1464,24 @@ def aws_cryptography_materialproviders_CreateRawRsaKeyringInput(dafny_input): def aws_cryptography_materialproviders_RawEcdhStaticConfigurations(dafny_input): # Convert RawEcdhStaticConfigurations if isinstance(dafny_input, RawEcdhStaticConfigurations_PublicKeyDiscovery): - RawEcdhStaticConfigurations_union_value = aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.models.RawEcdhStaticConfigurationsPublicKeyDiscovery( - aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.dafny_to_smithy.aws_cryptography_materialproviders_PublicKeyDiscoveryInput( + RawEcdhStaticConfigurations_union_value = aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.models.RawEcdhStaticConfigurationsPublicKeyDiscovery( + aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.dafny_to_smithy.aws_cryptography_materialproviders_PublicKeyDiscoveryInput( dafny_input.PublicKeyDiscovery ) ) elif isinstance( dafny_input, RawEcdhStaticConfigurations_RawPrivateKeyToStaticPublicKey ): - RawEcdhStaticConfigurations_union_value = aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.models.RawEcdhStaticConfigurationsRawPrivateKeyToStaticPublicKey( - aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.dafny_to_smithy.aws_cryptography_materialproviders_RawPrivateKeyToStaticPublicKeyInput( + RawEcdhStaticConfigurations_union_value = aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.models.RawEcdhStaticConfigurationsRawPrivateKeyToStaticPublicKey( + aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.dafny_to_smithy.aws_cryptography_materialproviders_RawPrivateKeyToStaticPublicKeyInput( dafny_input.RawPrivateKeyToStaticPublicKey ) ) elif isinstance( dafny_input, RawEcdhStaticConfigurations_EphemeralPrivateKeyToStaticPublicKey ): - RawEcdhStaticConfigurations_union_value = aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.models.RawEcdhStaticConfigurationsEphemeralPrivateKeyToStaticPublicKey( - aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.dafny_to_smithy.aws_cryptography_materialproviders_EphemeralPrivateKeyToStaticPublicKeyInput( + RawEcdhStaticConfigurations_union_value = aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.models.RawEcdhStaticConfigurationsEphemeralPrivateKeyToStaticPublicKey( + aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.dafny_to_smithy.aws_cryptography_materialproviders_EphemeralPrivateKeyToStaticPublicKeyInput( dafny_input.EphemeralPrivateKeyToStaticPublicKey ) ) @@ -1492,13 +1492,13 @@ def aws_cryptography_materialproviders_RawEcdhStaticConfigurations(dafny_input): def aws_cryptography_materialproviders_PublicKeyDiscoveryInput(dafny_input): - return aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.models.PublicKeyDiscoveryInput( + return aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.models.PublicKeyDiscoveryInput( recipient_static_private_key=bytes(dafny_input.recipientStaticPrivateKey), ) def aws_cryptography_materialproviders_RawPrivateKeyToStaticPublicKeyInput(dafny_input): - return aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.models.RawPrivateKeyToStaticPublicKeyInput( + return aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.models.RawPrivateKeyToStaticPublicKeyInput( sender_static_private_key=bytes(dafny_input.senderStaticPrivateKey), recipient_public_key=bytes(dafny_input.recipientPublicKey), ) @@ -1507,14 +1507,14 @@ def aws_cryptography_materialproviders_RawPrivateKeyToStaticPublicKeyInput(dafny def aws_cryptography_materialproviders_EphemeralPrivateKeyToStaticPublicKeyInput( dafny_input, ): - return aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.models.EphemeralPrivateKeyToStaticPublicKeyInput( + return aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.models.EphemeralPrivateKeyToStaticPublicKeyInput( recipient_public_key=bytes(dafny_input.recipientPublicKey), ) def aws_cryptography_materialproviders_CreateRawEcdhKeyringInput(dafny_input): - return aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.models.CreateRawEcdhKeyringInput( - key_agreement_scheme=aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.dafny_to_smithy.aws_cryptography_materialproviders_RawEcdhStaticConfigurations( + return aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.models.CreateRawEcdhKeyringInput( + key_agreement_scheme=aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.dafny_to_smithy.aws_cryptography_materialproviders_RawEcdhStaticConfigurations( dafny_input.KeyAgreementScheme ), curve_spec=aws_cryptography_primitives.smithygenerated.aws_cryptography_primitives.dafny_to_smithy.aws_cryptography_primitives_ECDHCurveSpec( @@ -1526,10 +1526,10 @@ def aws_cryptography_materialproviders_CreateRawEcdhKeyringInput(dafny_input): def aws_cryptography_materialproviders_CreateDefaultCryptographicMaterialsManagerInput( dafny_input, ): - return aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.models.CreateDefaultCryptographicMaterialsManagerInput( + return aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.models.CreateDefaultCryptographicMaterialsManagerInput( keyring=( ( - aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.dafny_to_smithy.aws_cryptography_materialproviders_KeyringReference( + aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.dafny_to_smithy.aws_cryptography_materialproviders_KeyringReference( dafny_input.keyring ) ) @@ -1546,7 +1546,7 @@ def aws_cryptography_materialproviders_CryptographicMaterialsManagerReference( return dafny_input._native_impl else: - from aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.references import ( + from aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.references import ( CryptographicMaterialsManager, ) @@ -1556,10 +1556,10 @@ def aws_cryptography_materialproviders_CryptographicMaterialsManagerReference( def aws_cryptography_materialproviders_CreateRequiredEncryptionContextCMMInput( dafny_input, ): - return aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.models.CreateRequiredEncryptionContextCMMInput( + return aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.models.CreateRequiredEncryptionContextCMMInput( underlying_cmm=( ( - aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.dafny_to_smithy.aws_cryptography_materialproviders_CryptographicMaterialsManagerReference( + aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.dafny_to_smithy.aws_cryptography_materialproviders_CryptographicMaterialsManagerReference( dafny_input.underlyingCMM.UnwrapOr(None) ) ) @@ -1568,7 +1568,7 @@ def aws_cryptography_materialproviders_CreateRequiredEncryptionContextCMMInput( ), keyring=( ( - aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.dafny_to_smithy.aws_cryptography_materialproviders_KeyringReference( + aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.dafny_to_smithy.aws_cryptography_materialproviders_KeyringReference( dafny_input.keyring.UnwrapOr(None) ) ) @@ -1585,8 +1585,8 @@ def aws_cryptography_materialproviders_CreateRequiredEncryptionContextCMMInput( def aws_cryptography_materialproviders_CreateCryptographicMaterialsCacheInput( dafny_input, ): - return aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.models.CreateCryptographicMaterialsCacheInput( - cache=aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.dafny_to_smithy.aws_cryptography_materialproviders_CacheType( + return aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.models.CreateCryptographicMaterialsCacheInput( + cache=aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.dafny_to_smithy.aws_cryptography_materialproviders_CacheType( dafny_input.cache ), ) @@ -1594,13 +1594,13 @@ def aws_cryptography_materialproviders_CreateCryptographicMaterialsCacheInput( def aws_cryptography_materialproviders_CreateDefaultClientSupplierInput(dafny_input): return ( - aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.models.CreateDefaultClientSupplierInput() + aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.models.CreateDefaultClientSupplierInput() ) def aws_cryptography_materialproviders_InitializeEncryptionMaterialsInput(dafny_input): - return aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.models.InitializeEncryptionMaterialsInput( - algorithm_suite_id=aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.dafny_to_smithy.aws_cryptography_materialproviders_AlgorithmSuiteId( + return aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.models.InitializeEncryptionMaterialsInput( + algorithm_suite_id=aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.dafny_to_smithy.aws_cryptography_materialproviders_AlgorithmSuiteId( dafny_input.algorithmSuiteId ), encryption_context={ @@ -1625,8 +1625,8 @@ def aws_cryptography_materialproviders_InitializeEncryptionMaterialsInput(dafny_ def aws_cryptography_materialproviders_InitializeDecryptionMaterialsInput(dafny_input): - return aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.models.InitializeDecryptionMaterialsInput( - algorithm_suite_id=aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.dafny_to_smithy.aws_cryptography_materialproviders_AlgorithmSuiteId( + return aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.models.InitializeDecryptionMaterialsInput( + algorithm_suite_id=aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.dafny_to_smithy.aws_cryptography_materialproviders_AlgorithmSuiteId( dafny_input.algorithmSuiteId ), encryption_context={ @@ -1643,11 +1643,11 @@ def aws_cryptography_materialproviders_InitializeDecryptionMaterialsInput(dafny_ def aws_cryptography_materialproviders_ValidEncryptionMaterialsTransitionInput( dafny_input, ): - return aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.models.ValidEncryptionMaterialsTransitionInput( - start=aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.dafny_to_smithy.aws_cryptography_materialproviders_EncryptionMaterials( + return aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.models.ValidEncryptionMaterialsTransitionInput( + start=aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.dafny_to_smithy.aws_cryptography_materialproviders_EncryptionMaterials( dafny_input.start ), - stop=aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.dafny_to_smithy.aws_cryptography_materialproviders_EncryptionMaterials( + stop=aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.dafny_to_smithy.aws_cryptography_materialproviders_EncryptionMaterials( dafny_input.stop ), ) @@ -1656,11 +1656,11 @@ def aws_cryptography_materialproviders_ValidEncryptionMaterialsTransitionInput( def aws_cryptography_materialproviders_ValidDecryptionMaterialsTransitionInput( dafny_input, ): - return aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.models.ValidDecryptionMaterialsTransitionInput( - start=aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.dafny_to_smithy.aws_cryptography_materialproviders_DecryptionMaterials( + return aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.models.ValidDecryptionMaterialsTransitionInput( + start=aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.dafny_to_smithy.aws_cryptography_materialproviders_DecryptionMaterials( dafny_input.start ), - stop=aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.dafny_to_smithy.aws_cryptography_materialproviders_DecryptionMaterials( + stop=aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.dafny_to_smithy.aws_cryptography_materialproviders_DecryptionMaterials( dafny_input.stop ), ) @@ -1673,11 +1673,11 @@ def aws_cryptography_materialproviders_GetAlgorithmSuiteInfoInput(dafny_input): def aws_cryptography_materialproviders_ValidateCommitmentPolicyOnEncryptInput( dafny_input, ): - return aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.models.ValidateCommitmentPolicyOnEncryptInput( - algorithm=aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.dafny_to_smithy.aws_cryptography_materialproviders_AlgorithmSuiteId( + return aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.models.ValidateCommitmentPolicyOnEncryptInput( + algorithm=aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.dafny_to_smithy.aws_cryptography_materialproviders_AlgorithmSuiteId( dafny_input.algorithm ), - commitment_policy=aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.dafny_to_smithy.aws_cryptography_materialproviders_CommitmentPolicy( + commitment_policy=aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.dafny_to_smithy.aws_cryptography_materialproviders_CommitmentPolicy( dafny_input.commitmentPolicy ), ) @@ -1686,18 +1686,18 @@ def aws_cryptography_materialproviders_ValidateCommitmentPolicyOnEncryptInput( def aws_cryptography_materialproviders_ValidateCommitmentPolicyOnDecryptInput( dafny_input, ): - return aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.models.ValidateCommitmentPolicyOnDecryptInput( - algorithm=aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.dafny_to_smithy.aws_cryptography_materialproviders_AlgorithmSuiteId( + return aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.models.ValidateCommitmentPolicyOnDecryptInput( + algorithm=aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.dafny_to_smithy.aws_cryptography_materialproviders_AlgorithmSuiteId( dafny_input.algorithm ), - commitment_policy=aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.dafny_to_smithy.aws_cryptography_materialproviders_CommitmentPolicy( + commitment_policy=aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.dafny_to_smithy.aws_cryptography_materialproviders_CommitmentPolicy( dafny_input.commitmentPolicy ), ) def aws_cryptography_materialproviders_CreateKeyringOutput(dafny_input): - return aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.dafny_to_smithy.aws_cryptography_materialproviders_KeyringReference( + return aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.dafny_to_smithy.aws_cryptography_materialproviders_KeyringReference( dafny_input ) @@ -1705,7 +1705,7 @@ def aws_cryptography_materialproviders_CreateKeyringOutput(dafny_input): def aws_cryptography_materialproviders_CreateCryptographicMaterialsManagerOutput( dafny_input, ): - return aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.dafny_to_smithy.aws_cryptography_materialproviders_CryptographicMaterialsManagerReference( + return aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.dafny_to_smithy.aws_cryptography_materialproviders_CryptographicMaterialsManagerReference( dafny_input ) @@ -1713,7 +1713,7 @@ def aws_cryptography_materialproviders_CreateCryptographicMaterialsManagerOutput def aws_cryptography_materialproviders_CreateRequiredEncryptionContextCMMOutput( dafny_input, ): - return aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.dafny_to_smithy.aws_cryptography_materialproviders_CryptographicMaterialsManagerReference( + return aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.dafny_to_smithy.aws_cryptography_materialproviders_CryptographicMaterialsManagerReference( dafny_input ) @@ -1721,21 +1721,21 @@ def aws_cryptography_materialproviders_CreateRequiredEncryptionContextCMMOutput( def aws_cryptography_materialproviders_CreateCryptographicMaterialsCacheOutput( dafny_input, ): - return aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.dafny_to_smithy.aws_cryptography_materialproviders_CryptographicMaterialsCacheReference( + return aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.dafny_to_smithy.aws_cryptography_materialproviders_CryptographicMaterialsCacheReference( dafny_input ) def aws_cryptography_materialproviders_CreateDefaultClientSupplierOutput(dafny_input): - return aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.dafny_to_smithy.aws_cryptography_materialproviders_ClientSupplierReference( + return aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.dafny_to_smithy.aws_cryptography_materialproviders_ClientSupplierReference( dafny_input ) def aws_cryptography_materialproviders_MaterialProvidersConfig(dafny_input): # Deferred import of .config to avoid circular dependency - import aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.config + import aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.config return ( - aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.config.MaterialProvidersConfig() + aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.config.MaterialProvidersConfig() ) diff --git a/AwsCryptographicMaterialProviders/runtimes/python/src/aws_cryptographic_materialproviders/smithygenerated/aws_cryptography_materialproviders/deserialize.py b/AwsCryptographicMaterialProviders/runtimes/python/src/aws_cryptographic_material_providers/smithygenerated/aws_cryptography_materialproviders/deserialize.py similarity index 70% rename from AwsCryptographicMaterialProviders/runtimes/python/src/aws_cryptographic_materialproviders/smithygenerated/aws_cryptography_materialproviders/deserialize.py rename to AwsCryptographicMaterialProviders/runtimes/python/src/aws_cryptographic_material_providers/smithygenerated/aws_cryptography_materialproviders/deserialize.py index c7cefc354..a2953d32e 100644 --- a/AwsCryptographicMaterialProviders/runtimes/python/src/aws_cryptographic_materialproviders/smithygenerated/aws_cryptography_materialproviders/deserialize.py +++ b/AwsCryptographicMaterialProviders/runtimes/python/src/aws_cryptographic_material_providers/smithygenerated/aws_cryptography_materialproviders/deserialize.py @@ -3,7 +3,7 @@ # Do not modify this file. This file is machine generated, and any changes to it will be overwritten. import _dafny -from aws_cryptographic_materialproviders.internaldafny.generated.AwsCryptographyMaterialProvidersTypes import ( +from aws_cryptographic_material_providers.internaldafny.generated.AwsCryptographyMaterialProvidersTypes import ( DecryptionMaterials_DecryptionMaterials as DafnyDecryptionMaterials, EncryptionMaterials_EncryptionMaterials as DafnyEncryptionMaterials, Error, @@ -18,8 +18,8 @@ Error_InvalidEncryptionMaterials, Error_InvalidEncryptionMaterialsTransition, ) -import aws_cryptographic_materialproviders.internaldafny.generated.module_ -import aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.dafny_to_smithy +import aws_cryptographic_material_providers.internaldafny.generated.module_ +import aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.dafny_to_smithy from typing import Any from .dafny_protocol import DafnyResponse @@ -62,7 +62,7 @@ def _deserialize_create_aws_kms_keyring(input: DafnyResponse, config: Config): if input.IsFailure(): return _deserialize_error(input.error) - return aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.dafny_to_smithy.aws_cryptography_materialproviders_CreateKeyringOutput( + return aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.dafny_to_smithy.aws_cryptography_materialproviders_CreateKeyringOutput( input.value ) @@ -71,7 +71,7 @@ def _deserialize_create_aws_kms_discovery_keyring(input: DafnyResponse, config: if input.IsFailure(): return _deserialize_error(input.error) - return aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.dafny_to_smithy.aws_cryptography_materialproviders_CreateKeyringOutput( + return aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.dafny_to_smithy.aws_cryptography_materialproviders_CreateKeyringOutput( input.value ) @@ -80,7 +80,7 @@ def _deserialize_create_aws_kms_multi_keyring(input: DafnyResponse, config: Conf if input.IsFailure(): return _deserialize_error(input.error) - return aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.dafny_to_smithy.aws_cryptography_materialproviders_CreateKeyringOutput( + return aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.dafny_to_smithy.aws_cryptography_materialproviders_CreateKeyringOutput( input.value ) @@ -91,7 +91,7 @@ def _deserialize_create_aws_kms_discovery_multi_keyring( if input.IsFailure(): return _deserialize_error(input.error) - return aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.dafny_to_smithy.aws_cryptography_materialproviders_CreateKeyringOutput( + return aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.dafny_to_smithy.aws_cryptography_materialproviders_CreateKeyringOutput( input.value ) @@ -100,7 +100,7 @@ def _deserialize_create_aws_kms_mrk_keyring(input: DafnyResponse, config: Config if input.IsFailure(): return _deserialize_error(input.error) - return aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.dafny_to_smithy.aws_cryptography_materialproviders_CreateKeyringOutput( + return aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.dafny_to_smithy.aws_cryptography_materialproviders_CreateKeyringOutput( input.value ) @@ -109,7 +109,7 @@ def _deserialize_create_aws_kms_mrk_multi_keyring(input: DafnyResponse, config: if input.IsFailure(): return _deserialize_error(input.error) - return aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.dafny_to_smithy.aws_cryptography_materialproviders_CreateKeyringOutput( + return aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.dafny_to_smithy.aws_cryptography_materialproviders_CreateKeyringOutput( input.value ) @@ -120,7 +120,7 @@ def _deserialize_create_aws_kms_mrk_discovery_keyring( if input.IsFailure(): return _deserialize_error(input.error) - return aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.dafny_to_smithy.aws_cryptography_materialproviders_CreateKeyringOutput( + return aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.dafny_to_smithy.aws_cryptography_materialproviders_CreateKeyringOutput( input.value ) @@ -131,7 +131,7 @@ def _deserialize_create_aws_kms_mrk_discovery_multi_keyring( if input.IsFailure(): return _deserialize_error(input.error) - return aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.dafny_to_smithy.aws_cryptography_materialproviders_CreateKeyringOutput( + return aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.dafny_to_smithy.aws_cryptography_materialproviders_CreateKeyringOutput( input.value ) @@ -142,7 +142,7 @@ def _deserialize_create_aws_kms_hierarchical_keyring( if input.IsFailure(): return _deserialize_error(input.error) - return aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.dafny_to_smithy.aws_cryptography_materialproviders_CreateKeyringOutput( + return aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.dafny_to_smithy.aws_cryptography_materialproviders_CreateKeyringOutput( input.value ) @@ -151,7 +151,7 @@ def _deserialize_create_aws_kms_rsa_keyring(input: DafnyResponse, config: Config if input.IsFailure(): return _deserialize_error(input.error) - return aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.dafny_to_smithy.aws_cryptography_materialproviders_CreateKeyringOutput( + return aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.dafny_to_smithy.aws_cryptography_materialproviders_CreateKeyringOutput( input.value ) @@ -160,7 +160,7 @@ def _deserialize_create_aws_kms_ecdh_keyring(input: DafnyResponse, config: Confi if input.IsFailure(): return _deserialize_error(input.error) - return aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.dafny_to_smithy.aws_cryptography_materialproviders_CreateKeyringOutput( + return aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.dafny_to_smithy.aws_cryptography_materialproviders_CreateKeyringOutput( input.value ) @@ -169,7 +169,7 @@ def _deserialize_create_multi_keyring(input: DafnyResponse, config: Config): if input.IsFailure(): return _deserialize_error(input.error) - return aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.dafny_to_smithy.aws_cryptography_materialproviders_CreateKeyringOutput( + return aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.dafny_to_smithy.aws_cryptography_materialproviders_CreateKeyringOutput( input.value ) @@ -178,7 +178,7 @@ def _deserialize_create_raw_aes_keyring(input: DafnyResponse, config: Config): if input.IsFailure(): return _deserialize_error(input.error) - return aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.dafny_to_smithy.aws_cryptography_materialproviders_CreateKeyringOutput( + return aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.dafny_to_smithy.aws_cryptography_materialproviders_CreateKeyringOutput( input.value ) @@ -187,7 +187,7 @@ def _deserialize_create_raw_rsa_keyring(input: DafnyResponse, config: Config): if input.IsFailure(): return _deserialize_error(input.error) - return aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.dafny_to_smithy.aws_cryptography_materialproviders_CreateKeyringOutput( + return aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.dafny_to_smithy.aws_cryptography_materialproviders_CreateKeyringOutput( input.value ) @@ -196,7 +196,7 @@ def _deserialize_create_raw_ecdh_keyring(input: DafnyResponse, config: Config): if input.IsFailure(): return _deserialize_error(input.error) - return aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.dafny_to_smithy.aws_cryptography_materialproviders_CreateKeyringOutput( + return aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.dafny_to_smithy.aws_cryptography_materialproviders_CreateKeyringOutput( input.value ) @@ -207,7 +207,7 @@ def _deserialize_create_default_cryptographic_materials_manager( if input.IsFailure(): return _deserialize_error(input.error) - return aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.dafny_to_smithy.aws_cryptography_materialproviders_CreateCryptographicMaterialsManagerOutput( + return aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.dafny_to_smithy.aws_cryptography_materialproviders_CreateCryptographicMaterialsManagerOutput( input.value ) @@ -218,7 +218,7 @@ def _deserialize_create_required_encryption_context_cmm( if input.IsFailure(): return _deserialize_error(input.error) - return aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.dafny_to_smithy.aws_cryptography_materialproviders_CreateRequiredEncryptionContextCMMOutput( + return aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.dafny_to_smithy.aws_cryptography_materialproviders_CreateRequiredEncryptionContextCMMOutput( input.value ) @@ -229,7 +229,7 @@ def _deserialize_create_cryptographic_materials_cache( if input.IsFailure(): return _deserialize_error(input.error) - return aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.dafny_to_smithy.aws_cryptography_materialproviders_CreateCryptographicMaterialsCacheOutput( + return aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.dafny_to_smithy.aws_cryptography_materialproviders_CreateCryptographicMaterialsCacheOutput( input.value ) @@ -238,7 +238,7 @@ def _deserialize_create_default_client_supplier(input: DafnyResponse, config: Co if input.IsFailure(): return _deserialize_error(input.error) - return aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.dafny_to_smithy.aws_cryptography_materialproviders_CreateDefaultClientSupplierOutput( + return aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.dafny_to_smithy.aws_cryptography_materialproviders_CreateDefaultClientSupplierOutput( input.value ) @@ -247,7 +247,7 @@ def _deserialize_initialize_encryption_materials(input: DafnyResponse, config: C if input.IsFailure(): return _deserialize_error(input.error) - return aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.dafny_to_smithy.aws_cryptography_materialproviders_EncryptionMaterials( + return aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.dafny_to_smithy.aws_cryptography_materialproviders_EncryptionMaterials( input.value ) @@ -256,7 +256,7 @@ def _deserialize_initialize_decryption_materials(input: DafnyResponse, config: C if input.IsFailure(): return _deserialize_error(input.error) - return aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.dafny_to_smithy.aws_cryptography_materialproviders_DecryptionMaterials( + return aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.dafny_to_smithy.aws_cryptography_materialproviders_DecryptionMaterials( input.value ) @@ -293,7 +293,7 @@ def _deserialize_get_algorithm_suite_info(input: DafnyResponse, config: Config): if input.IsFailure(): return _deserialize_error(input.error) - return aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.dafny_to_smithy.aws_cryptography_materialproviders_AlgorithmSuiteInfo( + return aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.dafny_to_smithy.aws_cryptography_materialproviders_AlgorithmSuiteInfo( input.value ) diff --git a/AwsCryptographicMaterialProviders/runtimes/python/src/aws_cryptographic_materialproviders/smithygenerated/aws_cryptography_materialproviders/errors.py b/AwsCryptographicMaterialProviders/runtimes/python/src/aws_cryptographic_material_providers/smithygenerated/aws_cryptography_materialproviders/errors.py similarity index 84% rename from AwsCryptographicMaterialProviders/runtimes/python/src/aws_cryptographic_materialproviders/smithygenerated/aws_cryptography_materialproviders/errors.py rename to AwsCryptographicMaterialProviders/runtimes/python/src/aws_cryptographic_material_providers/smithygenerated/aws_cryptography_materialproviders/errors.py index 06cb837a5..a87c7d6ae 100644 --- a/AwsCryptographicMaterialProviders/runtimes/python/src/aws_cryptographic_materialproviders/smithygenerated/aws_cryptography_materialproviders/errors.py +++ b/AwsCryptographicMaterialProviders/runtimes/python/src/aws_cryptographic_material_providers/smithygenerated/aws_cryptography_materialproviders/errors.py @@ -3,12 +3,12 @@ # Do not modify this file. This file is machine generated, and any changes to it will be overwritten. import _dafny -import aws_cryptographic_materialproviders.internaldafny.generated -import aws_cryptographic_materialproviders.internaldafny.generated.AwsCryptographyMaterialProvidersTypes -from aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_keystore.errors import ( +import aws_cryptographic_material_providers.internaldafny.generated +import aws_cryptographic_material_providers.internaldafny.generated.AwsCryptographyMaterialProvidersTypes +from aws_cryptographic_material_providers.smithygenerated.aws_cryptography_keystore.errors import ( _smithy_error_to_dafny_error as aws_cryptography_keystore_smithy_error_to_dafny_error, ) -import aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.errors +import aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.errors from aws_cryptography_internal_dynamodb.smithygenerated.com_amazonaws_dynamodb.shim import ( _sdk_error_to_dafny_error as com_amazonaws_dynamodb_sdk_error_to_dafny_error, ) @@ -708,106 +708,106 @@ def _smithy_error_to_dafny_error(e: ServiceError): Dafny error.""" if isinstance( e, - aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.errors.AwsCryptographicMaterialProvidersException, + aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.errors.AwsCryptographicMaterialProvidersException, ): - return aws_cryptographic_materialproviders.internaldafny.generated.AwsCryptographyMaterialProvidersTypes.Error_AwsCryptographicMaterialProvidersException( + return aws_cryptographic_material_providers.internaldafny.generated.AwsCryptographyMaterialProvidersTypes.Error_AwsCryptographicMaterialProvidersException( message=_dafny.Seq(e.message) ) if isinstance( e, - aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.errors.EntryAlreadyExists, + aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.errors.EntryAlreadyExists, ): - return aws_cryptographic_materialproviders.internaldafny.generated.AwsCryptographyMaterialProvidersTypes.Error_EntryAlreadyExists( + return aws_cryptographic_material_providers.internaldafny.generated.AwsCryptographyMaterialProvidersTypes.Error_EntryAlreadyExists( message=_dafny.Seq(e.message) ) if isinstance( e, - aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.errors.EntryDoesNotExist, + aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.errors.EntryDoesNotExist, ): - return aws_cryptographic_materialproviders.internaldafny.generated.AwsCryptographyMaterialProvidersTypes.Error_EntryDoesNotExist( + return aws_cryptographic_material_providers.internaldafny.generated.AwsCryptographyMaterialProvidersTypes.Error_EntryDoesNotExist( message=_dafny.Seq(e.message) ) if isinstance( e, - aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.errors.InvalidAlgorithmSuiteInfo, + aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.errors.InvalidAlgorithmSuiteInfo, ): - return aws_cryptographic_materialproviders.internaldafny.generated.AwsCryptographyMaterialProvidersTypes.Error_InvalidAlgorithmSuiteInfo( + return aws_cryptographic_material_providers.internaldafny.generated.AwsCryptographyMaterialProvidersTypes.Error_InvalidAlgorithmSuiteInfo( message=_dafny.Seq(e.message) ) if isinstance( e, - aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.errors.InvalidAlgorithmSuiteInfoOnDecrypt, + aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.errors.InvalidAlgorithmSuiteInfoOnDecrypt, ): - return aws_cryptographic_materialproviders.internaldafny.generated.AwsCryptographyMaterialProvidersTypes.Error_InvalidAlgorithmSuiteInfoOnDecrypt( + return aws_cryptographic_material_providers.internaldafny.generated.AwsCryptographyMaterialProvidersTypes.Error_InvalidAlgorithmSuiteInfoOnDecrypt( message=_dafny.Seq(e.message) ) if isinstance( e, - aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.errors.InvalidAlgorithmSuiteInfoOnEncrypt, + aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.errors.InvalidAlgorithmSuiteInfoOnEncrypt, ): - return aws_cryptographic_materialproviders.internaldafny.generated.AwsCryptographyMaterialProvidersTypes.Error_InvalidAlgorithmSuiteInfoOnEncrypt( + return aws_cryptographic_material_providers.internaldafny.generated.AwsCryptographyMaterialProvidersTypes.Error_InvalidAlgorithmSuiteInfoOnEncrypt( message=_dafny.Seq(e.message) ) if isinstance( e, - aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.errors.InvalidDecryptionMaterials, + aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.errors.InvalidDecryptionMaterials, ): - return aws_cryptographic_materialproviders.internaldafny.generated.AwsCryptographyMaterialProvidersTypes.Error_InvalidDecryptionMaterials( + return aws_cryptographic_material_providers.internaldafny.generated.AwsCryptographyMaterialProvidersTypes.Error_InvalidDecryptionMaterials( message=_dafny.Seq(e.message) ) if isinstance( e, - aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.errors.InvalidDecryptionMaterialsTransition, + aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.errors.InvalidDecryptionMaterialsTransition, ): - return aws_cryptographic_materialproviders.internaldafny.generated.AwsCryptographyMaterialProvidersTypes.Error_InvalidDecryptionMaterialsTransition( + return aws_cryptographic_material_providers.internaldafny.generated.AwsCryptographyMaterialProvidersTypes.Error_InvalidDecryptionMaterialsTransition( message=_dafny.Seq(e.message) ) if isinstance( e, - aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.errors.InvalidEncryptionMaterials, + aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.errors.InvalidEncryptionMaterials, ): - return aws_cryptographic_materialproviders.internaldafny.generated.AwsCryptographyMaterialProvidersTypes.Error_InvalidEncryptionMaterials( + return aws_cryptographic_material_providers.internaldafny.generated.AwsCryptographyMaterialProvidersTypes.Error_InvalidEncryptionMaterials( message=_dafny.Seq(e.message) ) if isinstance( e, - aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.errors.InvalidEncryptionMaterialsTransition, + aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.errors.InvalidEncryptionMaterialsTransition, ): - return aws_cryptographic_materialproviders.internaldafny.generated.AwsCryptographyMaterialProvidersTypes.Error_InvalidEncryptionMaterialsTransition( + return aws_cryptographic_material_providers.internaldafny.generated.AwsCryptographyMaterialProvidersTypes.Error_InvalidEncryptionMaterialsTransition( message=_dafny.Seq(e.message) ) if isinstance(e, AwsCryptographicPrimitives): - return aws_cryptographic_materialproviders.internaldafny.generated.AwsCryptographyMaterialProvidersTypes.Error_AwsCryptographyPrimitives( + return aws_cryptographic_material_providers.internaldafny.generated.AwsCryptographyMaterialProvidersTypes.Error_AwsCryptographyPrimitives( aws_cryptography_primitives_smithy_error_to_dafny_error(e.message) ) if isinstance(e, ComAmazonawsDynamodb): - return aws_cryptographic_materialproviders.internaldafny.generated.AwsCryptographyMaterialProvidersTypes.Error_ComAmazonawsDynamodb( + return aws_cryptographic_material_providers.internaldafny.generated.AwsCryptographyMaterialProvidersTypes.Error_ComAmazonawsDynamodb( com_amazonaws_dynamodb_sdk_error_to_dafny_error(e.message) ) if isinstance(e, ComAmazonawsKms): - return aws_cryptographic_materialproviders.internaldafny.generated.AwsCryptographyMaterialProvidersTypes.Error_ComAmazonawsKms( + return aws_cryptographic_material_providers.internaldafny.generated.AwsCryptographyMaterialProvidersTypes.Error_ComAmazonawsKms( com_amazonaws_kms_sdk_error_to_dafny_error(e.message) ) if isinstance(e, KeyStore): - return aws_cryptographic_materialproviders.internaldafny.generated.AwsCryptographyMaterialProvidersTypes.Error_AwsCryptographyKeyStore( + return aws_cryptographic_material_providers.internaldafny.generated.AwsCryptographyMaterialProvidersTypes.Error_AwsCryptographyKeyStore( aws_cryptography_keystore_smithy_error_to_dafny_error(e.message) ) if isinstance(e, CollectionOfErrors): - return aws_cryptographic_materialproviders.internaldafny.generated.AwsCryptographyMaterialProvidersTypes.Error_CollectionOfErrors( + return aws_cryptographic_material_providers.internaldafny.generated.AwsCryptographyMaterialProvidersTypes.Error_CollectionOfErrors( message=_dafny.Seq(e.message), list=_dafny.Seq( _smithy_error_to_dafny_error(native_err) for native_err in e.list @@ -815,12 +815,12 @@ def _smithy_error_to_dafny_error(e: ServiceError): ) if isinstance(e, OpaqueError): - return aws_cryptographic_materialproviders.internaldafny.generated.AwsCryptographyMaterialProvidersTypes.Error_Opaque( + return aws_cryptographic_material_providers.internaldafny.generated.AwsCryptographyMaterialProvidersTypes.Error_Opaque( obj=e.obj, alt__text=e.alt_text ) else: - return aws_cryptographic_materialproviders.internaldafny.generated.AwsCryptographyMaterialProvidersTypes.Error_Opaque( + return aws_cryptographic_material_providers.internaldafny.generated.AwsCryptographyMaterialProvidersTypes.Error_Opaque( obj=e, alt__text=_dafny.Seq( "".join( diff --git a/AwsCryptographicMaterialProviders/runtimes/python/src/aws_cryptographic_materialproviders/smithygenerated/aws_cryptography_materialproviders/models.py b/AwsCryptographicMaterialProviders/runtimes/python/src/aws_cryptographic_material_providers/smithygenerated/aws_cryptography_materialproviders/models.py similarity index 97% rename from AwsCryptographicMaterialProviders/runtimes/python/src/aws_cryptographic_materialproviders/smithygenerated/aws_cryptography_materialproviders/models.py rename to AwsCryptographicMaterialProviders/runtimes/python/src/aws_cryptographic_material_providers/smithygenerated/aws_cryptography_materialproviders/models.py index f63e11bf3..12b8bf9ea 100644 --- a/AwsCryptographicMaterialProviders/runtimes/python/src/aws_cryptographic_materialproviders/smithygenerated/aws_cryptography_materialproviders/models.py +++ b/AwsCryptographicMaterialProviders/runtimes/python/src/aws_cryptographic_material_providers/smithygenerated/aws_cryptography_materialproviders/models.py @@ -2,8 +2,8 @@ # SPDX-License-Identifier: Apache-2.0 # Do not modify this file. This file is machine generated, and any changes to it will be overwritten. -import aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_keystore.client -import aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.references +import aws_cryptographic_material_providers.smithygenerated.aws_cryptography_keystore.client +import aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.references from typing import Any, Dict, List, Optional, Union from aws_cryptography_primitives.smithygenerated.aws_cryptography_primitives.models import ( @@ -1263,7 +1263,7 @@ class CreateAwsKmsDiscoveryMultiKeyringInput: regions: list[str] discovery_filter: Optional[DiscoveryFilter] client_supplier: Optional[ - "aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.references.ClientSupplier" + "aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.references.ClientSupplier" ] grant_tokens: Optional[list[str]] @@ -1273,7 +1273,7 @@ def __init__( regions: list[str], discovery_filter: Optional[DiscoveryFilter] = None, client_supplier: Optional[ - "aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.references.ClientSupplier" + "aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.references.ClientSupplier" ] = None, grant_tokens: Optional[list[str]] = None, ): @@ -1319,7 +1319,7 @@ def as_dict(self) -> Dict[str, Any]: def from_dict(d: Dict[str, Any]) -> "CreateAwsKmsDiscoveryMultiKeyringInput": """Creates a CreateAwsKmsDiscoveryMultiKeyringInput from a dictionary.""" - from aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.references import ( + from aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.references import ( ClientSupplier, ) @@ -2215,7 +2215,7 @@ class CacheTypeShared: def __init__( self, - value: "aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.references.CryptographicMaterialsCache", + value: "aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.references.CryptographicMaterialsCache", ): self.value = value @@ -2224,7 +2224,7 @@ def as_dict(self) -> Dict[str, Any]: @staticmethod def from_dict(d: Dict[str, Any]) -> "CacheTypeShared": - from aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.references import ( + from aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.references import ( CryptographicMaterialsCache, ) @@ -2303,9 +2303,9 @@ def _cache_type_from_dict(d: Dict[str, Any]) -> CacheType: class CreateAwsKmsHierarchicalKeyringInput: branch_key_id: Optional[str] branch_key_id_supplier: Optional[ - "aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.references.BranchKeyIdSupplier" + "aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.references.BranchKeyIdSupplier" ] - key_store: "aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_keystore.client.KeyStore" + key_store: "aws_cryptographic_material_providers.smithygenerated.aws_cryptography_keystore.client.KeyStore" ttl_seconds: int cache: Optional[CacheType] partition_id: Optional[str] @@ -2313,10 +2313,10 @@ class CreateAwsKmsHierarchicalKeyringInput: def __init__( self, *, - key_store: "aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_keystore.client.KeyStore", + key_store: "aws_cryptographic_material_providers.smithygenerated.aws_cryptography_keystore.client.KeyStore", branch_key_id: Optional[str] = None, branch_key_id_supplier: Optional[ - "aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.references.BranchKeyIdSupplier" + "aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.references.BranchKeyIdSupplier" ] = None, ttl_seconds: int = 0, cache: Optional[CacheType] = None, @@ -2391,10 +2391,10 @@ def as_dict(self) -> Dict[str, Any]: @staticmethod def from_dict(d: Dict[str, Any]) -> "CreateAwsKmsHierarchicalKeyringInput": """Creates a CreateAwsKmsHierarchicalKeyringInput from a dictionary.""" - from aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.references import ( + from aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.references import ( BranchKeyIdSupplier, ) - from aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_keystore.client import ( + from aws_cryptographic_material_providers.smithygenerated.aws_cryptography_keystore.client import ( KeyStore, ) @@ -2628,7 +2628,7 @@ class CreateAwsKmsMrkDiscoveryMultiKeyringInput: regions: list[str] discovery_filter: Optional[DiscoveryFilter] client_supplier: Optional[ - "aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.references.ClientSupplier" + "aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.references.ClientSupplier" ] grant_tokens: Optional[list[str]] @@ -2638,7 +2638,7 @@ def __init__( regions: list[str], discovery_filter: Optional[DiscoveryFilter] = None, client_supplier: Optional[ - "aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.references.ClientSupplier" + "aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.references.ClientSupplier" ] = None, grant_tokens: Optional[list[str]] = None, ): @@ -2684,7 +2684,7 @@ def as_dict(self) -> Dict[str, Any]: def from_dict(d: Dict[str, Any]) -> "CreateAwsKmsMrkDiscoveryMultiKeyringInput": """Creates a CreateAwsKmsMrkDiscoveryMultiKeyringInput from a dictionary.""" - from aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.references import ( + from aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.references import ( ClientSupplier, ) @@ -2812,7 +2812,7 @@ class CreateAwsKmsMrkMultiKeyringInput: generator: Optional[str] kms_key_ids: Optional[list[str]] client_supplier: Optional[ - "aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.references.ClientSupplier" + "aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.references.ClientSupplier" ] grant_tokens: Optional[list[str]] @@ -2822,7 +2822,7 @@ def __init__( generator: Optional[str] = None, kms_key_ids: Optional[list[str]] = None, client_supplier: Optional[ - "aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.references.ClientSupplier" + "aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.references.ClientSupplier" ] = None, grant_tokens: Optional[list[str]] = None, ): @@ -2870,7 +2870,7 @@ def as_dict(self) -> Dict[str, Any]: @staticmethod def from_dict(d: Dict[str, Any]) -> "CreateAwsKmsMrkMultiKeyringInput": """Creates a CreateAwsKmsMrkMultiKeyringInput from a dictionary.""" - from aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.references import ( + from aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.references import ( ClientSupplier, ) @@ -2922,7 +2922,7 @@ class CreateAwsKmsMultiKeyringInput: generator: Optional[str] kms_key_ids: Optional[list[str]] client_supplier: Optional[ - "aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.references.ClientSupplier" + "aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.references.ClientSupplier" ] grant_tokens: Optional[list[str]] @@ -2932,7 +2932,7 @@ def __init__( generator: Optional[str] = None, kms_key_ids: Optional[list[str]] = None, client_supplier: Optional[ - "aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.references.ClientSupplier" + "aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.references.ClientSupplier" ] = None, grant_tokens: Optional[list[str]] = None, ): @@ -2981,7 +2981,7 @@ def as_dict(self) -> Dict[str, Any]: @staticmethod def from_dict(d: Dict[str, Any]) -> "CreateAwsKmsMultiKeyringInput": """Creates a CreateAwsKmsMultiKeyringInput from a dictionary.""" - from aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.references import ( + from aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.references import ( ClientSupplier, ) @@ -3202,12 +3202,12 @@ def __eq__(self, other: Any) -> bool: class CreateDefaultCryptographicMaterialsManagerInput: - keyring: "aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.references.Keyring" + keyring: "aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.references.Keyring" def __init__( self, *, - keyring: "aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.references.Keyring", + keyring: "aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.references.Keyring", ): """Inputs for creating a Default Cryptographic Materials Manager. @@ -3229,7 +3229,7 @@ def from_dict( ) -> "CreateDefaultCryptographicMaterialsManagerInput": """Creates a CreateDefaultCryptographicMaterialsManagerInput from a dictionary.""" - from aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.references import ( + from aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.references import ( Keyring, ) @@ -3257,20 +3257,20 @@ def __eq__(self, other: Any) -> bool: class CreateMultiKeyringInput: generator: Optional[ - "aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.references.Keyring" + "aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.references.Keyring" ] child_keyrings: list[ - "aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.references.Keyring" + "aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.references.Keyring" ] def __init__( self, *, child_keyrings: list[ - "aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.references.Keyring" + "aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.references.Keyring" ], generator: Optional[ - "aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.references.Keyring" + "aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.references.Keyring" ] = None, ): """Inputs for creating a Multi-Keyring. @@ -3300,7 +3300,7 @@ def as_dict(self) -> Dict[str, Any]: @staticmethod def from_dict(d: Dict[str, Any]) -> "CreateMultiKeyringInput": """Creates a CreateMultiKeyringInput from a dictionary.""" - from aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.references import ( + from aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.references import ( Keyring, ) @@ -3901,10 +3901,10 @@ def __eq__(self, other: Any) -> bool: class CreateRequiredEncryptionContextCMMInput: underlying_cmm: Optional[ - "aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.references.CryptographicMaterialsManager" + "aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.references.CryptographicMaterialsManager" ] keyring: Optional[ - "aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.references.Keyring" + "aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.references.Keyring" ] required_encryption_context_keys: list[str] @@ -3913,10 +3913,10 @@ def __init__( *, required_encryption_context_keys: list[str], underlying_cmm: Optional[ - "aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.references.CryptographicMaterialsManager" + "aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.references.CryptographicMaterialsManager" ] = None, keyring: Optional[ - "aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.references.Keyring" + "aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.references.Keyring" ] = None, ): """Inputs for creating an Required Encryption Context Cryptographic @@ -3962,10 +3962,10 @@ def as_dict(self) -> Dict[str, Any]: def from_dict(d: Dict[str, Any]) -> "CreateRequiredEncryptionContextCMMInput": """Creates a CreateRequiredEncryptionContextCMMInput from a dictionary.""" - from aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.references import ( + from aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.references import ( CryptographicMaterialsManager, ) - from aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.references import ( + from aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.references import ( Keyring, ) diff --git a/AwsCryptographicMaterialProviders/runtimes/python/src/aws_cryptographic_materialproviders/smithygenerated/aws_cryptography_materialproviders/plugin.py b/AwsCryptographicMaterialProviders/runtimes/python/src/aws_cryptographic_material_providers/smithygenerated/aws_cryptography_materialproviders/plugin.py similarity index 93% rename from AwsCryptographicMaterialProviders/runtimes/python/src/aws_cryptographic_materialproviders/smithygenerated/aws_cryptography_materialproviders/plugin.py rename to AwsCryptographicMaterialProviders/runtimes/python/src/aws_cryptographic_material_providers/smithygenerated/aws_cryptography_materialproviders/plugin.py index dd523c834..6f0d25a66 100644 --- a/AwsCryptographicMaterialProviders/runtimes/python/src/aws_cryptographic_materialproviders/smithygenerated/aws_cryptography_materialproviders/plugin.py +++ b/AwsCryptographicMaterialProviders/runtimes/python/src/aws_cryptographic_material_providers/smithygenerated/aws_cryptography_materialproviders/plugin.py @@ -18,7 +18,7 @@ def set_config_impl(config: Config): and load our custom NoRetriesStrategy.""" config.dafnyImplInterface = DafnyImplInterface() if isinstance(config, MaterialProvidersConfig): - from aws_cryptographic_materialproviders.internaldafny.generated.MaterialProviders import ( + from aws_cryptographic_material_providers.internaldafny.generated.MaterialProviders import ( default__, ) diff --git a/AwsCryptographicMaterialProviders/runtimes/python/src/aws_cryptographic_materialproviders/smithygenerated/aws_cryptography_materialproviders/references.py b/AwsCryptographicMaterialProviders/runtimes/python/src/aws_cryptographic_material_providers/smithygenerated/aws_cryptography_materialproviders/references.py similarity index 53% rename from AwsCryptographicMaterialProviders/runtimes/python/src/aws_cryptographic_materialproviders/smithygenerated/aws_cryptography_materialproviders/references.py rename to AwsCryptographicMaterialProviders/runtimes/python/src/aws_cryptographic_material_providers/smithygenerated/aws_cryptography_materialproviders/references.py index 5470a5c4e..f95718c41 100644 --- a/AwsCryptographicMaterialProviders/runtimes/python/src/aws_cryptographic_materialproviders/smithygenerated/aws_cryptography_materialproviders/references.py +++ b/AwsCryptographicMaterialProviders/runtimes/python/src/aws_cryptographic_material_providers/smithygenerated/aws_cryptography_materialproviders/references.py @@ -3,8 +3,8 @@ # Do not modify this file. This file is machine generated, and any changes to it will be overwritten. import abc -import aws_cryptographic_materialproviders.internaldafny.generated.AwsCryptographyMaterialProvidersTypes -from aws_cryptographic_materialproviders.internaldafny.generated.AwsCryptographyMaterialProvidersTypes import ( +import aws_cryptographic_material_providers.internaldafny.generated.AwsCryptographyMaterialProvidersTypes +from aws_cryptographic_material_providers.internaldafny.generated.AwsCryptographyMaterialProvidersTypes import ( DecryptMaterialsInput_DecryptMaterialsInput as DafnyDecryptMaterialsInput, DecryptMaterialsOutput_DecryptMaterialsOutput as DafnyDecryptMaterialsOutput, DeleteCacheEntryInput_DeleteCacheEntryInput as DafnyDeleteCacheEntryInput, @@ -22,13 +22,13 @@ PutCacheEntryInput_PutCacheEntryInput as DafnyPutCacheEntryInput, UpdateUsageMetadataInput_UpdateUsageMetadataInput as DafnyUpdateUsageMetadataInput, ) -import aws_cryptographic_materialproviders.internaldafny.generated.module_ -import aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.dafny_to_smithy -from aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.errors import ( +import aws_cryptographic_material_providers.internaldafny.generated.module_ +import aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.dafny_to_smithy +from aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.errors import ( _smithy_error_to_dafny_error, ) -import aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.models -import aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.smithy_to_dafny +import aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.models +import aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.smithy_to_dafny import botocore.client from smithy_dafny_standard_library.internaldafny.generated import Wrappers from typing import Any, Dict @@ -43,8 +43,8 @@ def __subclasshook__(cls, subclass): @abc.abstractmethod def get_branch_key_id( self, - param: "aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.models.GetBranchKeyIdInput", - ) -> "aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.models.GetBranchKeyIdOutput": + param: "aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.models.GetBranchKeyIdInput", + ) -> "aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.models.GetBranchKeyIdOutput": """Given the Encryption Context associated with this encryption or decryption, returns the branch key that should be responsible for unwrapping or wrapping the data key. @@ -65,12 +65,12 @@ def GetBranchKeyId( This method allows custom implementations of this interface to interact with generated code. """ - native_input = aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.dafny_to_smithy.aws_cryptography_materialproviders_GetBranchKeyIdInput( + native_input = aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.dafny_to_smithy.aws_cryptography_materialproviders_GetBranchKeyIdInput( dafny_input ) try: native_output = self.get_branch_key_id(native_input) - dafny_output = aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.smithy_to_dafny.aws_cryptography_materialproviders_GetBranchKeyIdOutput( + dafny_output = aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.smithy_to_dafny.aws_cryptography_materialproviders_GetBranchKeyIdOutput( native_output ) return Wrappers.Result_Success(dafny_output) @@ -82,19 +82,19 @@ def GetBranchKeyId( class BranchKeyIdSupplier(IBranchKeyIdSupplier): _impl: ( - aws_cryptographic_materialproviders.internaldafny.generated.AwsCryptographyMaterialProvidersTypes.IBranchKeyIdSupplier + aws_cryptographic_material_providers.internaldafny.generated.AwsCryptographyMaterialProvidersTypes.IBranchKeyIdSupplier ) def __init__( self, - _impl: aws_cryptographic_materialproviders.internaldafny.generated.AwsCryptographyMaterialProvidersTypes.IBranchKeyIdSupplier, + _impl: aws_cryptographic_material_providers.internaldafny.generated.AwsCryptographyMaterialProvidersTypes.IBranchKeyIdSupplier, ): self._impl = _impl def get_branch_key_id( self, - param: "aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.models.GetBranchKeyIdInput", - ) -> "aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.models.GetBranchKeyIdOutput": + param: "aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.models.GetBranchKeyIdInput", + ) -> "aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.models.GetBranchKeyIdOutput": """Given the Encryption Context associated with this encryption or decryption, returns the branch key that should be responsible for unwrapping or wrapping the data key. @@ -106,12 +106,12 @@ def get_branch_key_id( unwrapping the data key in this encryption or decryption. """ dafny_output = self._impl.GetBranchKeyId( - aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.smithy_to_dafny.aws_cryptography_materialproviders_GetBranchKeyIdInput( + aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.smithy_to_dafny.aws_cryptography_materialproviders_GetBranchKeyIdInput( param ) ) if dafny_output.IsFailure(): - from aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.deserialize import ( + from aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.deserialize import ( _deserialize_error as aws_cryptography_materialproviders_deserialize_error, ) @@ -120,7 +120,7 @@ def get_branch_key_id( ) else: - return aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.dafny_to_smithy.aws_cryptography_materialproviders_GetBranchKeyIdOutput( + return aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.dafny_to_smithy.aws_cryptography_materialproviders_GetBranchKeyIdOutput( dafny_output.value ) @@ -141,7 +141,7 @@ def __subclasshook__(cls, subclass): @abc.abstractmethod def get_client( self, - param: "aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.models.GetClientInput", + param: "aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.models.GetClientInput", ) -> "botocore.client.BaseClient": """Returns an AWS KMS Client. @@ -155,12 +155,12 @@ def GetClient(self, dafny_input: "DafnyGetClientInput") -> "DafnyGetClientOutput This method allows custom implementations of this interface to interact with generated code. """ - native_input = aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.dafny_to_smithy.aws_cryptography_materialproviders_GetClientInput( + native_input = aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.dafny_to_smithy.aws_cryptography_materialproviders_GetClientInput( dafny_input ) try: native_output = self.get_client(native_input) - dafny_output = aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.smithy_to_dafny.aws_cryptography_materialproviders_GetClientOutput( + dafny_output = aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.smithy_to_dafny.aws_cryptography_materialproviders_GetClientOutput( native_output ) return Wrappers.Result_Success(dafny_output) @@ -172,30 +172,30 @@ def GetClient(self, dafny_input: "DafnyGetClientInput") -> "DafnyGetClientOutput class ClientSupplier(IClientSupplier): _impl: ( - aws_cryptographic_materialproviders.internaldafny.generated.AwsCryptographyMaterialProvidersTypes.IClientSupplier + aws_cryptographic_material_providers.internaldafny.generated.AwsCryptographyMaterialProvidersTypes.IClientSupplier ) def __init__( self, - _impl: aws_cryptographic_materialproviders.internaldafny.generated.AwsCryptographyMaterialProvidersTypes.IClientSupplier, + _impl: aws_cryptographic_material_providers.internaldafny.generated.AwsCryptographyMaterialProvidersTypes.IClientSupplier, ): self._impl = _impl def get_client( self, - param: "aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.models.GetClientInput", + param: "aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.models.GetClientInput", ) -> "botocore.client.BaseClient": """Returns an AWS KMS Client. :param param: Inputs for getting a AWS KMS Client. """ dafny_output = self._impl.GetClient( - aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.smithy_to_dafny.aws_cryptography_materialproviders_GetClientInput( + aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.smithy_to_dafny.aws_cryptography_materialproviders_GetClientInput( param ) ) if dafny_output.IsFailure(): - from aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.deserialize import ( + from aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.deserialize import ( _deserialize_error as aws_cryptography_materialproviders_deserialize_error, ) @@ -204,7 +204,7 @@ def get_client( ) else: - return aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.dafny_to_smithy.aws_cryptography_materialproviders_GetClientOutput( + return aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.dafny_to_smithy.aws_cryptography_materialproviders_GetClientOutput( dafny_output.value ) @@ -234,29 +234,29 @@ def __subclasshook__(cls, subclass): @abc.abstractmethod def put_cache_entry( self, - param: "aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.models.PutCacheEntryInput", - ) -> "aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.models.Unit": + param: "aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.models.PutCacheEntryInput", + ) -> "aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.models.Unit": raise NotImplementedError @abc.abstractmethod def get_cache_entry( self, - param: "aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.models.GetCacheEntryInput", - ) -> "aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.models.GetCacheEntryOutput": + param: "aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.models.GetCacheEntryInput", + ) -> "aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.models.GetCacheEntryOutput": raise NotImplementedError @abc.abstractmethod def update_usage_metadata( self, - param: "aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.models.UpdateUsageMetadataInput", - ) -> "aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.models.Unit": + param: "aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.models.UpdateUsageMetadataInput", + ) -> "aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.models.Unit": raise NotImplementedError @abc.abstractmethod def delete_cache_entry( self, - param: "aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.models.DeleteCacheEntryInput", - ) -> "aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.models.Unit": + param: "aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.models.DeleteCacheEntryInput", + ) -> "aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.models.Unit": raise NotImplementedError def PutCacheEntry(self, dafny_input: "DafnyPutCacheEntryInput") -> "None": @@ -265,12 +265,12 @@ def PutCacheEntry(self, dafny_input: "DafnyPutCacheEntryInput") -> "None": This method allows custom implementations of this interface to interact with generated code. """ - native_input = aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.dafny_to_smithy.aws_cryptography_materialproviders_PutCacheEntryInput( + native_input = aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.dafny_to_smithy.aws_cryptography_materialproviders_PutCacheEntryInput( dafny_input ) try: native_output = self.put_cache_entry(native_input) - dafny_output = aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.smithy_to_dafny.smithy_api_Unit( + dafny_output = aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.smithy_to_dafny.smithy_api_Unit( native_output ) return Wrappers.Result_Success(dafny_output) @@ -286,12 +286,12 @@ def GetCacheEntry( This method allows custom implementations of this interface to interact with generated code. """ - native_input = aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.dafny_to_smithy.aws_cryptography_materialproviders_GetCacheEntryInput( + native_input = aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.dafny_to_smithy.aws_cryptography_materialproviders_GetCacheEntryInput( dafny_input ) try: native_output = self.get_cache_entry(native_input) - dafny_output = aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.smithy_to_dafny.aws_cryptography_materialproviders_GetCacheEntryOutput( + dafny_output = aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.smithy_to_dafny.aws_cryptography_materialproviders_GetCacheEntryOutput( native_output ) return Wrappers.Result_Success(dafny_output) @@ -307,12 +307,12 @@ def UpdateUsageMetadata( This method allows custom implementations of this interface to interact with generated code. """ - native_input = aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.dafny_to_smithy.aws_cryptography_materialproviders_UpdateUsageMetadataInput( + native_input = aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.dafny_to_smithy.aws_cryptography_materialproviders_UpdateUsageMetadataInput( dafny_input ) try: native_output = self.update_usage_metadata(native_input) - dafny_output = aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.smithy_to_dafny.smithy_api_Unit( + dafny_output = aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.smithy_to_dafny.smithy_api_Unit( native_output ) return Wrappers.Result_Success(dafny_output) @@ -326,12 +326,12 @@ def DeleteCacheEntry(self, dafny_input: "DafnyDeleteCacheEntryInput") -> "None": This method allows custom implementations of this interface to interact with generated code. """ - native_input = aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.dafny_to_smithy.aws_cryptography_materialproviders_DeleteCacheEntryInput( + native_input = aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.dafny_to_smithy.aws_cryptography_materialproviders_DeleteCacheEntryInput( dafny_input ) try: native_output = self.delete_cache_entry(native_input) - dafny_output = aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.smithy_to_dafny.smithy_api_Unit( + dafny_output = aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.smithy_to_dafny.smithy_api_Unit( native_output ) return Wrappers.Result_Success(dafny_output) @@ -343,26 +343,26 @@ def DeleteCacheEntry(self, dafny_input: "DafnyDeleteCacheEntryInput") -> "None": class CryptographicMaterialsCache(ICryptographicMaterialsCache): _impl: ( - aws_cryptographic_materialproviders.internaldafny.generated.AwsCryptographyMaterialProvidersTypes.ICryptographicMaterialsCache + aws_cryptographic_material_providers.internaldafny.generated.AwsCryptographyMaterialProvidersTypes.ICryptographicMaterialsCache ) def __init__( self, - _impl: aws_cryptographic_materialproviders.internaldafny.generated.AwsCryptographyMaterialProvidersTypes.ICryptographicMaterialsCache, + _impl: aws_cryptographic_material_providers.internaldafny.generated.AwsCryptographyMaterialProvidersTypes.ICryptographicMaterialsCache, ): self._impl = _impl def put_cache_entry( self, - param: "aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.models.PutCacheEntryInput", - ) -> "aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.models.Unit": + param: "aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.models.PutCacheEntryInput", + ) -> "aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.models.Unit": dafny_output = self._impl.PutCacheEntry( - aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.smithy_to_dafny.aws_cryptography_materialproviders_PutCacheEntryInput( + aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.smithy_to_dafny.aws_cryptography_materialproviders_PutCacheEntryInput( param ) ) if dafny_output.IsFailure(): - from aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.deserialize import ( + from aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.deserialize import ( _deserialize_error as smithy_api_deserialize_error, ) @@ -370,20 +370,20 @@ def put_cache_entry( else: return ( - aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.dafny_to_smithy.smithy_api_Unit() + aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.dafny_to_smithy.smithy_api_Unit() ) def get_cache_entry( self, - param: "aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.models.GetCacheEntryInput", - ) -> "aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.models.GetCacheEntryOutput": + param: "aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.models.GetCacheEntryInput", + ) -> "aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.models.GetCacheEntryOutput": dafny_output = self._impl.GetCacheEntry( - aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.smithy_to_dafny.aws_cryptography_materialproviders_GetCacheEntryInput( + aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.smithy_to_dafny.aws_cryptography_materialproviders_GetCacheEntryInput( param ) ) if dafny_output.IsFailure(): - from aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.deserialize import ( + from aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.deserialize import ( _deserialize_error as aws_cryptography_materialproviders_deserialize_error, ) @@ -392,21 +392,21 @@ def get_cache_entry( ) else: - return aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.dafny_to_smithy.aws_cryptography_materialproviders_GetCacheEntryOutput( + return aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.dafny_to_smithy.aws_cryptography_materialproviders_GetCacheEntryOutput( dafny_output.value ) def update_usage_metadata( self, - param: "aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.models.UpdateUsageMetadataInput", - ) -> "aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.models.Unit": + param: "aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.models.UpdateUsageMetadataInput", + ) -> "aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.models.Unit": dafny_output = self._impl.UpdateUsageMetadata( - aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.smithy_to_dafny.aws_cryptography_materialproviders_UpdateUsageMetadataInput( + aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.smithy_to_dafny.aws_cryptography_materialproviders_UpdateUsageMetadataInput( param ) ) if dafny_output.IsFailure(): - from aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.deserialize import ( + from aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.deserialize import ( _deserialize_error as smithy_api_deserialize_error, ) @@ -414,20 +414,20 @@ def update_usage_metadata( else: return ( - aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.dafny_to_smithy.smithy_api_Unit() + aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.dafny_to_smithy.smithy_api_Unit() ) def delete_cache_entry( self, - param: "aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.models.DeleteCacheEntryInput", - ) -> "aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.models.Unit": + param: "aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.models.DeleteCacheEntryInput", + ) -> "aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.models.Unit": dafny_output = self._impl.DeleteCacheEntry( - aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.smithy_to_dafny.aws_cryptography_materialproviders_DeleteCacheEntryInput( + aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.smithy_to_dafny.aws_cryptography_materialproviders_DeleteCacheEntryInput( param ) ) if dafny_output.IsFailure(): - from aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.deserialize import ( + from aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.deserialize import ( _deserialize_error as smithy_api_deserialize_error, ) @@ -435,7 +435,7 @@ def delete_cache_entry( else: return ( - aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.dafny_to_smithy.smithy_api_Unit() + aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.dafny_to_smithy.smithy_api_Unit() ) @staticmethod @@ -460,15 +460,15 @@ def __subclasshook__(cls, subclass): @abc.abstractmethod def get_encryption_materials( self, - param: "aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.models.GetEncryptionMaterialsInput", - ) -> "aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.models.GetEncryptionMaterialsOutput": + param: "aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.models.GetEncryptionMaterialsInput", + ) -> "aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.models.GetEncryptionMaterialsOutput": raise NotImplementedError @abc.abstractmethod def decrypt_materials( self, - param: "aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.models.DecryptMaterialsInput", - ) -> "aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.models.DecryptMaterialsOutput": + param: "aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.models.DecryptMaterialsInput", + ) -> "aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.models.DecryptMaterialsOutput": raise NotImplementedError def GetEncryptionMaterials( @@ -479,12 +479,12 @@ def GetEncryptionMaterials( This method allows custom implementations of this interface to interact with generated code. """ - native_input = aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.dafny_to_smithy.aws_cryptography_materialproviders_GetEncryptionMaterialsInput( + native_input = aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.dafny_to_smithy.aws_cryptography_materialproviders_GetEncryptionMaterialsInput( dafny_input ) try: native_output = self.get_encryption_materials(native_input) - dafny_output = aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.smithy_to_dafny.aws_cryptography_materialproviders_GetEncryptionMaterialsOutput( + dafny_output = aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.smithy_to_dafny.aws_cryptography_materialproviders_GetEncryptionMaterialsOutput( native_output ) return Wrappers.Result_Success(dafny_output) @@ -500,12 +500,12 @@ def DecryptMaterials( This method allows custom implementations of this interface to interact with generated code. """ - native_input = aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.dafny_to_smithy.aws_cryptography_materialproviders_DecryptMaterialsInput( + native_input = aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.dafny_to_smithy.aws_cryptography_materialproviders_DecryptMaterialsInput( dafny_input ) try: native_output = self.decrypt_materials(native_input) - dafny_output = aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.smithy_to_dafny.aws_cryptography_materialproviders_DecryptMaterialsOutput( + dafny_output = aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.smithy_to_dafny.aws_cryptography_materialproviders_DecryptMaterialsOutput( native_output ) return Wrappers.Result_Success(dafny_output) @@ -517,26 +517,26 @@ def DecryptMaterials( class CryptographicMaterialsManager(ICryptographicMaterialsManager): _impl: ( - aws_cryptographic_materialproviders.internaldafny.generated.AwsCryptographyMaterialProvidersTypes.ICryptographicMaterialsManager + aws_cryptographic_material_providers.internaldafny.generated.AwsCryptographyMaterialProvidersTypes.ICryptographicMaterialsManager ) def __init__( self, - _impl: aws_cryptographic_materialproviders.internaldafny.generated.AwsCryptographyMaterialProvidersTypes.ICryptographicMaterialsManager, + _impl: aws_cryptographic_material_providers.internaldafny.generated.AwsCryptographyMaterialProvidersTypes.ICryptographicMaterialsManager, ): self._impl = _impl def get_encryption_materials( self, - param: "aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.models.GetEncryptionMaterialsInput", - ) -> "aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.models.GetEncryptionMaterialsOutput": + param: "aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.models.GetEncryptionMaterialsInput", + ) -> "aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.models.GetEncryptionMaterialsOutput": dafny_output = self._impl.GetEncryptionMaterials( - aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.smithy_to_dafny.aws_cryptography_materialproviders_GetEncryptionMaterialsInput( + aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.smithy_to_dafny.aws_cryptography_materialproviders_GetEncryptionMaterialsInput( param ) ) if dafny_output.IsFailure(): - from aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.deserialize import ( + from aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.deserialize import ( _deserialize_error as aws_cryptography_materialproviders_deserialize_error, ) @@ -545,21 +545,21 @@ def get_encryption_materials( ) else: - return aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.dafny_to_smithy.aws_cryptography_materialproviders_GetEncryptionMaterialsOutput( + return aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.dafny_to_smithy.aws_cryptography_materialproviders_GetEncryptionMaterialsOutput( dafny_output.value ) def decrypt_materials( self, - param: "aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.models.DecryptMaterialsInput", - ) -> "aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.models.DecryptMaterialsOutput": + param: "aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.models.DecryptMaterialsInput", + ) -> "aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.models.DecryptMaterialsOutput": dafny_output = self._impl.DecryptMaterials( - aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.smithy_to_dafny.aws_cryptography_materialproviders_DecryptMaterialsInput( + aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.smithy_to_dafny.aws_cryptography_materialproviders_DecryptMaterialsInput( param ) ) if dafny_output.IsFailure(): - from aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.deserialize import ( + from aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.deserialize import ( _deserialize_error as aws_cryptography_materialproviders_deserialize_error, ) @@ -568,7 +568,7 @@ def decrypt_materials( ) else: - return aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.dafny_to_smithy.aws_cryptography_materialproviders_DecryptMaterialsOutput( + return aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.dafny_to_smithy.aws_cryptography_materialproviders_DecryptMaterialsOutput( dafny_output.value ) @@ -594,15 +594,15 @@ def __subclasshook__(cls, subclass): @abc.abstractmethod def on_encrypt( self, - param: "aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.models.OnEncryptInput", - ) -> "aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.models.OnEncryptOutput": + param: "aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.models.OnEncryptInput", + ) -> "aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.models.OnEncryptOutput": raise NotImplementedError @abc.abstractmethod def on_decrypt( self, - param: "aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.models.OnDecryptInput", - ) -> "aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.models.OnDecryptOutput": + param: "aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.models.OnDecryptInput", + ) -> "aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.models.OnDecryptOutput": raise NotImplementedError def OnEncrypt(self, dafny_input: "DafnyOnEncryptInput") -> "DafnyOnEncryptOutput": @@ -611,12 +611,12 @@ def OnEncrypt(self, dafny_input: "DafnyOnEncryptInput") -> "DafnyOnEncryptOutput This method allows custom implementations of this interface to interact with generated code. """ - native_input = aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.dafny_to_smithy.aws_cryptography_materialproviders_OnEncryptInput( + native_input = aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.dafny_to_smithy.aws_cryptography_materialproviders_OnEncryptInput( dafny_input ) try: native_output = self.on_encrypt(native_input) - dafny_output = aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.smithy_to_dafny.aws_cryptography_materialproviders_OnEncryptOutput( + dafny_output = aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.smithy_to_dafny.aws_cryptography_materialproviders_OnEncryptOutput( native_output ) return Wrappers.Result_Success(dafny_output) @@ -630,12 +630,12 @@ def OnDecrypt(self, dafny_input: "DafnyOnDecryptInput") -> "DafnyOnDecryptOutput This method allows custom implementations of this interface to interact with generated code. """ - native_input = aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.dafny_to_smithy.aws_cryptography_materialproviders_OnDecryptInput( + native_input = aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.dafny_to_smithy.aws_cryptography_materialproviders_OnDecryptInput( dafny_input ) try: native_output = self.on_decrypt(native_input) - dafny_output = aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.smithy_to_dafny.aws_cryptography_materialproviders_OnDecryptOutput( + dafny_output = aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.smithy_to_dafny.aws_cryptography_materialproviders_OnDecryptOutput( native_output ) return Wrappers.Result_Success(dafny_output) @@ -647,26 +647,26 @@ def OnDecrypt(self, dafny_input: "DafnyOnDecryptInput") -> "DafnyOnDecryptOutput class Keyring(IKeyring): _impl: ( - aws_cryptographic_materialproviders.internaldafny.generated.AwsCryptographyMaterialProvidersTypes.IKeyring + aws_cryptographic_material_providers.internaldafny.generated.AwsCryptographyMaterialProvidersTypes.IKeyring ) def __init__( self, - _impl: aws_cryptographic_materialproviders.internaldafny.generated.AwsCryptographyMaterialProvidersTypes.IKeyring, + _impl: aws_cryptographic_material_providers.internaldafny.generated.AwsCryptographyMaterialProvidersTypes.IKeyring, ): self._impl = _impl def on_encrypt( self, - param: "aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.models.OnEncryptInput", - ) -> "aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.models.OnEncryptOutput": + param: "aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.models.OnEncryptInput", + ) -> "aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.models.OnEncryptOutput": dafny_output = self._impl.OnEncrypt( - aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.smithy_to_dafny.aws_cryptography_materialproviders_OnEncryptInput( + aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.smithy_to_dafny.aws_cryptography_materialproviders_OnEncryptInput( param ) ) if dafny_output.IsFailure(): - from aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.deserialize import ( + from aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.deserialize import ( _deserialize_error as aws_cryptography_materialproviders_deserialize_error, ) @@ -675,21 +675,21 @@ def on_encrypt( ) else: - return aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.dafny_to_smithy.aws_cryptography_materialproviders_OnEncryptOutput( + return aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.dafny_to_smithy.aws_cryptography_materialproviders_OnEncryptOutput( dafny_output.value ) def on_decrypt( self, - param: "aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.models.OnDecryptInput", - ) -> "aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.models.OnDecryptOutput": + param: "aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.models.OnDecryptInput", + ) -> "aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.models.OnDecryptOutput": dafny_output = self._impl.OnDecrypt( - aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.smithy_to_dafny.aws_cryptography_materialproviders_OnDecryptInput( + aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.smithy_to_dafny.aws_cryptography_materialproviders_OnDecryptInput( param ) ) if dafny_output.IsFailure(): - from aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.deserialize import ( + from aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.deserialize import ( _deserialize_error as aws_cryptography_materialproviders_deserialize_error, ) @@ -698,7 +698,7 @@ def on_decrypt( ) else: - return aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.dafny_to_smithy.aws_cryptography_materialproviders_OnDecryptOutput( + return aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.dafny_to_smithy.aws_cryptography_materialproviders_OnDecryptOutput( dafny_output.value ) diff --git a/AwsCryptographicMaterialProviders/runtimes/python/src/aws_cryptographic_materialproviders/smithygenerated/aws_cryptography_materialproviders/serialize.py b/AwsCryptographicMaterialProviders/runtimes/python/src/aws_cryptographic_material_providers/smithygenerated/aws_cryptography_materialproviders/serialize.py similarity index 51% rename from AwsCryptographicMaterialProviders/runtimes/python/src/aws_cryptographic_materialproviders/smithygenerated/aws_cryptography_materialproviders/serialize.py rename to AwsCryptographicMaterialProviders/runtimes/python/src/aws_cryptographic_material_providers/smithygenerated/aws_cryptography_materialproviders/serialize.py index 98cf560f8..3778a0c55 100644 --- a/AwsCryptographicMaterialProviders/runtimes/python/src/aws_cryptographic_materialproviders/smithygenerated/aws_cryptography_materialproviders/serialize.py +++ b/AwsCryptographicMaterialProviders/runtimes/python/src/aws_cryptographic_material_providers/smithygenerated/aws_cryptography_materialproviders/serialize.py @@ -2,7 +2,7 @@ # SPDX-License-Identifier: Apache-2.0 # Do not modify this file. This file is machine generated, and any changes to it will be overwritten. -import aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.smithy_to_dafny +import aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.smithy_to_dafny from .dafny_protocol import DafnyRequest @@ -12,7 +12,7 @@ def _serialize_create_aws_kms_keyring(input, config: Config) -> DafnyRequest: return DafnyRequest( operation_name="CreateAwsKmsKeyring", - dafny_operation_input=aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.smithy_to_dafny.aws_cryptography_materialproviders_CreateAwsKmsKeyringInput( + dafny_operation_input=aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.smithy_to_dafny.aws_cryptography_materialproviders_CreateAwsKmsKeyringInput( input ), ) @@ -21,7 +21,7 @@ def _serialize_create_aws_kms_keyring(input, config: Config) -> DafnyRequest: def _serialize_create_aws_kms_discovery_keyring(input, config: Config) -> DafnyRequest: return DafnyRequest( operation_name="CreateAwsKmsDiscoveryKeyring", - dafny_operation_input=aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.smithy_to_dafny.aws_cryptography_materialproviders_CreateAwsKmsDiscoveryKeyringInput( + dafny_operation_input=aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.smithy_to_dafny.aws_cryptography_materialproviders_CreateAwsKmsDiscoveryKeyringInput( input ), ) @@ -30,7 +30,7 @@ def _serialize_create_aws_kms_discovery_keyring(input, config: Config) -> DafnyR def _serialize_create_aws_kms_multi_keyring(input, config: Config) -> DafnyRequest: return DafnyRequest( operation_name="CreateAwsKmsMultiKeyring", - dafny_operation_input=aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.smithy_to_dafny.aws_cryptography_materialproviders_CreateAwsKmsMultiKeyringInput( + dafny_operation_input=aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.smithy_to_dafny.aws_cryptography_materialproviders_CreateAwsKmsMultiKeyringInput( input ), ) @@ -41,7 +41,7 @@ def _serialize_create_aws_kms_discovery_multi_keyring( ) -> DafnyRequest: return DafnyRequest( operation_name="CreateAwsKmsDiscoveryMultiKeyring", - dafny_operation_input=aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.smithy_to_dafny.aws_cryptography_materialproviders_CreateAwsKmsDiscoveryMultiKeyringInput( + dafny_operation_input=aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.smithy_to_dafny.aws_cryptography_materialproviders_CreateAwsKmsDiscoveryMultiKeyringInput( input ), ) @@ -50,7 +50,7 @@ def _serialize_create_aws_kms_discovery_multi_keyring( def _serialize_create_aws_kms_mrk_keyring(input, config: Config) -> DafnyRequest: return DafnyRequest( operation_name="CreateAwsKmsMrkKeyring", - dafny_operation_input=aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.smithy_to_dafny.aws_cryptography_materialproviders_CreateAwsKmsMrkKeyringInput( + dafny_operation_input=aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.smithy_to_dafny.aws_cryptography_materialproviders_CreateAwsKmsMrkKeyringInput( input ), ) @@ -59,7 +59,7 @@ def _serialize_create_aws_kms_mrk_keyring(input, config: Config) -> DafnyRequest def _serialize_create_aws_kms_mrk_multi_keyring(input, config: Config) -> DafnyRequest: return DafnyRequest( operation_name="CreateAwsKmsMrkMultiKeyring", - dafny_operation_input=aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.smithy_to_dafny.aws_cryptography_materialproviders_CreateAwsKmsMrkMultiKeyringInput( + dafny_operation_input=aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.smithy_to_dafny.aws_cryptography_materialproviders_CreateAwsKmsMrkMultiKeyringInput( input ), ) @@ -70,7 +70,7 @@ def _serialize_create_aws_kms_mrk_discovery_keyring( ) -> DafnyRequest: return DafnyRequest( operation_name="CreateAwsKmsMrkDiscoveryKeyring", - dafny_operation_input=aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.smithy_to_dafny.aws_cryptography_materialproviders_CreateAwsKmsMrkDiscoveryKeyringInput( + dafny_operation_input=aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.smithy_to_dafny.aws_cryptography_materialproviders_CreateAwsKmsMrkDiscoveryKeyringInput( input ), ) @@ -81,7 +81,7 @@ def _serialize_create_aws_kms_mrk_discovery_multi_keyring( ) -> DafnyRequest: return DafnyRequest( operation_name="CreateAwsKmsMrkDiscoveryMultiKeyring", - dafny_operation_input=aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.smithy_to_dafny.aws_cryptography_materialproviders_CreateAwsKmsMrkDiscoveryMultiKeyringInput( + dafny_operation_input=aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.smithy_to_dafny.aws_cryptography_materialproviders_CreateAwsKmsMrkDiscoveryMultiKeyringInput( input ), ) @@ -92,7 +92,7 @@ def _serialize_create_aws_kms_hierarchical_keyring( ) -> DafnyRequest: return DafnyRequest( operation_name="CreateAwsKmsHierarchicalKeyring", - dafny_operation_input=aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.smithy_to_dafny.aws_cryptography_materialproviders_CreateAwsKmsHierarchicalKeyringInput( + dafny_operation_input=aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.smithy_to_dafny.aws_cryptography_materialproviders_CreateAwsKmsHierarchicalKeyringInput( input ), ) @@ -101,7 +101,7 @@ def _serialize_create_aws_kms_hierarchical_keyring( def _serialize_create_aws_kms_rsa_keyring(input, config: Config) -> DafnyRequest: return DafnyRequest( operation_name="CreateAwsKmsRsaKeyring", - dafny_operation_input=aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.smithy_to_dafny.aws_cryptography_materialproviders_CreateAwsKmsRsaKeyringInput( + dafny_operation_input=aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.smithy_to_dafny.aws_cryptography_materialproviders_CreateAwsKmsRsaKeyringInput( input ), ) @@ -110,7 +110,7 @@ def _serialize_create_aws_kms_rsa_keyring(input, config: Config) -> DafnyRequest def _serialize_create_aws_kms_ecdh_keyring(input, config: Config) -> DafnyRequest: return DafnyRequest( operation_name="CreateAwsKmsEcdhKeyring", - dafny_operation_input=aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.smithy_to_dafny.aws_cryptography_materialproviders_CreateAwsKmsEcdhKeyringInput( + dafny_operation_input=aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.smithy_to_dafny.aws_cryptography_materialproviders_CreateAwsKmsEcdhKeyringInput( input ), ) @@ -119,7 +119,7 @@ def _serialize_create_aws_kms_ecdh_keyring(input, config: Config) -> DafnyReques def _serialize_create_multi_keyring(input, config: Config) -> DafnyRequest: return DafnyRequest( operation_name="CreateMultiKeyring", - dafny_operation_input=aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.smithy_to_dafny.aws_cryptography_materialproviders_CreateMultiKeyringInput( + dafny_operation_input=aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.smithy_to_dafny.aws_cryptography_materialproviders_CreateMultiKeyringInput( input ), ) @@ -128,7 +128,7 @@ def _serialize_create_multi_keyring(input, config: Config) -> DafnyRequest: def _serialize_create_raw_aes_keyring(input, config: Config) -> DafnyRequest: return DafnyRequest( operation_name="CreateRawAesKeyring", - dafny_operation_input=aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.smithy_to_dafny.aws_cryptography_materialproviders_CreateRawAesKeyringInput( + dafny_operation_input=aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.smithy_to_dafny.aws_cryptography_materialproviders_CreateRawAesKeyringInput( input ), ) @@ -137,7 +137,7 @@ def _serialize_create_raw_aes_keyring(input, config: Config) -> DafnyRequest: def _serialize_create_raw_rsa_keyring(input, config: Config) -> DafnyRequest: return DafnyRequest( operation_name="CreateRawRsaKeyring", - dafny_operation_input=aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.smithy_to_dafny.aws_cryptography_materialproviders_CreateRawRsaKeyringInput( + dafny_operation_input=aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.smithy_to_dafny.aws_cryptography_materialproviders_CreateRawRsaKeyringInput( input ), ) @@ -146,7 +146,7 @@ def _serialize_create_raw_rsa_keyring(input, config: Config) -> DafnyRequest: def _serialize_create_raw_ecdh_keyring(input, config: Config) -> DafnyRequest: return DafnyRequest( operation_name="CreateRawEcdhKeyring", - dafny_operation_input=aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.smithy_to_dafny.aws_cryptography_materialproviders_CreateRawEcdhKeyringInput( + dafny_operation_input=aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.smithy_to_dafny.aws_cryptography_materialproviders_CreateRawEcdhKeyringInput( input ), ) @@ -157,7 +157,7 @@ def _serialize_create_default_cryptographic_materials_manager( ) -> DafnyRequest: return DafnyRequest( operation_name="CreateDefaultCryptographicMaterialsManager", - dafny_operation_input=aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.smithy_to_dafny.aws_cryptography_materialproviders_CreateDefaultCryptographicMaterialsManagerInput( + dafny_operation_input=aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.smithy_to_dafny.aws_cryptography_materialproviders_CreateDefaultCryptographicMaterialsManagerInput( input ), ) @@ -168,7 +168,7 @@ def _serialize_create_required_encryption_context_cmm( ) -> DafnyRequest: return DafnyRequest( operation_name="CreateRequiredEncryptionContextCMM", - dafny_operation_input=aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.smithy_to_dafny.aws_cryptography_materialproviders_CreateRequiredEncryptionContextCMMInput( + dafny_operation_input=aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.smithy_to_dafny.aws_cryptography_materialproviders_CreateRequiredEncryptionContextCMMInput( input ), ) @@ -179,7 +179,7 @@ def _serialize_create_cryptographic_materials_cache( ) -> DafnyRequest: return DafnyRequest( operation_name="CreateCryptographicMaterialsCache", - dafny_operation_input=aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.smithy_to_dafny.aws_cryptography_materialproviders_CreateCryptographicMaterialsCacheInput( + dafny_operation_input=aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.smithy_to_dafny.aws_cryptography_materialproviders_CreateCryptographicMaterialsCacheInput( input ), ) @@ -188,7 +188,7 @@ def _serialize_create_cryptographic_materials_cache( def _serialize_create_default_client_supplier(input, config: Config) -> DafnyRequest: return DafnyRequest( operation_name="CreateDefaultClientSupplier", - dafny_operation_input=aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.smithy_to_dafny.aws_cryptography_materialproviders_CreateDefaultClientSupplierInput( + dafny_operation_input=aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.smithy_to_dafny.aws_cryptography_materialproviders_CreateDefaultClientSupplierInput( input ), ) @@ -197,7 +197,7 @@ def _serialize_create_default_client_supplier(input, config: Config) -> DafnyReq def _serialize_initialize_encryption_materials(input, config: Config) -> DafnyRequest: return DafnyRequest( operation_name="InitializeEncryptionMaterials", - dafny_operation_input=aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.smithy_to_dafny.aws_cryptography_materialproviders_InitializeEncryptionMaterialsInput( + dafny_operation_input=aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.smithy_to_dafny.aws_cryptography_materialproviders_InitializeEncryptionMaterialsInput( input ), ) @@ -206,7 +206,7 @@ def _serialize_initialize_encryption_materials(input, config: Config) -> DafnyRe def _serialize_initialize_decryption_materials(input, config: Config) -> DafnyRequest: return DafnyRequest( operation_name="InitializeDecryptionMaterials", - dafny_operation_input=aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.smithy_to_dafny.aws_cryptography_materialproviders_InitializeDecryptionMaterialsInput( + dafny_operation_input=aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.smithy_to_dafny.aws_cryptography_materialproviders_InitializeDecryptionMaterialsInput( input ), ) @@ -217,7 +217,7 @@ def _serialize_valid_encryption_materials_transition( ) -> DafnyRequest: return DafnyRequest( operation_name="ValidEncryptionMaterialsTransition", - dafny_operation_input=aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.smithy_to_dafny.aws_cryptography_materialproviders_ValidEncryptionMaterialsTransitionInput( + dafny_operation_input=aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.smithy_to_dafny.aws_cryptography_materialproviders_ValidEncryptionMaterialsTransitionInput( input ), ) @@ -228,7 +228,7 @@ def _serialize_valid_decryption_materials_transition( ) -> DafnyRequest: return DafnyRequest( operation_name="ValidDecryptionMaterialsTransition", - dafny_operation_input=aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.smithy_to_dafny.aws_cryptography_materialproviders_ValidDecryptionMaterialsTransitionInput( + dafny_operation_input=aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.smithy_to_dafny.aws_cryptography_materialproviders_ValidDecryptionMaterialsTransitionInput( input ), ) @@ -239,7 +239,7 @@ def _serialize_encryption_materials_has_plaintext_data_key( ) -> DafnyRequest: return DafnyRequest( operation_name="EncryptionMaterialsHasPlaintextDataKey", - dafny_operation_input=aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.smithy_to_dafny.aws_cryptography_materialproviders_EncryptionMaterials( + dafny_operation_input=aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.smithy_to_dafny.aws_cryptography_materialproviders_EncryptionMaterials( input ), ) @@ -250,7 +250,7 @@ def _serialize_decryption_materials_with_plaintext_data_key( ) -> DafnyRequest: return DafnyRequest( operation_name="DecryptionMaterialsWithPlaintextDataKey", - dafny_operation_input=aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.smithy_to_dafny.aws_cryptography_materialproviders_DecryptionMaterials( + dafny_operation_input=aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.smithy_to_dafny.aws_cryptography_materialproviders_DecryptionMaterials( input ), ) @@ -259,7 +259,7 @@ def _serialize_decryption_materials_with_plaintext_data_key( def _serialize_get_algorithm_suite_info(input, config: Config) -> DafnyRequest: return DafnyRequest( operation_name="GetAlgorithmSuiteInfo", - dafny_operation_input=aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.smithy_to_dafny.aws_cryptography_materialproviders_GetAlgorithmSuiteInfoInput( + dafny_operation_input=aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.smithy_to_dafny.aws_cryptography_materialproviders_GetAlgorithmSuiteInfoInput( input ), ) @@ -268,7 +268,7 @@ def _serialize_get_algorithm_suite_info(input, config: Config) -> DafnyRequest: def _serialize_valid_algorithm_suite_info(input, config: Config) -> DafnyRequest: return DafnyRequest( operation_name="ValidAlgorithmSuiteInfo", - dafny_operation_input=aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.smithy_to_dafny.aws_cryptography_materialproviders_AlgorithmSuiteInfo( + dafny_operation_input=aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.smithy_to_dafny.aws_cryptography_materialproviders_AlgorithmSuiteInfo( input ), ) @@ -279,7 +279,7 @@ def _serialize_validate_commitment_policy_on_encrypt( ) -> DafnyRequest: return DafnyRequest( operation_name="ValidateCommitmentPolicyOnEncrypt", - dafny_operation_input=aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.smithy_to_dafny.aws_cryptography_materialproviders_ValidateCommitmentPolicyOnEncryptInput( + dafny_operation_input=aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.smithy_to_dafny.aws_cryptography_materialproviders_ValidateCommitmentPolicyOnEncryptInput( input ), ) @@ -290,7 +290,7 @@ def _serialize_validate_commitment_policy_on_decrypt( ) -> DafnyRequest: return DafnyRequest( operation_name="ValidateCommitmentPolicyOnDecrypt", - dafny_operation_input=aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.smithy_to_dafny.aws_cryptography_materialproviders_ValidateCommitmentPolicyOnDecryptInput( + dafny_operation_input=aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.smithy_to_dafny.aws_cryptography_materialproviders_ValidateCommitmentPolicyOnDecryptInput( input ), ) diff --git a/AwsCryptographicMaterialProviders/runtimes/python/src/aws_cryptographic_materialproviders/smithygenerated/aws_cryptography_materialproviders/smithy_to_dafny.py b/AwsCryptographicMaterialProviders/runtimes/python/src/aws_cryptographic_material_providers/smithygenerated/aws_cryptography_materialproviders/smithy_to_dafny.py similarity index 76% rename from AwsCryptographicMaterialProviders/runtimes/python/src/aws_cryptographic_materialproviders/smithygenerated/aws_cryptography_materialproviders/smithy_to_dafny.py rename to AwsCryptographicMaterialProviders/runtimes/python/src/aws_cryptographic_material_providers/smithygenerated/aws_cryptography_materialproviders/smithy_to_dafny.py index 1721426a8..c64ed7e8f 100644 --- a/AwsCryptographicMaterialProviders/runtimes/python/src/aws_cryptographic_materialproviders/smithygenerated/aws_cryptography_materialproviders/smithy_to_dafny.py +++ b/AwsCryptographicMaterialProviders/runtimes/python/src/aws_cryptographic_material_providers/smithygenerated/aws_cryptography_materialproviders/smithy_to_dafny.py @@ -3,7 +3,7 @@ # Do not modify this file. This file is machine generated, and any changes to it will be overwritten. from _dafny import Map, Seq -from aws_cryptographic_materialproviders.internaldafny.generated.AwsCryptographyMaterialProvidersTypes import ( +from aws_cryptographic_material_providers.internaldafny.generated.AwsCryptographyMaterialProvidersTypes import ( AesWrappingAlg_ALG__AES128__GCM__IV12__TAG16, AesWrappingAlg_ALG__AES192__GCM__IV12__TAG16, AesWrappingAlg_ALG__AES256__GCM__IV12__TAG16, @@ -122,10 +122,10 @@ ValidateCommitmentPolicyOnDecryptInput_ValidateCommitmentPolicyOnDecryptInput as DafnyValidateCommitmentPolicyOnDecryptInput, ValidateCommitmentPolicyOnEncryptInput_ValidateCommitmentPolicyOnEncryptInput as DafnyValidateCommitmentPolicyOnEncryptInput, ) -import aws_cryptographic_materialproviders.internaldafny.generated.module_ -import aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_keystore.smithy_to_dafny -import aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.models -import aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.smithy_to_dafny +import aws_cryptographic_material_providers.internaldafny.generated.module_ +import aws_cryptographic_material_providers.smithygenerated.aws_cryptography_keystore.smithy_to_dafny +import aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.models +import aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.smithy_to_dafny from aws_cryptography_internal_kms.internaldafny.generated.ComAmazonawsKmsTypes import ( IKMSClient, ) @@ -180,7 +180,7 @@ def aws_cryptography_materialproviders_GetClientInput(native_input): def aws_cryptography_materialproviders_GetClientOutput(native_input): - return aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.smithy_to_dafny.aws_cryptography_materialproviders_KmsClientReference( + return aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.smithy_to_dafny.aws_cryptography_materialproviders_KmsClientReference( native_input ) @@ -198,7 +198,7 @@ def aws_cryptography_materialproviders_KmsClientReference(native_input): def aws_cryptography_materialproviders_PutCacheEntryInput(native_input): return DafnyPutCacheEntryInput( identifier=Seq(native_input.identifier), - materials=aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.smithy_to_dafny.aws_cryptography_materialproviders_Materials( + materials=aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.smithy_to_dafny.aws_cryptography_materialproviders_Materials( native_input.materials ), creationTime=native_input.creation_time, @@ -219,37 +219,37 @@ def aws_cryptography_materialproviders_PutCacheEntryInput(native_input): def aws_cryptography_materialproviders_Materials(native_input): if isinstance( native_input, - aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.models.MaterialsEncryption, + aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.models.MaterialsEncryption, ): Materials_union_value = Materials_Encryption( - aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.smithy_to_dafny.aws_cryptography_materialproviders_EncryptionMaterials( + aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.smithy_to_dafny.aws_cryptography_materialproviders_EncryptionMaterials( native_input.value ) ) elif isinstance( native_input, - aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.models.MaterialsDecryption, + aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.models.MaterialsDecryption, ): Materials_union_value = Materials_Decryption( - aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.smithy_to_dafny.aws_cryptography_materialproviders_DecryptionMaterials( + aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.smithy_to_dafny.aws_cryptography_materialproviders_DecryptionMaterials( native_input.value ) ) elif isinstance( native_input, - aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.models.MaterialsBranchKey, + aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.models.MaterialsBranchKey, ): Materials_union_value = Materials_BranchKey( - aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_keystore.smithy_to_dafny.aws_cryptography_keystore_BranchKeyMaterials( + aws_cryptographic_material_providers.smithygenerated.aws_cryptography_keystore.smithy_to_dafny.aws_cryptography_keystore_BranchKeyMaterials( native_input.value ) ) elif isinstance( native_input, - aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.models.MaterialsBeaconKey, + aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.models.MaterialsBeaconKey, ): Materials_union_value = Materials_BeaconKey( - aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_keystore.smithy_to_dafny.aws_cryptography_keystore_BeaconKeyMaterials( + aws_cryptographic_material_providers.smithygenerated.aws_cryptography_keystore.smithy_to_dafny.aws_cryptography_keystore_BeaconKeyMaterials( native_input.value ) ) @@ -263,7 +263,7 @@ def aws_cryptography_materialproviders_Materials(native_input): def aws_cryptography_materialproviders_EncryptionMaterials(native_input): return DafnyEncryptionMaterials( - algorithmSuite=aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.smithy_to_dafny.aws_cryptography_materialproviders_AlgorithmSuiteInfo( + algorithmSuite=aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.smithy_to_dafny.aws_cryptography_materialproviders_AlgorithmSuiteInfo( native_input.algorithm_suite ), encryptionContext=Map( @@ -274,7 +274,7 @@ def aws_cryptography_materialproviders_EncryptionMaterials(native_input): ), encryptedDataKeys=Seq( [ - aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.smithy_to_dafny.aws_cryptography_materialproviders_EncryptedDataKey( + aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.smithy_to_dafny.aws_cryptography_materialproviders_EncryptedDataKey( list_element ) for list_element in native_input.encrypted_data_keys @@ -315,7 +315,7 @@ def aws_cryptography_materialproviders_EncryptionMaterials(native_input): def aws_cryptography_materialproviders_DecryptionMaterials(native_input): return DafnyDecryptionMaterials( - algorithmSuite=aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.smithy_to_dafny.aws_cryptography_materialproviders_AlgorithmSuiteInfo( + algorithmSuite=aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.smithy_to_dafny.aws_cryptography_materialproviders_AlgorithmSuiteInfo( native_input.algorithm_suite ), encryptionContext=Map( @@ -350,27 +350,27 @@ def aws_cryptography_materialproviders_DecryptionMaterials(native_input): def aws_cryptography_materialproviders_AlgorithmSuiteInfo(native_input): return DafnyAlgorithmSuiteInfo( - id=aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.smithy_to_dafny.aws_cryptography_materialproviders_AlgorithmSuiteId( + id=aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.smithy_to_dafny.aws_cryptography_materialproviders_AlgorithmSuiteId( native_input.id ), binaryId=Seq(native_input.binary_id), messageVersion=native_input.message_version, - encrypt=aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.smithy_to_dafny.aws_cryptography_materialproviders_Encrypt( + encrypt=aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.smithy_to_dafny.aws_cryptography_materialproviders_Encrypt( native_input.encrypt ), - kdf=aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.smithy_to_dafny.aws_cryptography_materialproviders_DerivationAlgorithm( + kdf=aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.smithy_to_dafny.aws_cryptography_materialproviders_DerivationAlgorithm( native_input.kdf ), - commitment=aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.smithy_to_dafny.aws_cryptography_materialproviders_DerivationAlgorithm( + commitment=aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.smithy_to_dafny.aws_cryptography_materialproviders_DerivationAlgorithm( native_input.commitment ), - signature=aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.smithy_to_dafny.aws_cryptography_materialproviders_SignatureAlgorithm( + signature=aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.smithy_to_dafny.aws_cryptography_materialproviders_SignatureAlgorithm( native_input.signature ), - symmetricSignature=aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.smithy_to_dafny.aws_cryptography_materialproviders_SymmetricSignatureAlgorithm( + symmetricSignature=aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.smithy_to_dafny.aws_cryptography_materialproviders_SymmetricSignatureAlgorithm( native_input.symmetric_signature ), - edkWrapping=aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.smithy_to_dafny.aws_cryptography_materialproviders_EdkWrappingAlgorithm( + edkWrapping=aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.smithy_to_dafny.aws_cryptography_materialproviders_EdkWrappingAlgorithm( native_input.edk_wrapping ), ) @@ -387,19 +387,19 @@ def aws_cryptography_materialproviders_EncryptedDataKey(native_input): def aws_cryptography_materialproviders_AlgorithmSuiteId(native_input): if isinstance( native_input, - aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.models.AlgorithmSuiteIdESDK, + aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.models.AlgorithmSuiteIdESDK, ): AlgorithmSuiteId_union_value = AlgorithmSuiteId_ESDK( - aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.smithy_to_dafny.aws_cryptography_materialproviders_ESDKAlgorithmSuiteId( + aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.smithy_to_dafny.aws_cryptography_materialproviders_ESDKAlgorithmSuiteId( native_input.value ) ) elif isinstance( native_input, - aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.models.AlgorithmSuiteIdDBE, + aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.models.AlgorithmSuiteIdDBE, ): AlgorithmSuiteId_union_value = AlgorithmSuiteId_DBE( - aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.smithy_to_dafny.aws_cryptography_materialproviders_DBEAlgorithmSuiteId( + aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.smithy_to_dafny.aws_cryptography_materialproviders_DBEAlgorithmSuiteId( native_input.value ) ) @@ -414,7 +414,7 @@ def aws_cryptography_materialproviders_AlgorithmSuiteId(native_input): def aws_cryptography_materialproviders_Encrypt(native_input): if isinstance( native_input, - aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.models.EncryptAES_GCM, + aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.models.EncryptAES_GCM, ): Encrypt_union_value = Encrypt_AES__GCM( aws_cryptography_primitives.smithygenerated.aws_cryptography_primitives.smithy_to_dafny.aws_cryptography_primitives_AES_GCM( @@ -432,28 +432,28 @@ def aws_cryptography_materialproviders_Encrypt(native_input): def aws_cryptography_materialproviders_DerivationAlgorithm(native_input): if isinstance( native_input, - aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.models.DerivationAlgorithmHKDF, + aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.models.DerivationAlgorithmHKDF, ): DerivationAlgorithm_union_value = DerivationAlgorithm_HKDF( - aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.smithy_to_dafny.aws_cryptography_materialproviders_HKDF( + aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.smithy_to_dafny.aws_cryptography_materialproviders_HKDF( native_input.value ) ) elif isinstance( native_input, - aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.models.DerivationAlgorithmIDENTITY, + aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.models.DerivationAlgorithmIDENTITY, ): DerivationAlgorithm_union_value = DerivationAlgorithm_IDENTITY( - aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.smithy_to_dafny.aws_cryptography_materialproviders_IDENTITY( + aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.smithy_to_dafny.aws_cryptography_materialproviders_IDENTITY( native_input.value ) ) elif isinstance( native_input, - aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.models.DerivationAlgorithmNone, + aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.models.DerivationAlgorithmNone, ): DerivationAlgorithm_union_value = DerivationAlgorithm_None( - aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.smithy_to_dafny.aws_cryptography_materialproviders_None( + aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.smithy_to_dafny.aws_cryptography_materialproviders_None( native_input.value ) ) @@ -468,19 +468,19 @@ def aws_cryptography_materialproviders_DerivationAlgorithm(native_input): def aws_cryptography_materialproviders_SignatureAlgorithm(native_input): if isinstance( native_input, - aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.models.SignatureAlgorithmECDSA, + aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.models.SignatureAlgorithmECDSA, ): SignatureAlgorithm_union_value = SignatureAlgorithm_ECDSA( - aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.smithy_to_dafny.aws_cryptography_materialproviders_ECDSA( + aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.smithy_to_dafny.aws_cryptography_materialproviders_ECDSA( native_input.value ) ) elif isinstance( native_input, - aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.models.SignatureAlgorithmNone, + aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.models.SignatureAlgorithmNone, ): SignatureAlgorithm_union_value = SignatureAlgorithm_None( - aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.smithy_to_dafny.aws_cryptography_materialproviders_None( + aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.smithy_to_dafny.aws_cryptography_materialproviders_None( native_input.value ) ) @@ -495,7 +495,7 @@ def aws_cryptography_materialproviders_SignatureAlgorithm(native_input): def aws_cryptography_materialproviders_SymmetricSignatureAlgorithm(native_input): if isinstance( native_input, - aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.models.SymmetricSignatureAlgorithmHMAC, + aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.models.SymmetricSignatureAlgorithmHMAC, ): SymmetricSignatureAlgorithm_union_value = SymmetricSignatureAlgorithm_HMAC( aws_cryptography_primitives.smithygenerated.aws_cryptography_primitives.smithy_to_dafny.aws_cryptography_primitives_DigestAlgorithm( @@ -504,10 +504,10 @@ def aws_cryptography_materialproviders_SymmetricSignatureAlgorithm(native_input) ) elif isinstance( native_input, - aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.models.SymmetricSignatureAlgorithmNone, + aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.models.SymmetricSignatureAlgorithmNone, ): SymmetricSignatureAlgorithm_union_value = SymmetricSignatureAlgorithm_None( - aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.smithy_to_dafny.aws_cryptography_materialproviders_None( + aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.smithy_to_dafny.aws_cryptography_materialproviders_None( native_input.value ) ) @@ -522,19 +522,19 @@ def aws_cryptography_materialproviders_SymmetricSignatureAlgorithm(native_input) def aws_cryptography_materialproviders_EdkWrappingAlgorithm(native_input): if isinstance( native_input, - aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.models.EdkWrappingAlgorithmDIRECT_KEY_WRAPPING, + aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.models.EdkWrappingAlgorithmDIRECT_KEY_WRAPPING, ): EdkWrappingAlgorithm_union_value = EdkWrappingAlgorithm_DIRECT__KEY__WRAPPING( - aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.smithy_to_dafny.aws_cryptography_materialproviders_DIRECT_KEY_WRAPPING( + aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.smithy_to_dafny.aws_cryptography_materialproviders_DIRECT_KEY_WRAPPING( native_input.value ) ) elif isinstance( native_input, - aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.models.EdkWrappingAlgorithmIntermediateKeyWrapping, + aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.models.EdkWrappingAlgorithmIntermediateKeyWrapping, ): EdkWrappingAlgorithm_union_value = EdkWrappingAlgorithm_IntermediateKeyWrapping( - aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.smithy_to_dafny.aws_cryptography_materialproviders_IntermediateKeyWrapping( + aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.smithy_to_dafny.aws_cryptography_materialproviders_IntermediateKeyWrapping( native_input.value ) ) @@ -640,13 +640,13 @@ def aws_cryptography_materialproviders_DIRECT_KEY_WRAPPING(native_input): def aws_cryptography_materialproviders_IntermediateKeyWrapping(native_input): return DafnyIntermediateKeyWrapping( - keyEncryptionKeyKdf=aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.smithy_to_dafny.aws_cryptography_materialproviders_DerivationAlgorithm( + keyEncryptionKeyKdf=aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.smithy_to_dafny.aws_cryptography_materialproviders_DerivationAlgorithm( native_input.key_encryption_key_kdf ), - macKeyKdf=aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.smithy_to_dafny.aws_cryptography_materialproviders_DerivationAlgorithm( + macKeyKdf=aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.smithy_to_dafny.aws_cryptography_materialproviders_DerivationAlgorithm( native_input.mac_key_kdf ), - pdkEncryptAlgorithm=aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.smithy_to_dafny.aws_cryptography_materialproviders_Encrypt( + pdkEncryptAlgorithm=aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.smithy_to_dafny.aws_cryptography_materialproviders_Encrypt( native_input.pdk_encrypt_algorithm ), ) @@ -669,7 +669,7 @@ def aws_cryptography_materialproviders_GetCacheEntryInput(native_input): def aws_cryptography_materialproviders_GetCacheEntryOutput(native_input): return DafnyGetCacheEntryOutput( - materials=aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.smithy_to_dafny.aws_cryptography_materialproviders_Materials( + materials=aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.smithy_to_dafny.aws_cryptography_materialproviders_Materials( native_input.materials ), creationTime=native_input.creation_time, @@ -700,13 +700,13 @@ def aws_cryptography_materialproviders_GetEncryptionMaterialsInput(native_input) for (key, value) in native_input.encryption_context.items() } ), - commitmentPolicy=aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.smithy_to_dafny.aws_cryptography_materialproviders_CommitmentPolicy( + commitmentPolicy=aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.smithy_to_dafny.aws_cryptography_materialproviders_CommitmentPolicy( native_input.commitment_policy ), algorithmSuiteId=( ( Option_Some( - aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.smithy_to_dafny.aws_cryptography_materialproviders_AlgorithmSuiteId( + aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.smithy_to_dafny.aws_cryptography_materialproviders_AlgorithmSuiteId( native_input.algorithm_suite_id ) ) @@ -739,19 +739,19 @@ def aws_cryptography_materialproviders_GetEncryptionMaterialsInput(native_input) def aws_cryptography_materialproviders_CommitmentPolicy(native_input): if isinstance( native_input, - aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.models.CommitmentPolicyESDK, + aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.models.CommitmentPolicyESDK, ): CommitmentPolicy_union_value = CommitmentPolicy_ESDK( - aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.smithy_to_dafny.aws_cryptography_materialproviders_ESDKCommitmentPolicy( + aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.smithy_to_dafny.aws_cryptography_materialproviders_ESDKCommitmentPolicy( native_input.value ) ) elif isinstance( native_input, - aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.models.CommitmentPolicyDBE, + aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.models.CommitmentPolicyDBE, ): CommitmentPolicy_union_value = CommitmentPolicy_DBE( - aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.smithy_to_dafny.aws_cryptography_materialproviders_DBECommitmentPolicy( + aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.smithy_to_dafny.aws_cryptography_materialproviders_DBECommitmentPolicy( native_input.value ) ) @@ -787,7 +787,7 @@ def aws_cryptography_materialproviders_DBECommitmentPolicy(native_input): def aws_cryptography_materialproviders_GetEncryptionMaterialsOutput(native_input): return DafnyGetEncryptionMaterialsOutput( - encryptionMaterials=aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.smithy_to_dafny.aws_cryptography_materialproviders_EncryptionMaterials( + encryptionMaterials=aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.smithy_to_dafny.aws_cryptography_materialproviders_EncryptionMaterials( native_input.encryption_materials ), ) @@ -795,15 +795,15 @@ def aws_cryptography_materialproviders_GetEncryptionMaterialsOutput(native_input def aws_cryptography_materialproviders_DecryptMaterialsInput(native_input): return DafnyDecryptMaterialsInput( - algorithmSuiteId=aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.smithy_to_dafny.aws_cryptography_materialproviders_AlgorithmSuiteId( + algorithmSuiteId=aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.smithy_to_dafny.aws_cryptography_materialproviders_AlgorithmSuiteId( native_input.algorithm_suite_id ), - commitmentPolicy=aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.smithy_to_dafny.aws_cryptography_materialproviders_CommitmentPolicy( + commitmentPolicy=aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.smithy_to_dafny.aws_cryptography_materialproviders_CommitmentPolicy( native_input.commitment_policy ), encryptedDataKeys=Seq( [ - aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.smithy_to_dafny.aws_cryptography_materialproviders_EncryptedDataKey( + aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.smithy_to_dafny.aws_cryptography_materialproviders_EncryptedDataKey( list_element ) for list_element in native_input.encrypted_data_keys @@ -837,7 +837,7 @@ def aws_cryptography_materialproviders_DecryptMaterialsInput(native_input): def aws_cryptography_materialproviders_DecryptMaterialsOutput(native_input): return DafnyDecryptMaterialsOutput( - decryptionMaterials=aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.smithy_to_dafny.aws_cryptography_materialproviders_DecryptionMaterials( + decryptionMaterials=aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.smithy_to_dafny.aws_cryptography_materialproviders_DecryptionMaterials( native_input.decryption_materials ), ) @@ -845,7 +845,7 @@ def aws_cryptography_materialproviders_DecryptMaterialsOutput(native_input): def aws_cryptography_materialproviders_OnEncryptInput(native_input): return DafnyOnEncryptInput( - materials=aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.smithy_to_dafny.aws_cryptography_materialproviders_EncryptionMaterials( + materials=aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.smithy_to_dafny.aws_cryptography_materialproviders_EncryptionMaterials( native_input.materials ), ) @@ -853,7 +853,7 @@ def aws_cryptography_materialproviders_OnEncryptInput(native_input): def aws_cryptography_materialproviders_OnEncryptOutput(native_input): return DafnyOnEncryptOutput( - materials=aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.smithy_to_dafny.aws_cryptography_materialproviders_EncryptionMaterials( + materials=aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.smithy_to_dafny.aws_cryptography_materialproviders_EncryptionMaterials( native_input.materials ), ) @@ -861,12 +861,12 @@ def aws_cryptography_materialproviders_OnEncryptOutput(native_input): def aws_cryptography_materialproviders_OnDecryptInput(native_input): return DafnyOnDecryptInput( - materials=aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.smithy_to_dafny.aws_cryptography_materialproviders_DecryptionMaterials( + materials=aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.smithy_to_dafny.aws_cryptography_materialproviders_DecryptionMaterials( native_input.materials ), encryptedDataKeys=Seq( [ - aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.smithy_to_dafny.aws_cryptography_materialproviders_EncryptedDataKey( + aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.smithy_to_dafny.aws_cryptography_materialproviders_EncryptedDataKey( list_element ) for list_element in native_input.encrypted_data_keys @@ -877,7 +877,7 @@ def aws_cryptography_materialproviders_OnDecryptInput(native_input): def aws_cryptography_materialproviders_OnDecryptOutput(native_input): return DafnyOnDecryptOutput( - materials=aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.smithy_to_dafny.aws_cryptography_materialproviders_DecryptionMaterials( + materials=aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.smithy_to_dafny.aws_cryptography_materialproviders_DecryptionMaterials( native_input.materials ), ) @@ -895,7 +895,7 @@ def aws_cryptography_materialproviders_CreateAwsKmsKeyringInput(native_input): ] ) ), - kmsClient=aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.smithy_to_dafny.aws_cryptography_materialproviders_KmsClientReference( + kmsClient=aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.smithy_to_dafny.aws_cryptography_materialproviders_KmsClientReference( native_input.kms_client ), grantTokens=( @@ -927,13 +927,13 @@ def aws_cryptography_materialproviders_CreateAwsKmsKeyringInput(native_input): def aws_cryptography_materialproviders_CreateAwsKmsDiscoveryKeyringInput(native_input): return DafnyCreateAwsKmsDiscoveryKeyringInput( - kmsClient=aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.smithy_to_dafny.aws_cryptography_materialproviders_KmsClientReference( + kmsClient=aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.smithy_to_dafny.aws_cryptography_materialproviders_KmsClientReference( native_input.kms_client ), discoveryFilter=( ( Option_Some( - aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.smithy_to_dafny.aws_cryptography_materialproviders_DiscoveryFilter( + aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.smithy_to_dafny.aws_cryptography_materialproviders_DiscoveryFilter( native_input.discovery_filter ) ) @@ -1046,7 +1046,7 @@ def aws_cryptography_materialproviders_CreateAwsKmsMultiKeyringInput(native_inpu clientSupplier=( ( Option_Some( - aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.smithy_to_dafny.aws_cryptography_materialproviders_ClientSupplierReference( + aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.smithy_to_dafny.aws_cryptography_materialproviders_ClientSupplierReference( native_input.client_supplier ) ) @@ -1054,7 +1054,7 @@ def aws_cryptography_materialproviders_CreateAwsKmsMultiKeyringInput(native_inpu if ( (native_input.client_supplier is not None) and ( - aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.smithy_to_dafny.aws_cryptography_materialproviders_ClientSupplierReference( + aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.smithy_to_dafny.aws_cryptography_materialproviders_ClientSupplierReference( native_input.client_supplier ) is not None @@ -1119,7 +1119,7 @@ def aws_cryptography_materialproviders_CreateAwsKmsDiscoveryMultiKeyringInput( discoveryFilter=( ( Option_Some( - aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.smithy_to_dafny.aws_cryptography_materialproviders_DiscoveryFilter( + aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.smithy_to_dafny.aws_cryptography_materialproviders_DiscoveryFilter( native_input.discovery_filter ) ) @@ -1130,7 +1130,7 @@ def aws_cryptography_materialproviders_CreateAwsKmsDiscoveryMultiKeyringInput( clientSupplier=( ( Option_Some( - aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.smithy_to_dafny.aws_cryptography_materialproviders_ClientSupplierReference( + aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.smithy_to_dafny.aws_cryptography_materialproviders_ClientSupplierReference( native_input.client_supplier ) ) @@ -1138,7 +1138,7 @@ def aws_cryptography_materialproviders_CreateAwsKmsDiscoveryMultiKeyringInput( if ( (native_input.client_supplier is not None) and ( - aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.smithy_to_dafny.aws_cryptography_materialproviders_ClientSupplierReference( + aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.smithy_to_dafny.aws_cryptography_materialproviders_ClientSupplierReference( native_input.client_supplier ) is not None @@ -1185,7 +1185,7 @@ def aws_cryptography_materialproviders_CreateAwsKmsMrkKeyringInput(native_input) ] ) ), - kmsClient=aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.smithy_to_dafny.aws_cryptography_materialproviders_KmsClientReference( + kmsClient=aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.smithy_to_dafny.aws_cryptography_materialproviders_KmsClientReference( native_input.kms_client ), grantTokens=( @@ -1263,7 +1263,7 @@ def aws_cryptography_materialproviders_CreateAwsKmsMrkMultiKeyringInput(native_i clientSupplier=( ( Option_Some( - aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.smithy_to_dafny.aws_cryptography_materialproviders_ClientSupplierReference( + aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.smithy_to_dafny.aws_cryptography_materialproviders_ClientSupplierReference( native_input.client_supplier ) ) @@ -1271,7 +1271,7 @@ def aws_cryptography_materialproviders_CreateAwsKmsMrkMultiKeyringInput(native_i if ( (native_input.client_supplier is not None) and ( - aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.smithy_to_dafny.aws_cryptography_materialproviders_ClientSupplierReference( + aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.smithy_to_dafny.aws_cryptography_materialproviders_ClientSupplierReference( native_input.client_supplier ) is not None @@ -1310,13 +1310,13 @@ def aws_cryptography_materialproviders_CreateAwsKmsMrkDiscoveryKeyringInput( native_input, ): return DafnyCreateAwsKmsMrkDiscoveryKeyringInput( - kmsClient=aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.smithy_to_dafny.aws_cryptography_materialproviders_KmsClientReference( + kmsClient=aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.smithy_to_dafny.aws_cryptography_materialproviders_KmsClientReference( native_input.kms_client ), discoveryFilter=( ( Option_Some( - aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.smithy_to_dafny.aws_cryptography_materialproviders_DiscoveryFilter( + aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.smithy_to_dafny.aws_cryptography_materialproviders_DiscoveryFilter( native_input.discovery_filter ) ) @@ -1383,7 +1383,7 @@ def aws_cryptography_materialproviders_CreateAwsKmsMrkDiscoveryMultiKeyringInput discoveryFilter=( ( Option_Some( - aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.smithy_to_dafny.aws_cryptography_materialproviders_DiscoveryFilter( + aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.smithy_to_dafny.aws_cryptography_materialproviders_DiscoveryFilter( native_input.discovery_filter ) ) @@ -1394,7 +1394,7 @@ def aws_cryptography_materialproviders_CreateAwsKmsMrkDiscoveryMultiKeyringInput clientSupplier=( ( Option_Some( - aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.smithy_to_dafny.aws_cryptography_materialproviders_ClientSupplierReference( + aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.smithy_to_dafny.aws_cryptography_materialproviders_ClientSupplierReference( native_input.client_supplier ) ) @@ -1402,7 +1402,7 @@ def aws_cryptography_materialproviders_CreateAwsKmsMrkDiscoveryMultiKeyringInput if ( (native_input.client_supplier is not None) and ( - aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.smithy_to_dafny.aws_cryptography_materialproviders_ClientSupplierReference( + aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.smithy_to_dafny.aws_cryptography_materialproviders_ClientSupplierReference( native_input.client_supplier ) is not None @@ -1469,7 +1469,7 @@ def aws_cryptography_materialproviders_CreateAwsKmsHierarchicalKeyringInput( branchKeyIdSupplier=( ( Option_Some( - aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.smithy_to_dafny.aws_cryptography_materialproviders_BranchKeyIdSupplierReference( + aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.smithy_to_dafny.aws_cryptography_materialproviders_BranchKeyIdSupplierReference( native_input.branch_key_id_supplier ) ) @@ -1477,7 +1477,7 @@ def aws_cryptography_materialproviders_CreateAwsKmsHierarchicalKeyringInput( if ( (native_input.branch_key_id_supplier is not None) and ( - aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.smithy_to_dafny.aws_cryptography_materialproviders_BranchKeyIdSupplierReference( + aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.smithy_to_dafny.aws_cryptography_materialproviders_BranchKeyIdSupplierReference( native_input.branch_key_id_supplier ) is not None @@ -1485,14 +1485,14 @@ def aws_cryptography_materialproviders_CreateAwsKmsHierarchicalKeyringInput( ) else (Option_None()) ), - keyStore=aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.smithy_to_dafny.aws_cryptography_materialproviders_KeyStoreReference( + keyStore=aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.smithy_to_dafny.aws_cryptography_materialproviders_KeyStoreReference( native_input.key_store ), ttlSeconds=native_input.ttl_seconds, cache=( ( Option_Some( - aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.smithy_to_dafny.aws_cryptography_materialproviders_CacheType( + aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.smithy_to_dafny.aws_cryptography_materialproviders_CacheType( native_input.cache ) ) @@ -1543,55 +1543,55 @@ def aws_cryptography_materialproviders_KeyStoreReference(native_input): def aws_cryptography_materialproviders_CacheType(native_input): if isinstance( native_input, - aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.models.CacheTypeDefault, + aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.models.CacheTypeDefault, ): CacheType_union_value = CacheType_Default( - aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.smithy_to_dafny.aws_cryptography_materialproviders_DefaultCache( + aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.smithy_to_dafny.aws_cryptography_materialproviders_DefaultCache( native_input.value ) ) elif isinstance( native_input, - aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.models.CacheTypeNo, + aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.models.CacheTypeNo, ): CacheType_union_value = CacheType_No( - aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.smithy_to_dafny.aws_cryptography_materialproviders_NoCache( + aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.smithy_to_dafny.aws_cryptography_materialproviders_NoCache( native_input.value ) ) elif isinstance( native_input, - aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.models.CacheTypeSingleThreaded, + aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.models.CacheTypeSingleThreaded, ): CacheType_union_value = CacheType_SingleThreaded( - aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.smithy_to_dafny.aws_cryptography_materialproviders_SingleThreadedCache( + aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.smithy_to_dafny.aws_cryptography_materialproviders_SingleThreadedCache( native_input.value ) ) elif isinstance( native_input, - aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.models.CacheTypeMultiThreaded, + aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.models.CacheTypeMultiThreaded, ): CacheType_union_value = CacheType_MultiThreaded( - aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.smithy_to_dafny.aws_cryptography_materialproviders_MultiThreadedCache( + aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.smithy_to_dafny.aws_cryptography_materialproviders_MultiThreadedCache( native_input.value ) ) elif isinstance( native_input, - aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.models.CacheTypeStormTracking, + aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.models.CacheTypeStormTracking, ): CacheType_union_value = CacheType_StormTracking( - aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.smithy_to_dafny.aws_cryptography_materialproviders_StormTrackingCache( + aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.smithy_to_dafny.aws_cryptography_materialproviders_StormTrackingCache( native_input.value ) ) elif isinstance( native_input, - aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.models.CacheTypeShared, + aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.models.CacheTypeShared, ): CacheType_union_value = CacheType_Shared( - aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.smithy_to_dafny.aws_cryptography_materialproviders_CryptographicMaterialsCacheReference( + aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.smithy_to_dafny.aws_cryptography_materialproviders_CryptographicMaterialsCacheReference( native_input.value ) ) @@ -1684,7 +1684,7 @@ def aws_cryptography_materialproviders_CreateAwsKmsRsaKeyringInput(native_input) kmsClient=( ( Option_Some( - aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.smithy_to_dafny.aws_cryptography_materialproviders_KmsClientReference( + aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.smithy_to_dafny.aws_cryptography_materialproviders_KmsClientReference( native_input.kms_client ) ) @@ -1692,7 +1692,7 @@ def aws_cryptography_materialproviders_CreateAwsKmsRsaKeyringInput(native_input) if ( (native_input.kms_client is not None) and ( - aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.smithy_to_dafny.aws_cryptography_materialproviders_KmsClientReference( + aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.smithy_to_dafny.aws_cryptography_materialproviders_KmsClientReference( native_input.kms_client ) is not None @@ -1729,13 +1729,13 @@ def aws_cryptography_materialproviders_CreateAwsKmsRsaKeyringInput(native_input) def aws_cryptography_materialproviders_CreateAwsKmsEcdhKeyringInput(native_input): return DafnyCreateAwsKmsEcdhKeyringInput( - KeyAgreementScheme=aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.smithy_to_dafny.aws_cryptography_materialproviders_KmsEcdhStaticConfigurations( + KeyAgreementScheme=aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.smithy_to_dafny.aws_cryptography_materialproviders_KmsEcdhStaticConfigurations( native_input.key_agreement_scheme ), curveSpec=aws_cryptography_primitives.smithygenerated.aws_cryptography_primitives.smithy_to_dafny.aws_cryptography_primitives_ECDHCurveSpec( native_input.curve_spec ), - kmsClient=aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.smithy_to_dafny.aws_cryptography_materialproviders_KmsClientReference( + kmsClient=aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.smithy_to_dafny.aws_cryptography_materialproviders_KmsClientReference( native_input.kms_client ), grantTokens=( @@ -1768,19 +1768,19 @@ def aws_cryptography_materialproviders_CreateAwsKmsEcdhKeyringInput(native_input def aws_cryptography_materialproviders_KmsEcdhStaticConfigurations(native_input): if isinstance( native_input, - aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.models.KmsEcdhStaticConfigurationsKmsPublicKeyDiscovery, + aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.models.KmsEcdhStaticConfigurationsKmsPublicKeyDiscovery, ): KmsEcdhStaticConfigurations_union_value = KmsEcdhStaticConfigurations_KmsPublicKeyDiscovery( - aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.smithy_to_dafny.aws_cryptography_materialproviders_KmsPublicKeyDiscoveryInput( + aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.smithy_to_dafny.aws_cryptography_materialproviders_KmsPublicKeyDiscoveryInput( native_input.value ) ) elif isinstance( native_input, - aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.models.KmsEcdhStaticConfigurationsKmsPrivateKeyToStaticPublicKey, + aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.models.KmsEcdhStaticConfigurationsKmsPrivateKeyToStaticPublicKey, ): KmsEcdhStaticConfigurations_union_value = KmsEcdhStaticConfigurations_KmsPrivateKeyToStaticPublicKey( - aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.smithy_to_dafny.aws_cryptography_materialproviders_KmsPrivateKeyToStaticPublicKeyInput( + aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.smithy_to_dafny.aws_cryptography_materialproviders_KmsPrivateKeyToStaticPublicKeyInput( native_input.value ) ) @@ -1843,7 +1843,7 @@ def aws_cryptography_materialproviders_CreateMultiKeyringInput(native_input): generator=( ( Option_Some( - aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.smithy_to_dafny.aws_cryptography_materialproviders_KeyringReference( + aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.smithy_to_dafny.aws_cryptography_materialproviders_KeyringReference( native_input.generator ) ) @@ -1851,7 +1851,7 @@ def aws_cryptography_materialproviders_CreateMultiKeyringInput(native_input): if ( (native_input.generator is not None) and ( - aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.smithy_to_dafny.aws_cryptography_materialproviders_KeyringReference( + aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.smithy_to_dafny.aws_cryptography_materialproviders_KeyringReference( native_input.generator ) is not None @@ -1861,7 +1861,7 @@ def aws_cryptography_materialproviders_CreateMultiKeyringInput(native_input): ), childKeyrings=Seq( [ - aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.smithy_to_dafny.aws_cryptography_materialproviders_KeyringReference( + aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.smithy_to_dafny.aws_cryptography_materialproviders_KeyringReference( list_element ) for list_element in native_input.child_keyrings @@ -1901,7 +1901,7 @@ def aws_cryptography_materialproviders_CreateRawAesKeyringInput(native_input): ) ), wrappingKey=Seq(native_input.wrapping_key), - wrappingAlg=aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.smithy_to_dafny.aws_cryptography_materialproviders_AesWrappingAlg( + wrappingAlg=aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.smithy_to_dafny.aws_cryptography_materialproviders_AesWrappingAlg( native_input.wrapping_alg ), ) @@ -1943,7 +1943,7 @@ def aws_cryptography_materialproviders_CreateRawRsaKeyringInput(native_input): ] ) ), - paddingScheme=aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.smithy_to_dafny.aws_cryptography_materialproviders_PaddingScheme( + paddingScheme=aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.smithy_to_dafny.aws_cryptography_materialproviders_PaddingScheme( native_input.padding_scheme ), publicKey=( @@ -1981,7 +1981,7 @@ def aws_cryptography_materialproviders_PaddingScheme(native_input): def aws_cryptography_materialproviders_CreateRawEcdhKeyringInput(native_input): return DafnyCreateRawEcdhKeyringInput( - KeyAgreementScheme=aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.smithy_to_dafny.aws_cryptography_materialproviders_RawEcdhStaticConfigurations( + KeyAgreementScheme=aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.smithy_to_dafny.aws_cryptography_materialproviders_RawEcdhStaticConfigurations( native_input.key_agreement_scheme ), curveSpec=aws_cryptography_primitives.smithygenerated.aws_cryptography_primitives.smithy_to_dafny.aws_cryptography_primitives_ECDHCurveSpec( @@ -1993,28 +1993,28 @@ def aws_cryptography_materialproviders_CreateRawEcdhKeyringInput(native_input): def aws_cryptography_materialproviders_RawEcdhStaticConfigurations(native_input): if isinstance( native_input, - aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.models.RawEcdhStaticConfigurationsPublicKeyDiscovery, + aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.models.RawEcdhStaticConfigurationsPublicKeyDiscovery, ): RawEcdhStaticConfigurations_union_value = RawEcdhStaticConfigurations_PublicKeyDiscovery( - aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.smithy_to_dafny.aws_cryptography_materialproviders_PublicKeyDiscoveryInput( + aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.smithy_to_dafny.aws_cryptography_materialproviders_PublicKeyDiscoveryInput( native_input.value ) ) elif isinstance( native_input, - aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.models.RawEcdhStaticConfigurationsRawPrivateKeyToStaticPublicKey, + aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.models.RawEcdhStaticConfigurationsRawPrivateKeyToStaticPublicKey, ): RawEcdhStaticConfigurations_union_value = RawEcdhStaticConfigurations_RawPrivateKeyToStaticPublicKey( - aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.smithy_to_dafny.aws_cryptography_materialproviders_RawPrivateKeyToStaticPublicKeyInput( + aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.smithy_to_dafny.aws_cryptography_materialproviders_RawPrivateKeyToStaticPublicKeyInput( native_input.value ) ) elif isinstance( native_input, - aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.models.RawEcdhStaticConfigurationsEphemeralPrivateKeyToStaticPublicKey, + aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.models.RawEcdhStaticConfigurationsEphemeralPrivateKeyToStaticPublicKey, ): RawEcdhStaticConfigurations_union_value = RawEcdhStaticConfigurations_EphemeralPrivateKeyToStaticPublicKey( - aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.smithy_to_dafny.aws_cryptography_materialproviders_EphemeralPrivateKeyToStaticPublicKeyInput( + aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.smithy_to_dafny.aws_cryptography_materialproviders_EphemeralPrivateKeyToStaticPublicKeyInput( native_input.value ) ) @@ -2053,7 +2053,7 @@ def aws_cryptography_materialproviders_CreateDefaultCryptographicMaterialsManage native_input, ): return DafnyCreateDefaultCryptographicMaterialsManagerInput( - keyring=aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.smithy_to_dafny.aws_cryptography_materialproviders_KeyringReference( + keyring=aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.smithy_to_dafny.aws_cryptography_materialproviders_KeyringReference( native_input.keyring ), ) @@ -2066,7 +2066,7 @@ def aws_cryptography_materialproviders_CreateRequiredEncryptionContextCMMInput( underlyingCMM=( ( Option_Some( - aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.smithy_to_dafny.aws_cryptography_materialproviders_CryptographicMaterialsManagerReference( + aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.smithy_to_dafny.aws_cryptography_materialproviders_CryptographicMaterialsManagerReference( native_input.underlying_cmm ) ) @@ -2074,7 +2074,7 @@ def aws_cryptography_materialproviders_CreateRequiredEncryptionContextCMMInput( if ( (native_input.underlying_cmm is not None) and ( - aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.smithy_to_dafny.aws_cryptography_materialproviders_CryptographicMaterialsManagerReference( + aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.smithy_to_dafny.aws_cryptography_materialproviders_CryptographicMaterialsManagerReference( native_input.underlying_cmm ) is not None @@ -2085,7 +2085,7 @@ def aws_cryptography_materialproviders_CreateRequiredEncryptionContextCMMInput( keyring=( ( Option_Some( - aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.smithy_to_dafny.aws_cryptography_materialproviders_KeyringReference( + aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.smithy_to_dafny.aws_cryptography_materialproviders_KeyringReference( native_input.keyring ) ) @@ -2093,7 +2093,7 @@ def aws_cryptography_materialproviders_CreateRequiredEncryptionContextCMMInput( if ( (native_input.keyring is not None) and ( - aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.smithy_to_dafny.aws_cryptography_materialproviders_KeyringReference( + aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.smithy_to_dafny.aws_cryptography_materialproviders_KeyringReference( native_input.keyring ) is not None @@ -2124,7 +2124,7 @@ def aws_cryptography_materialproviders_CreateCryptographicMaterialsCacheInput( native_input, ): return DafnyCreateCryptographicMaterialsCacheInput( - cache=aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.smithy_to_dafny.aws_cryptography_materialproviders_CacheType( + cache=aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.smithy_to_dafny.aws_cryptography_materialproviders_CacheType( native_input.cache ), ) @@ -2136,7 +2136,7 @@ def aws_cryptography_materialproviders_CreateDefaultClientSupplierInput(native_i def aws_cryptography_materialproviders_InitializeEncryptionMaterialsInput(native_input): return DafnyInitializeEncryptionMaterialsInput( - algorithmSuiteId=aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.smithy_to_dafny.aws_cryptography_materialproviders_AlgorithmSuiteId( + algorithmSuiteId=aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.smithy_to_dafny.aws_cryptography_materialproviders_AlgorithmSuiteId( native_input.algorithm_suite_id ), encryptionContext=Map( @@ -2166,7 +2166,7 @@ def aws_cryptography_materialproviders_InitializeEncryptionMaterialsInput(native def aws_cryptography_materialproviders_InitializeDecryptionMaterialsInput(native_input): return DafnyInitializeDecryptionMaterialsInput( - algorithmSuiteId=aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.smithy_to_dafny.aws_cryptography_materialproviders_AlgorithmSuiteId( + algorithmSuiteId=aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.smithy_to_dafny.aws_cryptography_materialproviders_AlgorithmSuiteId( native_input.algorithm_suite_id ), encryptionContext=Map( @@ -2188,10 +2188,10 @@ def aws_cryptography_materialproviders_ValidEncryptionMaterialsTransitionInput( native_input, ): return DafnyValidEncryptionMaterialsTransitionInput( - start=aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.smithy_to_dafny.aws_cryptography_materialproviders_EncryptionMaterials( + start=aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.smithy_to_dafny.aws_cryptography_materialproviders_EncryptionMaterials( native_input.start ), - stop=aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.smithy_to_dafny.aws_cryptography_materialproviders_EncryptionMaterials( + stop=aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.smithy_to_dafny.aws_cryptography_materialproviders_EncryptionMaterials( native_input.stop ), ) @@ -2201,10 +2201,10 @@ def aws_cryptography_materialproviders_ValidDecryptionMaterialsTransitionInput( native_input, ): return DafnyValidDecryptionMaterialsTransitionInput( - start=aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.smithy_to_dafny.aws_cryptography_materialproviders_DecryptionMaterials( + start=aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.smithy_to_dafny.aws_cryptography_materialproviders_DecryptionMaterials( native_input.start ), - stop=aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.smithy_to_dafny.aws_cryptography_materialproviders_DecryptionMaterials( + stop=aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.smithy_to_dafny.aws_cryptography_materialproviders_DecryptionMaterials( native_input.stop ), ) @@ -2218,10 +2218,10 @@ def aws_cryptography_materialproviders_ValidateCommitmentPolicyOnEncryptInput( native_input, ): return DafnyValidateCommitmentPolicyOnEncryptInput( - algorithm=aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.smithy_to_dafny.aws_cryptography_materialproviders_AlgorithmSuiteId( + algorithm=aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.smithy_to_dafny.aws_cryptography_materialproviders_AlgorithmSuiteId( native_input.algorithm ), - commitmentPolicy=aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.smithy_to_dafny.aws_cryptography_materialproviders_CommitmentPolicy( + commitmentPolicy=aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.smithy_to_dafny.aws_cryptography_materialproviders_CommitmentPolicy( native_input.commitment_policy ), ) @@ -2231,17 +2231,17 @@ def aws_cryptography_materialproviders_ValidateCommitmentPolicyOnDecryptInput( native_input, ): return DafnyValidateCommitmentPolicyOnDecryptInput( - algorithm=aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.smithy_to_dafny.aws_cryptography_materialproviders_AlgorithmSuiteId( + algorithm=aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.smithy_to_dafny.aws_cryptography_materialproviders_AlgorithmSuiteId( native_input.algorithm ), - commitmentPolicy=aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.smithy_to_dafny.aws_cryptography_materialproviders_CommitmentPolicy( + commitmentPolicy=aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.smithy_to_dafny.aws_cryptography_materialproviders_CommitmentPolicy( native_input.commitment_policy ), ) def aws_cryptography_materialproviders_CreateKeyringOutput(native_input): - return aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.smithy_to_dafny.aws_cryptography_materialproviders_KeyringReference( + return aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.smithy_to_dafny.aws_cryptography_materialproviders_KeyringReference( native_input ) @@ -2249,7 +2249,7 @@ def aws_cryptography_materialproviders_CreateKeyringOutput(native_input): def aws_cryptography_materialproviders_CreateCryptographicMaterialsManagerOutput( native_input, ): - return aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.smithy_to_dafny.aws_cryptography_materialproviders_CryptographicMaterialsManagerReference( + return aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.smithy_to_dafny.aws_cryptography_materialproviders_CryptographicMaterialsManagerReference( native_input ) @@ -2257,7 +2257,7 @@ def aws_cryptography_materialproviders_CreateCryptographicMaterialsManagerOutput def aws_cryptography_materialproviders_CreateRequiredEncryptionContextCMMOutput( native_input, ): - return aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.smithy_to_dafny.aws_cryptography_materialproviders_CryptographicMaterialsManagerReference( + return aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.smithy_to_dafny.aws_cryptography_materialproviders_CryptographicMaterialsManagerReference( native_input ) @@ -2265,13 +2265,13 @@ def aws_cryptography_materialproviders_CreateRequiredEncryptionContextCMMOutput( def aws_cryptography_materialproviders_CreateCryptographicMaterialsCacheOutput( native_input, ): - return aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.smithy_to_dafny.aws_cryptography_materialproviders_CryptographicMaterialsCacheReference( + return aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.smithy_to_dafny.aws_cryptography_materialproviders_CryptographicMaterialsCacheReference( native_input ) def aws_cryptography_materialproviders_CreateDefaultClientSupplierOutput(native_input): - return aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.smithy_to_dafny.aws_cryptography_materialproviders_ClientSupplierReference( + return aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.smithy_to_dafny.aws_cryptography_materialproviders_ClientSupplierReference( native_input ) diff --git a/AwsCryptographicMaterialProviders/runtimes/python/src/aws_cryptographic_materialproviders/internaldafny/generated/dafny_src-py.dtr b/AwsCryptographicMaterialProviders/runtimes/python/src/aws_cryptographic_materialproviders/internaldafny/generated/dafny_src-py.dtr deleted file mode 100644 index 0639ba4cf..000000000 --- a/AwsCryptographicMaterialProviders/runtimes/python/src/aws_cryptographic_materialproviders/internaldafny/generated/dafny_src-py.dtr +++ /dev/null @@ -1,179 +0,0 @@ -file_format_version = "1.0" -dafny_version = "4.8.0.0" -[options_by_module.AwsCryptographyKeyStoreTypes] -legacy-module-names = false -python-module-name = "aws_cryptographic_materialproviders.internaldafny.generated" -[options_by_module.AbstractAwsCryptographyKeyStoreOperations] -legacy-module-names = false -python-module-name = "aws_cryptographic_materialproviders.internaldafny.generated" -[options_by_module.AbstractAwsCryptographyKeyStoreService] -legacy-module-names = false -python-module-name = "aws_cryptographic_materialproviders.internaldafny.generated" -[options_by_module.AwsCryptographyMaterialProvidersTypes] -legacy-module-names = false -python-module-name = "aws_cryptographic_materialproviders.internaldafny.generated" -[options_by_module.AwsArnParsing] -legacy-module-names = false -python-module-name = "aws_cryptographic_materialproviders.internaldafny.generated" -[options_by_module.AwsKmsMrkMatchForDecrypt] -legacy-module-names = false -python-module-name = "aws_cryptographic_materialproviders.internaldafny.generated" -[options_by_module.AwsKmsUtils] -legacy-module-names = false -python-module-name = "aws_cryptographic_materialproviders.internaldafny.generated" -[options_by_module.KeyStoreErrorMessages] -legacy-module-names = false -python-module-name = "aws_cryptographic_materialproviders.internaldafny.generated" -[options_by_module.KmsArn] -legacy-module-names = false -python-module-name = "aws_cryptographic_materialproviders.internaldafny.generated" -[options_by_module.Structure] -legacy-module-names = false -python-module-name = "aws_cryptographic_materialproviders.internaldafny.generated" -[options_by_module.KMSKeystoreOperations] -legacy-module-names = false -python-module-name = "aws_cryptographic_materialproviders.internaldafny.generated" -[options_by_module.DDBKeystoreOperations] -legacy-module-names = false -python-module-name = "aws_cryptographic_materialproviders.internaldafny.generated" -[options_by_module.CreateKeys] -legacy-module-names = false -python-module-name = "aws_cryptographic_materialproviders.internaldafny.generated" -[options_by_module.CreateKeyStoreTable] -legacy-module-names = false -python-module-name = "aws_cryptographic_materialproviders.internaldafny.generated" -[options_by_module.GetKeys] -legacy-module-names = false -python-module-name = "aws_cryptographic_materialproviders.internaldafny.generated" -[options_by_module.AwsCryptographyKeyStoreOperations] -legacy-module-names = false -python-module-name = "aws_cryptographic_materialproviders.internaldafny.generated" -[options_by_module.KeyStore] -legacy-module-names = false -python-module-name = "aws_cryptographic_materialproviders.internaldafny.generated" -[options_by_module.AbstractAwsCryptographyMaterialProvidersOperations] -legacy-module-names = false -python-module-name = "aws_cryptographic_materialproviders.internaldafny.generated" -[options_by_module.AbstractAwsCryptographyMaterialProvidersService] -legacy-module-names = false -python-module-name = "aws_cryptographic_materialproviders.internaldafny.generated" -[options_by_module.AlgorithmSuites] -legacy-module-names = false -python-module-name = "aws_cryptographic_materialproviders.internaldafny.generated" -[options_by_module.Materials] -legacy-module-names = false -python-module-name = "aws_cryptographic_materialproviders.internaldafny.generated" -[options_by_module.Keyring] -legacy-module-names = false -python-module-name = "aws_cryptographic_materialproviders.internaldafny.generated" -[options_by_module.MultiKeyring] -legacy-module-names = false -python-module-name = "aws_cryptographic_materialproviders.internaldafny.generated" -[options_by_module.AwsKmsMrkAreUnique] -legacy-module-names = false -python-module-name = "aws_cryptographic_materialproviders.internaldafny.generated" -[options_by_module.Constants] -legacy-module-names = false -python-module-name = "aws_cryptographic_materialproviders.internaldafny.generated" -[options_by_module.MaterialWrapping] -legacy-module-names = false -python-module-name = "aws_cryptographic_materialproviders.internaldafny.generated" -[options_by_module.CanonicalEncryptionContext] -legacy-module-names = false -python-module-name = "aws_cryptographic_materialproviders.internaldafny.generated" -[options_by_module.IntermediateKeyWrapping] -legacy-module-names = false -python-module-name = "aws_cryptographic_materialproviders.internaldafny.generated" -[options_by_module.EdkWrapping] -legacy-module-names = false -python-module-name = "aws_cryptographic_materialproviders.internaldafny.generated" -[options_by_module.ErrorMessages] -legacy-module-names = false -python-module-name = "aws_cryptographic_materialproviders.internaldafny.generated" -[options_by_module.AwsKmsKeyring] -legacy-module-names = false -python-module-name = "aws_cryptographic_materialproviders.internaldafny.generated" -[options_by_module.StrictMultiKeyring] -legacy-module-names = false -python-module-name = "aws_cryptographic_materialproviders.internaldafny.generated" -[options_by_module.AwsKmsDiscoveryKeyring] -legacy-module-names = false -python-module-name = "aws_cryptographic_materialproviders.internaldafny.generated" -[options_by_module.DiscoveryMultiKeyring] -legacy-module-names = false -python-module-name = "aws_cryptographic_materialproviders.internaldafny.generated" -[options_by_module.AwsKmsMrkDiscoveryKeyring] -legacy-module-names = false -python-module-name = "aws_cryptographic_materialproviders.internaldafny.generated" -[options_by_module.MrkAwareDiscoveryMultiKeyring] -legacy-module-names = false -python-module-name = "aws_cryptographic_materialproviders.internaldafny.generated" -[options_by_module.AwsKmsMrkKeyring] -legacy-module-names = false -python-module-name = "aws_cryptographic_materialproviders.internaldafny.generated" -[options_by_module.MrkAwareStrictMultiKeyring] -legacy-module-names = false -python-module-name = "aws_cryptographic_materialproviders.internaldafny.generated" -[options_by_module.LocalCMC] -legacy-module-names = false -python-module-name = "aws_cryptographic_materialproviders.internaldafny.generated" -[options_by_module.SynchronizedLocalCMC] -legacy-module-names = false -python-module-name = "aws_cryptographic_materialproviders.internaldafny.generated" -[options_by_module.StormTracker] -legacy-module-names = false -python-module-name = "aws_cryptographic_materialproviders.internaldafny.generated" -[options_by_module.StormTrackingCMC] -legacy-module-names = false -python-module-name = "aws_cryptographic_materialproviders.internaldafny.generated" -[options_by_module.CacheConstants] -legacy-module-names = false -python-module-name = "aws_cryptographic_materialproviders.internaldafny.generated" -[options_by_module.AwsKmsHierarchicalKeyring] -legacy-module-names = false -python-module-name = "aws_cryptographic_materialproviders.internaldafny.generated" -[options_by_module.AwsKmsRsaKeyring] -legacy-module-names = false -python-module-name = "aws_cryptographic_materialproviders.internaldafny.generated" -[options_by_module.EcdhEdkWrapping] -legacy-module-names = false -python-module-name = "aws_cryptographic_materialproviders.internaldafny.generated" -[options_by_module.RawECDHKeyring] -legacy-module-names = false -python-module-name = "aws_cryptographic_materialproviders.internaldafny.generated" -[options_by_module.AwsKmsEcdhKeyring] -legacy-module-names = false -python-module-name = "aws_cryptographic_materialproviders.internaldafny.generated" -[options_by_module.RawAESKeyring] -legacy-module-names = false -python-module-name = "aws_cryptographic_materialproviders.internaldafny.generated" -[options_by_module.RawRSAKeyring] -legacy-module-names = false -python-module-name = "aws_cryptographic_materialproviders.internaldafny.generated" -[options_by_module.CMM] -legacy-module-names = false -python-module-name = "aws_cryptographic_materialproviders.internaldafny.generated" -[options_by_module.Defaults] -legacy-module-names = false -python-module-name = "aws_cryptographic_materialproviders.internaldafny.generated" -[options_by_module.Commitment] -legacy-module-names = false -python-module-name = "aws_cryptographic_materialproviders.internaldafny.generated" -[options_by_module.DefaultCMM] -legacy-module-names = false -python-module-name = "aws_cryptographic_materialproviders.internaldafny.generated" -[options_by_module.DefaultClientSupplier] -legacy-module-names = false -python-module-name = "aws_cryptographic_materialproviders.internaldafny.generated" -[options_by_module.Utils] -legacy-module-names = false -python-module-name = "aws_cryptographic_materialproviders.internaldafny.generated" -[options_by_module.RequiredEncryptionContextCMM] -legacy-module-names = false -python-module-name = "aws_cryptographic_materialproviders.internaldafny.generated" -[options_by_module.AwsCryptographyMaterialProvidersOperations] -legacy-module-names = false -python-module-name = "aws_cryptographic_materialproviders.internaldafny.generated" -[options_by_module.MaterialProviders] -legacy-module-names = false -python-module-name = "aws_cryptographic_materialproviders.internaldafny.generated" diff --git a/AwsCryptographicMaterialProviders/runtimes/python/src/aws_cryptographic_materialproviders/mpl/client.py b/AwsCryptographicMaterialProviders/runtimes/python/src/aws_cryptographic_materialproviders/mpl/client.py deleted file mode 100644 index 1b396c435..000000000 --- a/AwsCryptographicMaterialProviders/runtimes/python/src/aws_cryptographic_materialproviders/mpl/client.py +++ /dev/null @@ -1,3 +0,0 @@ -# Copyright Amazon.com Inc. or its affiliates. All Rights Reserved. -# SPDX-License-Identifier: Apache-2.0 -from aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.client import * diff --git a/AwsCryptographicMaterialProviders/runtimes/python/src/aws_cryptographic_materialproviders/mpl/config.py b/AwsCryptographicMaterialProviders/runtimes/python/src/aws_cryptographic_materialproviders/mpl/config.py deleted file mode 100644 index 4d0b3109c..000000000 --- a/AwsCryptographicMaterialProviders/runtimes/python/src/aws_cryptographic_materialproviders/mpl/config.py +++ /dev/null @@ -1,3 +0,0 @@ -# Copyright Amazon.com Inc. or its affiliates. All Rights Reserved. -# SPDX-License-Identifier: Apache-2.0 -from aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.config import * diff --git a/AwsCryptographicMaterialProviders/runtimes/python/src/aws_cryptographic_materialproviders/mpl/errors.py b/AwsCryptographicMaterialProviders/runtimes/python/src/aws_cryptographic_materialproviders/mpl/errors.py deleted file mode 100644 index 90c40e051..000000000 --- a/AwsCryptographicMaterialProviders/runtimes/python/src/aws_cryptographic_materialproviders/mpl/errors.py +++ /dev/null @@ -1,3 +0,0 @@ -# Copyright Amazon.com Inc. or its affiliates. All Rights Reserved. -# SPDX-License-Identifier: Apache-2.0 -from aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.errors import * diff --git a/AwsCryptographicMaterialProviders/runtimes/python/src/aws_cryptographic_materialproviders/mpl/models.py b/AwsCryptographicMaterialProviders/runtimes/python/src/aws_cryptographic_materialproviders/mpl/models.py deleted file mode 100644 index 4545350cc..000000000 --- a/AwsCryptographicMaterialProviders/runtimes/python/src/aws_cryptographic_materialproviders/mpl/models.py +++ /dev/null @@ -1,3 +0,0 @@ -# Copyright Amazon.com Inc. or its affiliates. All Rights Reserved. -# SPDX-License-Identifier: Apache-2.0 -from aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.models import * diff --git a/AwsCryptographicMaterialProviders/runtimes/python/src/aws_cryptographic_materialproviders/mpl/references.py b/AwsCryptographicMaterialProviders/runtimes/python/src/aws_cryptographic_materialproviders/mpl/references.py deleted file mode 100644 index 9d03ff462..000000000 --- a/AwsCryptographicMaterialProviders/runtimes/python/src/aws_cryptographic_materialproviders/mpl/references.py +++ /dev/null @@ -1,3 +0,0 @@ -# Copyright Amazon.com Inc. or its affiliates. All Rights Reserved. -# SPDX-License-Identifier: Apache-2.0 -from aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.references import * diff --git a/AwsCryptographicMaterialProviders/runtimes/python/src/aws_cryptographic_materialproviders/smithygenerated/aws_cryptography_materialproviders/shim.py b/AwsCryptographicMaterialProviders/runtimes/python/src/aws_cryptographic_materialproviders/smithygenerated/aws_cryptography_materialproviders/shim.py deleted file mode 100644 index af4e9769b..000000000 --- a/AwsCryptographicMaterialProviders/runtimes/python/src/aws_cryptographic_materialproviders/smithygenerated/aws_cryptography_materialproviders/shim.py +++ /dev/null @@ -1,548 +0,0 @@ -# Code generated by smithy-python-codegen DO NOT EDIT. - -import aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.dafny_to_smithy -import aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.errors -import aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.models -import aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.smithy_to_dafny -import module_ -from software_amazon_cryptography_materialproviders_internaldafny_types import ( - AlgorithmSuiteInfo_AlgorithmSuiteInfo as DafnyAlgorithmSuiteInfo, - CreateAwsKmsDiscoveryKeyringInput_CreateAwsKmsDiscoveryKeyringInput as DafnyCreateAwsKmsDiscoveryKeyringInput, - CreateAwsKmsDiscoveryMultiKeyringInput_CreateAwsKmsDiscoveryMultiKeyringInput as DafnyCreateAwsKmsDiscoveryMultiKeyringInput, - CreateAwsKmsHierarchicalKeyringInput_CreateAwsKmsHierarchicalKeyringInput as DafnyCreateAwsKmsHierarchicalKeyringInput, - CreateAwsKmsKeyringInput_CreateAwsKmsKeyringInput as DafnyCreateAwsKmsKeyringInput, - CreateAwsKmsMrkDiscoveryKeyringInput_CreateAwsKmsMrkDiscoveryKeyringInput as DafnyCreateAwsKmsMrkDiscoveryKeyringInput, - CreateAwsKmsMrkDiscoveryMultiKeyringInput_CreateAwsKmsMrkDiscoveryMultiKeyringInput as DafnyCreateAwsKmsMrkDiscoveryMultiKeyringInput, - CreateAwsKmsMrkKeyringInput_CreateAwsKmsMrkKeyringInput as DafnyCreateAwsKmsMrkKeyringInput, - CreateAwsKmsMrkMultiKeyringInput_CreateAwsKmsMrkMultiKeyringInput as DafnyCreateAwsKmsMrkMultiKeyringInput, - CreateAwsKmsMultiKeyringInput_CreateAwsKmsMultiKeyringInput as DafnyCreateAwsKmsMultiKeyringInput, - CreateAwsKmsRsaKeyringInput_CreateAwsKmsRsaKeyringInput as DafnyCreateAwsKmsRsaKeyringInput, - CreateCryptographicMaterialsCacheInput_CreateCryptographicMaterialsCacheInput as DafnyCreateCryptographicMaterialsCacheInput, - CreateDefaultClientSupplierInput_CreateDefaultClientSupplierInput as DafnyCreateDefaultClientSupplierInput, - CreateDefaultCryptographicMaterialsManagerInput_CreateDefaultCryptographicMaterialsManagerInput as DafnyCreateDefaultCryptographicMaterialsManagerInput, - CreateMultiKeyringInput_CreateMultiKeyringInput as DafnyCreateMultiKeyringInput, - CreateRawAesKeyringInput_CreateRawAesKeyringInput as DafnyCreateRawAesKeyringInput, - CreateRawRsaKeyringInput_CreateRawRsaKeyringInput as DafnyCreateRawRsaKeyringInput, - CreateRequiredEncryptionContextCMMInput_CreateRequiredEncryptionContextCMMInput as DafnyCreateRequiredEncryptionContextCMMInput, - DecryptionMaterials_DecryptionMaterials as DafnyDecryptionMaterials, - EncryptionMaterials_EncryptionMaterials as DafnyEncryptionMaterials, - InitializeDecryptionMaterialsInput_InitializeDecryptionMaterialsInput as DafnyInitializeDecryptionMaterialsInput, - InitializeEncryptionMaterialsInput_InitializeEncryptionMaterialsInput as DafnyInitializeEncryptionMaterialsInput, - ValidDecryptionMaterialsTransitionInput_ValidDecryptionMaterialsTransitionInput as DafnyValidDecryptionMaterialsTransitionInput, - ValidEncryptionMaterialsTransitionInput_ValidEncryptionMaterialsTransitionInput as DafnyValidEncryptionMaterialsTransitionInput, - ValidateCommitmentPolicyOnDecryptInput_ValidateCommitmentPolicyOnDecryptInput as DafnyValidateCommitmentPolicyOnDecryptInput, - ValidateCommitmentPolicyOnEncryptInput_ValidateCommitmentPolicyOnEncryptInput as DafnyValidateCommitmentPolicyOnEncryptInput, -) -from typing import Any - -from .errors import ( - CollectionOfErrors, - OpaqueError, - ServiceError, - _smithy_error_to_dafny_error, -) - - -import Wrappers -import software_amazon_cryptography_materialproviders_internaldafny_types -import aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.client as client_impl - - -class MaterialProvidersShim( - software_amazon_cryptography_materialproviders_internaldafny_types.IAwsCryptographicMaterialProvidersClient -): - def __init__(self, _impl: client_impl): - self._impl = _impl - - def CreateAwsKmsKeyring(self, input): - smithy_client_request: ( - aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.models.CreateAwsKmsKeyringInput - ) = aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.dafny_to_smithy.aws_cryptography_materialproviders_CreateAwsKmsKeyringInput( - input - ) - try: - smithy_client_response = self._impl.create_aws_kms_keyring( - smithy_client_request - ) - except ServiceError as e: - return Wrappers.Result_Failure(_smithy_error_to_dafny_error(e)) - - return Wrappers.Result_Success( - aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.smithy_to_dafny.aws_cryptography_materialproviders_CreateKeyringOutput( - smithy_client_response - ) - ) - - def CreateAwsKmsDiscoveryKeyring(self, input): - smithy_client_request: ( - aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.models.CreateAwsKmsDiscoveryKeyringInput - ) = aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.dafny_to_smithy.aws_cryptography_materialproviders_CreateAwsKmsDiscoveryKeyringInput( - input - ) - try: - smithy_client_response = self._impl.create_aws_kms_discovery_keyring( - smithy_client_request - ) - except ServiceError as e: - return Wrappers.Result_Failure(_smithy_error_to_dafny_error(e)) - - return Wrappers.Result_Success( - aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.smithy_to_dafny.aws_cryptography_materialproviders_CreateKeyringOutput( - smithy_client_response - ) - ) - - def CreateAwsKmsMultiKeyring(self, input): - smithy_client_request: ( - aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.models.CreateAwsKmsMultiKeyringInput - ) = aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.dafny_to_smithy.aws_cryptography_materialproviders_CreateAwsKmsMultiKeyringInput( - input - ) - try: - smithy_client_response = self._impl.create_aws_kms_multi_keyring( - smithy_client_request - ) - except ServiceError as e: - return Wrappers.Result_Failure(_smithy_error_to_dafny_error(e)) - - return Wrappers.Result_Success( - aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.smithy_to_dafny.aws_cryptography_materialproviders_CreateKeyringOutput( - smithy_client_response - ) - ) - - def CreateAwsKmsDiscoveryMultiKeyring(self, input): - smithy_client_request: ( - aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.models.CreateAwsKmsDiscoveryMultiKeyringInput - ) = aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.dafny_to_smithy.aws_cryptography_materialproviders_CreateAwsKmsDiscoveryMultiKeyringInput( - input - ) - try: - smithy_client_response = self._impl.create_aws_kms_discovery_multi_keyring( - smithy_client_request - ) - except ServiceError as e: - return Wrappers.Result_Failure(_smithy_error_to_dafny_error(e)) - - return Wrappers.Result_Success( - aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.smithy_to_dafny.aws_cryptography_materialproviders_CreateKeyringOutput( - smithy_client_response - ) - ) - - def CreateAwsKmsMrkKeyring(self, input): - smithy_client_request: ( - aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.models.CreateAwsKmsMrkKeyringInput - ) = aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.dafny_to_smithy.aws_cryptography_materialproviders_CreateAwsKmsMrkKeyringInput( - input - ) - try: - smithy_client_response = self._impl.create_aws_kms_mrk_keyring( - smithy_client_request - ) - except ServiceError as e: - return Wrappers.Result_Failure(_smithy_error_to_dafny_error(e)) - - return Wrappers.Result_Success( - aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.smithy_to_dafny.aws_cryptography_materialproviders_CreateKeyringOutput( - smithy_client_response - ) - ) - - def CreateAwsKmsMrkMultiKeyring(self, input): - smithy_client_request: ( - aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.models.CreateAwsKmsMrkMultiKeyringInput - ) = aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.dafny_to_smithy.aws_cryptography_materialproviders_CreateAwsKmsMrkMultiKeyringInput( - input - ) - try: - smithy_client_response = self._impl.create_aws_kms_mrk_multi_keyring( - smithy_client_request - ) - except ServiceError as e: - return Wrappers.Result_Failure(_smithy_error_to_dafny_error(e)) - - return Wrappers.Result_Success( - aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.smithy_to_dafny.aws_cryptography_materialproviders_CreateKeyringOutput( - smithy_client_response - ) - ) - - def CreateAwsKmsMrkDiscoveryKeyring(self, input): - smithy_client_request: ( - aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.models.CreateAwsKmsMrkDiscoveryKeyringInput - ) = aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.dafny_to_smithy.aws_cryptography_materialproviders_CreateAwsKmsMrkDiscoveryKeyringInput( - input - ) - try: - smithy_client_response = self._impl.create_aws_kms_mrk_discovery_keyring( - smithy_client_request - ) - except ServiceError as e: - return Wrappers.Result_Failure(_smithy_error_to_dafny_error(e)) - - return Wrappers.Result_Success( - aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.smithy_to_dafny.aws_cryptography_materialproviders_CreateKeyringOutput( - smithy_client_response - ) - ) - - def CreateAwsKmsMrkDiscoveryMultiKeyring(self, input): - smithy_client_request: ( - aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.models.CreateAwsKmsMrkDiscoveryMultiKeyringInput - ) = aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.dafny_to_smithy.aws_cryptography_materialproviders_CreateAwsKmsMrkDiscoveryMultiKeyringInput( - input - ) - try: - smithy_client_response = ( - self._impl.create_aws_kms_mrk_discovery_multi_keyring( - smithy_client_request - ) - ) - except ServiceError as e: - return Wrappers.Result_Failure(_smithy_error_to_dafny_error(e)) - - return Wrappers.Result_Success( - aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.smithy_to_dafny.aws_cryptography_materialproviders_CreateKeyringOutput( - smithy_client_response - ) - ) - - def CreateAwsKmsHierarchicalKeyring(self, input): - smithy_client_request: ( - aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.models.CreateAwsKmsHierarchicalKeyringInput - ) = aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.dafny_to_smithy.aws_cryptography_materialproviders_CreateAwsKmsHierarchicalKeyringInput( - input - ) - try: - smithy_client_response = self._impl.create_aws_kms_hierarchical_keyring( - smithy_client_request - ) - except Exception as e: - return Wrappers.Result_Failure(_smithy_error_to_dafny_error(e)) - - return Wrappers.Result_Success( - aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.smithy_to_dafny.aws_cryptography_materialproviders_CreateKeyringOutput( - smithy_client_response - ) - ) - - def CreateMultiKeyring(self, input): - smithy_client_request: ( - aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.models.CreateMultiKeyringInput - ) = aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.dafny_to_smithy.aws_cryptography_materialproviders_CreateMultiKeyringInput( - input - ) - try: - smithy_client_response = self._impl.create_multi_keyring( - smithy_client_request - ) - except ServiceError as e: - return Wrappers.Result_Failure(_smithy_error_to_dafny_error(e)) - - return Wrappers.Result_Success( - aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.smithy_to_dafny.aws_cryptography_materialproviders_CreateKeyringOutput( - smithy_client_response - ) - ) - - def CreateRawAesKeyring(self, input): - smithy_client_request: ( - aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.models.CreateRawAesKeyringInput - ) = aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.dafny_to_smithy.aws_cryptography_materialproviders_CreateRawAesKeyringInput( - input - ) - try: - smithy_client_response = self._impl.create_raw_aes_keyring( - smithy_client_request - ) - except ServiceError as e: - return Wrappers.Result_Failure(_smithy_error_to_dafny_error(e)) - - return Wrappers.Result_Success( - aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.smithy_to_dafny.aws_cryptography_materialproviders_CreateKeyringOutput( - smithy_client_response - ) - ) - - def CreateRawRsaKeyring(self, input): - smithy_client_request: ( - aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.models.CreateRawRsaKeyringInput - ) = aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.dafny_to_smithy.aws_cryptography_materialproviders_CreateRawRsaKeyringInput( - input - ) - try: - smithy_client_response = self._impl.create_raw_rsa_keyring( - smithy_client_request - ) - except ServiceError as e: - return Wrappers.Result_Failure(_smithy_error_to_dafny_error(e)) - - return Wrappers.Result_Success( - aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.smithy_to_dafny.aws_cryptography_materialproviders_CreateKeyringOutput( - smithy_client_response - ) - ) - - def CreateAwsKmsRsaKeyring(self, input): - smithy_client_request: ( - aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.models.CreateAwsKmsRsaKeyringInput - ) = aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.dafny_to_smithy.aws_cryptography_materialproviders_CreateAwsKmsRsaKeyringInput( - input - ) - try: - smithy_client_response = self._impl.create_aws_kms_rsa_keyring( - smithy_client_request - ) - except ServiceError as e: - return Wrappers.Result_Failure(_smithy_error_to_dafny_error(e)) - - return Wrappers.Result_Success( - aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.smithy_to_dafny.aws_cryptography_materialproviders_CreateKeyringOutput( - smithy_client_response - ) - ) - - def CreateDefaultCryptographicMaterialsManager(self, input): - smithy_client_request: ( - aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.models.CreateDefaultCryptographicMaterialsManagerInput - ) = aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.dafny_to_smithy.aws_cryptography_materialproviders_CreateDefaultCryptographicMaterialsManagerInput( - input - ) - try: - smithy_client_response = ( - self._impl.create_default_cryptographic_materials_manager( - smithy_client_request - ) - ) - except ServiceError as e: - return Wrappers.Result_Failure(_smithy_error_to_dafny_error(e)) - - return Wrappers.Result_Success( - aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.smithy_to_dafny.aws_cryptography_materialproviders_CreateCryptographicMaterialsManagerOutput( - smithy_client_response - ) - ) - - def CreateRequiredEncryptionContextCMM(self, input): - smithy_client_request: ( - aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.models.CreateRequiredEncryptionContextCMMInput - ) = aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.dafny_to_smithy.aws_cryptography_materialproviders_CreateRequiredEncryptionContextCMMInput( - input - ) - try: - smithy_client_response = self._impl.create_required_encryption_context_cmm( - smithy_client_request - ) - except ServiceError as e: - return Wrappers.Result_Failure(_smithy_error_to_dafny_error(e)) - - return Wrappers.Result_Success( - aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.smithy_to_dafny.aws_cryptography_materialproviders_CreateRequiredEncryptionContextCMMOutput( - smithy_client_response - ) - ) - - def CreateCryptographicMaterialsCache(self, input): - smithy_client_request: ( - aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.models.CreateCryptographicMaterialsCacheInput - ) = aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.dafny_to_smithy.aws_cryptography_materialproviders_CreateCryptographicMaterialsCacheInput( - input - ) - try: - smithy_client_response = self._impl.create_cryptographic_materials_cache( - smithy_client_request - ) - except ServiceError as e: - return Wrappers.Result_Failure(_smithy_error_to_dafny_error(e)) - - return Wrappers.Result_Success( - aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.smithy_to_dafny.aws_cryptography_materialproviders_CreateCryptographicMaterialsCacheOutput( - smithy_client_response - ) - ) - - def CreateDefaultClientSupplier(self, input): - smithy_client_request: ( - aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.models.CreateDefaultClientSupplierInput - ) = aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.dafny_to_smithy.aws_cryptography_materialproviders_CreateDefaultClientSupplierInput( - input - ) - try: - smithy_client_response = self._impl.create_default_client_supplier( - smithy_client_request - ) - except ServiceError as e: - return Wrappers.Result_Failure(_smithy_error_to_dafny_error(e)) - - return Wrappers.Result_Success( - aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.smithy_to_dafny.aws_cryptography_materialproviders_CreateDefaultClientSupplierOutput( - smithy_client_response - ) - ) - - def InitializeEncryptionMaterials(self, input): - smithy_client_request: ( - aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.models.InitializeEncryptionMaterialsInput - ) = aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.dafny_to_smithy.aws_cryptography_materialproviders_InitializeEncryptionMaterialsInput( - input - ) - try: - smithy_client_response = self._impl.initialize_encryption_materials( - smithy_client_request - ) - except ServiceError as e: - return Wrappers.Result_Failure(_smithy_error_to_dafny_error(e)) - - return Wrappers.Result_Success( - aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.smithy_to_dafny.aws_cryptography_materialproviders_EncryptionMaterials( - smithy_client_response - ) - ) - - def InitializeDecryptionMaterials(self, input): - smithy_client_request: ( - aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.models.InitializeDecryptionMaterialsInput - ) = aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.dafny_to_smithy.aws_cryptography_materialproviders_InitializeDecryptionMaterialsInput( - input - ) - try: - smithy_client_response = self._impl.initialize_decryption_materials( - smithy_client_request - ) - except ServiceError as e: - return Wrappers.Result_Failure(_smithy_error_to_dafny_error(e)) - - return Wrappers.Result_Success( - aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.smithy_to_dafny.aws_cryptography_materialproviders_DecryptionMaterials( - smithy_client_response - ) - ) - - def ValidEncryptionMaterialsTransition(self, input): - smithy_client_request: ( - aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.models.ValidEncryptionMaterialsTransitionInput - ) = aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.dafny_to_smithy.aws_cryptography_materialproviders_ValidEncryptionMaterialsTransitionInput( - input - ) - try: - smithy_client_response = self._impl.valid_encryption_materials_transition( - smithy_client_request - ) - except ServiceError as e: - return Wrappers.Result_Failure(_smithy_error_to_dafny_error(e)) - - return Wrappers.Result_Success(None) - - def ValidDecryptionMaterialsTransition(self, input): - smithy_client_request: ( - aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.models.ValidDecryptionMaterialsTransitionInput - ) = aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.dafny_to_smithy.aws_cryptography_materialproviders_ValidDecryptionMaterialsTransitionInput( - input - ) - try: - smithy_client_response = self._impl.valid_decryption_materials_transition( - smithy_client_request - ) - except ServiceError as e: - return Wrappers.Result_Failure(_smithy_error_to_dafny_error(e)) - - return Wrappers.Result_Success(None) - - def EncryptionMaterialsHasPlaintextDataKey(self, input): - smithy_client_request: ( - aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.models.EncryptionMaterials - ) = aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.dafny_to_smithy.aws_cryptography_materialproviders_EncryptionMaterials( - input - ) - try: - smithy_client_response = ( - self._impl.encryption_materials_has_plaintext_data_key( - smithy_client_request - ) - ) - except ServiceError as e: - return Wrappers.Result_Failure(_smithy_error_to_dafny_error(e)) - - return Wrappers.Result_Success(None) - - def DecryptionMaterialsWithPlaintextDataKey(self, input): - smithy_client_request: ( - aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.models.DecryptionMaterials - ) = aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.dafny_to_smithy.aws_cryptography_materialproviders_DecryptionMaterials( - input - ) - try: - smithy_client_response = ( - self._impl.decryption_materials_with_plaintext_data_key( - smithy_client_request - ) - ) - except ServiceError as e: - return Wrappers.Result_Failure(_smithy_error_to_dafny_error(e)) - - return Wrappers.Result_Success(None) - - def GetAlgorithmSuiteInfo(self, input): - smithy_client_request: ( - aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.models.GetAlgorithmSuiteInfoInput - ) = aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.dafny_to_smithy.aws_cryptography_materialproviders_GetAlgorithmSuiteInfoInput( - input - ) - try: - smithy_client_response = self._impl.get_algorithm_suite_info( - smithy_client_request - ) - except ServiceError as e: - return Wrappers.Result_Failure(_smithy_error_to_dafny_error(e)) - - return Wrappers.Result_Success( - aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.smithy_to_dafny.aws_cryptography_materialproviders_AlgorithmSuiteInfo( - smithy_client_response - ) - ) - - def ValidAlgorithmSuiteInfo(self, input): - smithy_client_request: ( - aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.models.AlgorithmSuiteInfo - ) = aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.dafny_to_smithy.aws_cryptography_materialproviders_AlgorithmSuiteInfo( - input - ) - try: - smithy_client_response = self._impl.valid_algorithm_suite_info( - smithy_client_request - ) - except ServiceError as e: - return Wrappers.Result_Failure(_smithy_error_to_dafny_error(e)) - - return Wrappers.Result_Success(None) - - def ValidateCommitmentPolicyOnEncrypt(self, input): - smithy_client_request: ( - aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.models.ValidateCommitmentPolicyOnEncryptInput - ) = aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.dafny_to_smithy.aws_cryptography_materialproviders_ValidateCommitmentPolicyOnEncryptInput( - input - ) - try: - smithy_client_response = self._impl.validate_commitment_policy_on_encrypt( - smithy_client_request - ) - except ServiceError as e: - return Wrappers.Result_Failure(_smithy_error_to_dafny_error(e)) - - return Wrappers.Result_Success(None) - - def ValidateCommitmentPolicyOnDecrypt(self, input): - smithy_client_request: ( - aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.models.ValidateCommitmentPolicyOnDecryptInput - ) = aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.dafny_to_smithy.aws_cryptography_materialproviders_ValidateCommitmentPolicyOnDecryptInput( - input - ) - try: - smithy_client_response = self._impl.validate_commitment_policy_on_decrypt( - smithy_client_request - ) - except ServiceError as e: - return Wrappers.Result_Failure(_smithy_error_to_dafny_error(e)) - - return Wrappers.Result_Success(None) diff --git a/TestVectorsAwsCryptographicMaterialProviders/Makefile b/TestVectorsAwsCryptographicMaterialProviders/Makefile index 39d75a260..6d8415410 100644 --- a/TestVectorsAwsCryptographicMaterialProviders/Makefile +++ b/TestVectorsAwsCryptographicMaterialProviders/Makefile @@ -85,9 +85,9 @@ PYTHON_DEPENDENCY_MODULE_NAMES := \ --dependency-library-name=aws.cryptography.primitives=aws_cryptography_primitives \ --dependency-library-name=com.amazonaws.kms=aws_cryptography_internal_kms \ --dependency-library-name=com.amazonaws.dynamodb=aws_cryptography_internal_dynamodb \ - --dependency-library-name=aws.cryptography.materialProviders=aws_cryptographic_materialproviders \ - --dependency-library-name=aws.cryptography.keyStore=aws_cryptographic_materialproviders \ - --dependency-library-name=smithy.api=aws_cryptographic_materialproviders + --dependency-library-name=aws.cryptography.materialProviders=aws_cryptographic_material_providers \ + --dependency-library-name=aws.cryptography.keyStore=aws_cryptographic_material_providers \ + --dependency-library-name=smithy.api=aws_cryptographic_material_providers PYTHON_MODULE_NAME=aws_cryptography_materialproviders_test_vectors @@ -96,7 +96,7 @@ TRANSLATION_RECORD_PYTHON := \ --translation-record ../ComAmazonawsKms/runtimes/python/src/aws_cryptography_internal_kms/internaldafny/generated/dafny_src-py.dtr \ --translation-record ../ComAmazonawsDynamodb/runtimes/python/src/aws_cryptography_internal_dynamodb/internaldafny/generated/dafny_src-py.dtr \ --translation-record ../AwsCryptographyPrimitives/runtimes/python/src/aws_cryptography_primitives/internaldafny/generated/dafny_src-py.dtr \ - --translation-record ../AwsCryptographicMaterialProviders/runtimes/python/src/aws_cryptographic_materialproviders/internaldafny/generated/dafny_src-py.dtr + --translation-record ../AwsCryptographicMaterialProviders/runtimes/python/src/aws_cryptographic_material_providers/internaldafny/generated/dafny_src-py.dtr # Python diff --git a/TestVectorsAwsCryptographicMaterialProviders/runtimes/python/pyproject.toml b/TestVectorsAwsCryptographicMaterialProviders/runtimes/python/pyproject.toml index 0a34c91e3..29b902e84 100644 --- a/TestVectorsAwsCryptographicMaterialProviders/runtimes/python/pyproject.toml +++ b/TestVectorsAwsCryptographicMaterialProviders/runtimes/python/pyproject.toml @@ -12,7 +12,7 @@ include = ["**/internaldafny/generated/*.py"] [tool.poetry.dependencies] python = "^3.11.0" -aws-cryptographic-materialproviders = { path = "../../../AwsCryptographicMaterialProviders/runtimes/python", develop = false} +aws-cryptographic-material-providers = { path = "../../../AwsCryptographicMaterialProviders/runtimes/python", develop = false} [tool.poetry.group.test.dependencies] pytest = "^7.4.0" diff --git a/TestVectorsAwsCryptographicMaterialProviders/runtimes/python/src/aws_cryptography_materialproviders_test_vectors/internaldafny/extern/wrapped_mpl.py b/TestVectorsAwsCryptographicMaterialProviders/runtimes/python/src/aws_cryptography_materialproviders_test_vectors/internaldafny/extern/wrapped_mpl.py index 4e7b7112b..4e2e9e297 100644 --- a/TestVectorsAwsCryptographicMaterialProviders/runtimes/python/src/aws_cryptography_materialproviders_test_vectors/internaldafny/extern/wrapped_mpl.py +++ b/TestVectorsAwsCryptographicMaterialProviders/runtimes/python/src/aws_cryptography_materialproviders_test_vectors/internaldafny/extern/wrapped_mpl.py @@ -1,15 +1,15 @@ import aws_cryptography_materialproviders_test_vectors.internaldafny.generated.WrappedMaterialProviders as WrappedMaterialProviders import smithy_dafny_standard_library.internaldafny.generated.Wrappers as Wrappers -import aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.client -import aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.config -import aws_cryptographic_materialproviders.internaldafny.generated.MaterialProviders as MaterialProviders +import aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.client +import aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.config +import aws_cryptographic_material_providers.internaldafny.generated.MaterialProviders as MaterialProviders import aws_cryptography_materialproviders_test_vectors.smithygenerated.aws_cryptography_materialproviders.shim as shim class default__(WrappedMaterialProviders.default__): @staticmethod def WrappedMaterialProviders(config): - smithy_client = aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.client.AwsCryptographicMaterialProviders( + smithy_client = aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.client.AwsCryptographicMaterialProviders( dafny_client=MaterialProviders.default__.MaterialProviders(config).value ) wrapped_client = shim.MaterialProvidersShim(smithy_client) diff --git a/TestVectorsAwsCryptographicMaterialProviders/runtimes/python/src/aws_cryptography_materialproviders_test_vectors/smithygenerated/aws_cryptography_materialproviders/shim.py b/TestVectorsAwsCryptographicMaterialProviders/runtimes/python/src/aws_cryptography_materialproviders_test_vectors/smithygenerated/aws_cryptography_materialproviders/shim.py index 721d05732..50dc98f42 100644 --- a/TestVectorsAwsCryptographicMaterialProviders/runtimes/python/src/aws_cryptography_materialproviders_test_vectors/smithygenerated/aws_cryptography_materialproviders/shim.py +++ b/TestVectorsAwsCryptographicMaterialProviders/runtimes/python/src/aws_cryptography_materialproviders_test_vectors/smithygenerated/aws_cryptography_materialproviders/shim.py @@ -2,7 +2,7 @@ # SPDX-License-Identifier: Apache-2.0 # Do not modify this file. This file is machine generated, and any changes to it will be overwritten. -from aws_cryptographic_materialproviders.internaldafny.generated.AwsCryptographyMaterialProvidersTypes import ( +from aws_cryptographic_material_providers.internaldafny.generated.AwsCryptographyMaterialProvidersTypes import ( AlgorithmSuiteInfo_AlgorithmSuiteInfo as DafnyAlgorithmSuiteInfo, CreateAwsKmsDiscoveryKeyringInput_CreateAwsKmsDiscoveryKeyringInput as DafnyCreateAwsKmsDiscoveryKeyringInput, CreateAwsKmsDiscoveryMultiKeyringInput_CreateAwsKmsDiscoveryMultiKeyringInput as DafnyCreateAwsKmsDiscoveryMultiKeyringInput, @@ -32,27 +32,27 @@ ValidateCommitmentPolicyOnDecryptInput_ValidateCommitmentPolicyOnDecryptInput as DafnyValidateCommitmentPolicyOnDecryptInput, ValidateCommitmentPolicyOnEncryptInput_ValidateCommitmentPolicyOnEncryptInput as DafnyValidateCommitmentPolicyOnEncryptInput, ) -import aws_cryptographic_materialproviders.internaldafny.generated.module_ -import aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.dafny_to_smithy -import aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.errors -from aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.errors import ( +import aws_cryptographic_material_providers.internaldafny.generated.module_ +import aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.dafny_to_smithy +import aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.errors +from aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.errors import ( CollectionOfErrors, OpaqueError, ServiceError, _smithy_error_to_dafny_error, ) -import aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.models -import aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.smithy_to_dafny +import aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.models +import aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.smithy_to_dafny from typing import Any import smithy_dafny_standard_library.internaldafny.generated.Wrappers as Wrappers -import aws_cryptographic_materialproviders.internaldafny.generated.AwsCryptographyMaterialProvidersTypes -import aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.client as client_impl +import aws_cryptographic_material_providers.internaldafny.generated.AwsCryptographyMaterialProvidersTypes +import aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.client as client_impl class MaterialProvidersShim( - aws_cryptographic_materialproviders.internaldafny.generated.AwsCryptographyMaterialProvidersTypes.IAwsCryptographicMaterialProvidersClient + aws_cryptographic_material_providers.internaldafny.generated.AwsCryptographyMaterialProvidersTypes.IAwsCryptographicMaterialProvidersClient ): def __init__(self, _impl: client_impl): self._impl = _impl @@ -60,15 +60,15 @@ def __init__(self, _impl: client_impl): def CreateAwsKmsKeyring(self, input): try: smithy_client_request: ( - aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.models.CreateAwsKmsKeyringInput - ) = aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.dafny_to_smithy.aws_cryptography_materialproviders_CreateAwsKmsKeyringInput( + aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.models.CreateAwsKmsKeyringInput + ) = aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.dafny_to_smithy.aws_cryptography_materialproviders_CreateAwsKmsKeyringInput( input ) smithy_client_response = self._impl.create_aws_kms_keyring( smithy_client_request ) return Wrappers.Result_Success( - aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.smithy_to_dafny.aws_cryptography_materialproviders_CreateKeyringOutput( + aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.smithy_to_dafny.aws_cryptography_materialproviders_CreateKeyringOutput( smithy_client_response ) ) @@ -78,15 +78,15 @@ def CreateAwsKmsKeyring(self, input): def CreateAwsKmsDiscoveryKeyring(self, input): try: smithy_client_request: ( - aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.models.CreateAwsKmsDiscoveryKeyringInput - ) = aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.dafny_to_smithy.aws_cryptography_materialproviders_CreateAwsKmsDiscoveryKeyringInput( + aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.models.CreateAwsKmsDiscoveryKeyringInput + ) = aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.dafny_to_smithy.aws_cryptography_materialproviders_CreateAwsKmsDiscoveryKeyringInput( input ) smithy_client_response = self._impl.create_aws_kms_discovery_keyring( smithy_client_request ) return Wrappers.Result_Success( - aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.smithy_to_dafny.aws_cryptography_materialproviders_CreateKeyringOutput( + aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.smithy_to_dafny.aws_cryptography_materialproviders_CreateKeyringOutput( smithy_client_response ) ) @@ -96,15 +96,15 @@ def CreateAwsKmsDiscoveryKeyring(self, input): def CreateAwsKmsMultiKeyring(self, input): try: smithy_client_request: ( - aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.models.CreateAwsKmsMultiKeyringInput - ) = aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.dafny_to_smithy.aws_cryptography_materialproviders_CreateAwsKmsMultiKeyringInput( + aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.models.CreateAwsKmsMultiKeyringInput + ) = aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.dafny_to_smithy.aws_cryptography_materialproviders_CreateAwsKmsMultiKeyringInput( input ) smithy_client_response = self._impl.create_aws_kms_multi_keyring( smithy_client_request ) return Wrappers.Result_Success( - aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.smithy_to_dafny.aws_cryptography_materialproviders_CreateKeyringOutput( + aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.smithy_to_dafny.aws_cryptography_materialproviders_CreateKeyringOutput( smithy_client_response ) ) @@ -114,15 +114,15 @@ def CreateAwsKmsMultiKeyring(self, input): def CreateAwsKmsDiscoveryMultiKeyring(self, input): try: smithy_client_request: ( - aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.models.CreateAwsKmsDiscoveryMultiKeyringInput - ) = aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.dafny_to_smithy.aws_cryptography_materialproviders_CreateAwsKmsDiscoveryMultiKeyringInput( + aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.models.CreateAwsKmsDiscoveryMultiKeyringInput + ) = aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.dafny_to_smithy.aws_cryptography_materialproviders_CreateAwsKmsDiscoveryMultiKeyringInput( input ) smithy_client_response = self._impl.create_aws_kms_discovery_multi_keyring( smithy_client_request ) return Wrappers.Result_Success( - aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.smithy_to_dafny.aws_cryptography_materialproviders_CreateKeyringOutput( + aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.smithy_to_dafny.aws_cryptography_materialproviders_CreateKeyringOutput( smithy_client_response ) ) @@ -132,15 +132,15 @@ def CreateAwsKmsDiscoveryMultiKeyring(self, input): def CreateAwsKmsMrkKeyring(self, input): try: smithy_client_request: ( - aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.models.CreateAwsKmsMrkKeyringInput - ) = aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.dafny_to_smithy.aws_cryptography_materialproviders_CreateAwsKmsMrkKeyringInput( + aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.models.CreateAwsKmsMrkKeyringInput + ) = aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.dafny_to_smithy.aws_cryptography_materialproviders_CreateAwsKmsMrkKeyringInput( input ) smithy_client_response = self._impl.create_aws_kms_mrk_keyring( smithy_client_request ) return Wrappers.Result_Success( - aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.smithy_to_dafny.aws_cryptography_materialproviders_CreateKeyringOutput( + aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.smithy_to_dafny.aws_cryptography_materialproviders_CreateKeyringOutput( smithy_client_response ) ) @@ -150,15 +150,15 @@ def CreateAwsKmsMrkKeyring(self, input): def CreateAwsKmsMrkMultiKeyring(self, input): try: smithy_client_request: ( - aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.models.CreateAwsKmsMrkMultiKeyringInput - ) = aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.dafny_to_smithy.aws_cryptography_materialproviders_CreateAwsKmsMrkMultiKeyringInput( + aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.models.CreateAwsKmsMrkMultiKeyringInput + ) = aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.dafny_to_smithy.aws_cryptography_materialproviders_CreateAwsKmsMrkMultiKeyringInput( input ) smithy_client_response = self._impl.create_aws_kms_mrk_multi_keyring( smithy_client_request ) return Wrappers.Result_Success( - aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.smithy_to_dafny.aws_cryptography_materialproviders_CreateKeyringOutput( + aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.smithy_to_dafny.aws_cryptography_materialproviders_CreateKeyringOutput( smithy_client_response ) ) @@ -168,15 +168,15 @@ def CreateAwsKmsMrkMultiKeyring(self, input): def CreateAwsKmsMrkDiscoveryKeyring(self, input): try: smithy_client_request: ( - aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.models.CreateAwsKmsMrkDiscoveryKeyringInput - ) = aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.dafny_to_smithy.aws_cryptography_materialproviders_CreateAwsKmsMrkDiscoveryKeyringInput( + aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.models.CreateAwsKmsMrkDiscoveryKeyringInput + ) = aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.dafny_to_smithy.aws_cryptography_materialproviders_CreateAwsKmsMrkDiscoveryKeyringInput( input ) smithy_client_response = self._impl.create_aws_kms_mrk_discovery_keyring( smithy_client_request ) return Wrappers.Result_Success( - aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.smithy_to_dafny.aws_cryptography_materialproviders_CreateKeyringOutput( + aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.smithy_to_dafny.aws_cryptography_materialproviders_CreateKeyringOutput( smithy_client_response ) ) @@ -186,8 +186,8 @@ def CreateAwsKmsMrkDiscoveryKeyring(self, input): def CreateAwsKmsMrkDiscoveryMultiKeyring(self, input): try: smithy_client_request: ( - aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.models.CreateAwsKmsMrkDiscoveryMultiKeyringInput - ) = aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.dafny_to_smithy.aws_cryptography_materialproviders_CreateAwsKmsMrkDiscoveryMultiKeyringInput( + aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.models.CreateAwsKmsMrkDiscoveryMultiKeyringInput + ) = aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.dafny_to_smithy.aws_cryptography_materialproviders_CreateAwsKmsMrkDiscoveryMultiKeyringInput( input ) smithy_client_response = ( @@ -196,7 +196,7 @@ def CreateAwsKmsMrkDiscoveryMultiKeyring(self, input): ) ) return Wrappers.Result_Success( - aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.smithy_to_dafny.aws_cryptography_materialproviders_CreateKeyringOutput( + aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.smithy_to_dafny.aws_cryptography_materialproviders_CreateKeyringOutput( smithy_client_response ) ) @@ -206,15 +206,15 @@ def CreateAwsKmsMrkDiscoveryMultiKeyring(self, input): def CreateAwsKmsHierarchicalKeyring(self, input): try: smithy_client_request: ( - aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.models.CreateAwsKmsHierarchicalKeyringInput - ) = aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.dafny_to_smithy.aws_cryptography_materialproviders_CreateAwsKmsHierarchicalKeyringInput( + aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.models.CreateAwsKmsHierarchicalKeyringInput + ) = aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.dafny_to_smithy.aws_cryptography_materialproviders_CreateAwsKmsHierarchicalKeyringInput( input ) smithy_client_response = self._impl.create_aws_kms_hierarchical_keyring( smithy_client_request ) return Wrappers.Result_Success( - aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.smithy_to_dafny.aws_cryptography_materialproviders_CreateKeyringOutput( + aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.smithy_to_dafny.aws_cryptography_materialproviders_CreateKeyringOutput( smithy_client_response ) ) @@ -224,15 +224,15 @@ def CreateAwsKmsHierarchicalKeyring(self, input): def CreateAwsKmsRsaKeyring(self, input): try: smithy_client_request: ( - aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.models.CreateAwsKmsRsaKeyringInput - ) = aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.dafny_to_smithy.aws_cryptography_materialproviders_CreateAwsKmsRsaKeyringInput( + aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.models.CreateAwsKmsRsaKeyringInput + ) = aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.dafny_to_smithy.aws_cryptography_materialproviders_CreateAwsKmsRsaKeyringInput( input ) smithy_client_response = self._impl.create_aws_kms_rsa_keyring( smithy_client_request ) return Wrappers.Result_Success( - aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.smithy_to_dafny.aws_cryptography_materialproviders_CreateKeyringOutput( + aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.smithy_to_dafny.aws_cryptography_materialproviders_CreateKeyringOutput( smithy_client_response ) ) @@ -242,15 +242,15 @@ def CreateAwsKmsRsaKeyring(self, input): def CreateAwsKmsEcdhKeyring(self, input): try: smithy_client_request: ( - aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.models.CreateAwsKmsEcdhKeyringInput - ) = aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.dafny_to_smithy.aws_cryptography_materialproviders_CreateAwsKmsEcdhKeyringInput( + aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.models.CreateAwsKmsEcdhKeyringInput + ) = aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.dafny_to_smithy.aws_cryptography_materialproviders_CreateAwsKmsEcdhKeyringInput( input ) smithy_client_response = self._impl.create_aws_kms_ecdh_keyring( smithy_client_request ) return Wrappers.Result_Success( - aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.smithy_to_dafny.aws_cryptography_materialproviders_CreateKeyringOutput( + aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.smithy_to_dafny.aws_cryptography_materialproviders_CreateKeyringOutput( smithy_client_response ) ) @@ -260,15 +260,15 @@ def CreateAwsKmsEcdhKeyring(self, input): def CreateMultiKeyring(self, input): try: smithy_client_request: ( - aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.models.CreateMultiKeyringInput - ) = aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.dafny_to_smithy.aws_cryptography_materialproviders_CreateMultiKeyringInput( + aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.models.CreateMultiKeyringInput + ) = aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.dafny_to_smithy.aws_cryptography_materialproviders_CreateMultiKeyringInput( input ) smithy_client_response = self._impl.create_multi_keyring( smithy_client_request ) return Wrappers.Result_Success( - aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.smithy_to_dafny.aws_cryptography_materialproviders_CreateKeyringOutput( + aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.smithy_to_dafny.aws_cryptography_materialproviders_CreateKeyringOutput( smithy_client_response ) ) @@ -278,15 +278,15 @@ def CreateMultiKeyring(self, input): def CreateRawAesKeyring(self, input): try: smithy_client_request: ( - aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.models.CreateRawAesKeyringInput - ) = aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.dafny_to_smithy.aws_cryptography_materialproviders_CreateRawAesKeyringInput( + aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.models.CreateRawAesKeyringInput + ) = aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.dafny_to_smithy.aws_cryptography_materialproviders_CreateRawAesKeyringInput( input ) smithy_client_response = self._impl.create_raw_aes_keyring( smithy_client_request ) return Wrappers.Result_Success( - aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.smithy_to_dafny.aws_cryptography_materialproviders_CreateKeyringOutput( + aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.smithy_to_dafny.aws_cryptography_materialproviders_CreateKeyringOutput( smithy_client_response ) ) @@ -296,15 +296,15 @@ def CreateRawAesKeyring(self, input): def CreateRawRsaKeyring(self, input): try: smithy_client_request: ( - aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.models.CreateRawRsaKeyringInput - ) = aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.dafny_to_smithy.aws_cryptography_materialproviders_CreateRawRsaKeyringInput( + aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.models.CreateRawRsaKeyringInput + ) = aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.dafny_to_smithy.aws_cryptography_materialproviders_CreateRawRsaKeyringInput( input ) smithy_client_response = self._impl.create_raw_rsa_keyring( smithy_client_request ) return Wrappers.Result_Success( - aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.smithy_to_dafny.aws_cryptography_materialproviders_CreateKeyringOutput( + aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.smithy_to_dafny.aws_cryptography_materialproviders_CreateKeyringOutput( smithy_client_response ) ) @@ -314,15 +314,15 @@ def CreateRawRsaKeyring(self, input): def CreateRawEcdhKeyring(self, input): try: smithy_client_request: ( - aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.models.CreateRawEcdhKeyringInput - ) = aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.dafny_to_smithy.aws_cryptography_materialproviders_CreateRawEcdhKeyringInput( + aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.models.CreateRawEcdhKeyringInput + ) = aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.dafny_to_smithy.aws_cryptography_materialproviders_CreateRawEcdhKeyringInput( input ) smithy_client_response = self._impl.create_raw_ecdh_keyring( smithy_client_request ) return Wrappers.Result_Success( - aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.smithy_to_dafny.aws_cryptography_materialproviders_CreateKeyringOutput( + aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.smithy_to_dafny.aws_cryptography_materialproviders_CreateKeyringOutput( smithy_client_response ) ) @@ -332,8 +332,8 @@ def CreateRawEcdhKeyring(self, input): def CreateDefaultCryptographicMaterialsManager(self, input): try: smithy_client_request: ( - aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.models.CreateDefaultCryptographicMaterialsManagerInput - ) = aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.dafny_to_smithy.aws_cryptography_materialproviders_CreateDefaultCryptographicMaterialsManagerInput( + aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.models.CreateDefaultCryptographicMaterialsManagerInput + ) = aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.dafny_to_smithy.aws_cryptography_materialproviders_CreateDefaultCryptographicMaterialsManagerInput( input ) smithy_client_response = ( @@ -342,7 +342,7 @@ def CreateDefaultCryptographicMaterialsManager(self, input): ) ) return Wrappers.Result_Success( - aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.smithy_to_dafny.aws_cryptography_materialproviders_CreateCryptographicMaterialsManagerOutput( + aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.smithy_to_dafny.aws_cryptography_materialproviders_CreateCryptographicMaterialsManagerOutput( smithy_client_response ) ) @@ -352,15 +352,15 @@ def CreateDefaultCryptographicMaterialsManager(self, input): def CreateRequiredEncryptionContextCMM(self, input): try: smithy_client_request: ( - aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.models.CreateRequiredEncryptionContextCMMInput - ) = aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.dafny_to_smithy.aws_cryptography_materialproviders_CreateRequiredEncryptionContextCMMInput( + aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.models.CreateRequiredEncryptionContextCMMInput + ) = aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.dafny_to_smithy.aws_cryptography_materialproviders_CreateRequiredEncryptionContextCMMInput( input ) smithy_client_response = self._impl.create_required_encryption_context_cmm( smithy_client_request ) return Wrappers.Result_Success( - aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.smithy_to_dafny.aws_cryptography_materialproviders_CreateRequiredEncryptionContextCMMOutput( + aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.smithy_to_dafny.aws_cryptography_materialproviders_CreateRequiredEncryptionContextCMMOutput( smithy_client_response ) ) @@ -370,15 +370,15 @@ def CreateRequiredEncryptionContextCMM(self, input): def CreateCryptographicMaterialsCache(self, input): try: smithy_client_request: ( - aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.models.CreateCryptographicMaterialsCacheInput - ) = aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.dafny_to_smithy.aws_cryptography_materialproviders_CreateCryptographicMaterialsCacheInput( + aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.models.CreateCryptographicMaterialsCacheInput + ) = aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.dafny_to_smithy.aws_cryptography_materialproviders_CreateCryptographicMaterialsCacheInput( input ) smithy_client_response = self._impl.create_cryptographic_materials_cache( smithy_client_request ) return Wrappers.Result_Success( - aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.smithy_to_dafny.aws_cryptography_materialproviders_CreateCryptographicMaterialsCacheOutput( + aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.smithy_to_dafny.aws_cryptography_materialproviders_CreateCryptographicMaterialsCacheOutput( smithy_client_response ) ) @@ -388,15 +388,15 @@ def CreateCryptographicMaterialsCache(self, input): def CreateDefaultClientSupplier(self, input): try: smithy_client_request: ( - aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.models.CreateDefaultClientSupplierInput - ) = aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.dafny_to_smithy.aws_cryptography_materialproviders_CreateDefaultClientSupplierInput( + aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.models.CreateDefaultClientSupplierInput + ) = aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.dafny_to_smithy.aws_cryptography_materialproviders_CreateDefaultClientSupplierInput( input ) smithy_client_response = self._impl.create_default_client_supplier( smithy_client_request ) return Wrappers.Result_Success( - aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.smithy_to_dafny.aws_cryptography_materialproviders_CreateDefaultClientSupplierOutput( + aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.smithy_to_dafny.aws_cryptography_materialproviders_CreateDefaultClientSupplierOutput( smithy_client_response ) ) @@ -406,15 +406,15 @@ def CreateDefaultClientSupplier(self, input): def InitializeEncryptionMaterials(self, input): try: smithy_client_request: ( - aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.models.InitializeEncryptionMaterialsInput - ) = aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.dafny_to_smithy.aws_cryptography_materialproviders_InitializeEncryptionMaterialsInput( + aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.models.InitializeEncryptionMaterialsInput + ) = aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.dafny_to_smithy.aws_cryptography_materialproviders_InitializeEncryptionMaterialsInput( input ) smithy_client_response = self._impl.initialize_encryption_materials( smithy_client_request ) return Wrappers.Result_Success( - aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.smithy_to_dafny.aws_cryptography_materialproviders_EncryptionMaterials( + aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.smithy_to_dafny.aws_cryptography_materialproviders_EncryptionMaterials( smithy_client_response ) ) @@ -424,15 +424,15 @@ def InitializeEncryptionMaterials(self, input): def InitializeDecryptionMaterials(self, input): try: smithy_client_request: ( - aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.models.InitializeDecryptionMaterialsInput - ) = aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.dafny_to_smithy.aws_cryptography_materialproviders_InitializeDecryptionMaterialsInput( + aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.models.InitializeDecryptionMaterialsInput + ) = aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.dafny_to_smithy.aws_cryptography_materialproviders_InitializeDecryptionMaterialsInput( input ) smithy_client_response = self._impl.initialize_decryption_materials( smithy_client_request ) return Wrappers.Result_Success( - aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.smithy_to_dafny.aws_cryptography_materialproviders_DecryptionMaterials( + aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.smithy_to_dafny.aws_cryptography_materialproviders_DecryptionMaterials( smithy_client_response ) ) @@ -442,8 +442,8 @@ def InitializeDecryptionMaterials(self, input): def ValidEncryptionMaterialsTransition(self, input): try: smithy_client_request: ( - aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.models.ValidEncryptionMaterialsTransitionInput - ) = aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.dafny_to_smithy.aws_cryptography_materialproviders_ValidEncryptionMaterialsTransitionInput( + aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.models.ValidEncryptionMaterialsTransitionInput + ) = aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.dafny_to_smithy.aws_cryptography_materialproviders_ValidEncryptionMaterialsTransitionInput( input ) smithy_client_response = self._impl.valid_encryption_materials_transition( @@ -456,8 +456,8 @@ def ValidEncryptionMaterialsTransition(self, input): def ValidDecryptionMaterialsTransition(self, input): try: smithy_client_request: ( - aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.models.ValidDecryptionMaterialsTransitionInput - ) = aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.dafny_to_smithy.aws_cryptography_materialproviders_ValidDecryptionMaterialsTransitionInput( + aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.models.ValidDecryptionMaterialsTransitionInput + ) = aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.dafny_to_smithy.aws_cryptography_materialproviders_ValidDecryptionMaterialsTransitionInput( input ) smithy_client_response = self._impl.valid_decryption_materials_transition( @@ -470,8 +470,8 @@ def ValidDecryptionMaterialsTransition(self, input): def EncryptionMaterialsHasPlaintextDataKey(self, input): try: smithy_client_request: ( - aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.models.EncryptionMaterials - ) = aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.dafny_to_smithy.aws_cryptography_materialproviders_EncryptionMaterials( + aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.models.EncryptionMaterials + ) = aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.dafny_to_smithy.aws_cryptography_materialproviders_EncryptionMaterials( input ) smithy_client_response = ( @@ -486,8 +486,8 @@ def EncryptionMaterialsHasPlaintextDataKey(self, input): def DecryptionMaterialsWithPlaintextDataKey(self, input): try: smithy_client_request: ( - aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.models.DecryptionMaterials - ) = aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.dafny_to_smithy.aws_cryptography_materialproviders_DecryptionMaterials( + aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.models.DecryptionMaterials + ) = aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.dafny_to_smithy.aws_cryptography_materialproviders_DecryptionMaterials( input ) smithy_client_response = ( @@ -502,15 +502,15 @@ def DecryptionMaterialsWithPlaintextDataKey(self, input): def GetAlgorithmSuiteInfo(self, input): try: smithy_client_request: ( - aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.models.GetAlgorithmSuiteInfoInput - ) = aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.dafny_to_smithy.aws_cryptography_materialproviders_GetAlgorithmSuiteInfoInput( + aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.models.GetAlgorithmSuiteInfoInput + ) = aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.dafny_to_smithy.aws_cryptography_materialproviders_GetAlgorithmSuiteInfoInput( input ) smithy_client_response = self._impl.get_algorithm_suite_info( smithy_client_request ) return Wrappers.Result_Success( - aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.smithy_to_dafny.aws_cryptography_materialproviders_AlgorithmSuiteInfo( + aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.smithy_to_dafny.aws_cryptography_materialproviders_AlgorithmSuiteInfo( smithy_client_response ) ) @@ -520,8 +520,8 @@ def GetAlgorithmSuiteInfo(self, input): def ValidAlgorithmSuiteInfo(self, input): try: smithy_client_request: ( - aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.models.AlgorithmSuiteInfo - ) = aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.dafny_to_smithy.aws_cryptography_materialproviders_AlgorithmSuiteInfo( + aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.models.AlgorithmSuiteInfo + ) = aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.dafny_to_smithy.aws_cryptography_materialproviders_AlgorithmSuiteInfo( input ) smithy_client_response = self._impl.valid_algorithm_suite_info( @@ -534,8 +534,8 @@ def ValidAlgorithmSuiteInfo(self, input): def ValidateCommitmentPolicyOnEncrypt(self, input): try: smithy_client_request: ( - aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.models.ValidateCommitmentPolicyOnEncryptInput - ) = aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.dafny_to_smithy.aws_cryptography_materialproviders_ValidateCommitmentPolicyOnEncryptInput( + aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.models.ValidateCommitmentPolicyOnEncryptInput + ) = aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.dafny_to_smithy.aws_cryptography_materialproviders_ValidateCommitmentPolicyOnEncryptInput( input ) smithy_client_response = self._impl.validate_commitment_policy_on_encrypt( @@ -548,8 +548,8 @@ def ValidateCommitmentPolicyOnEncrypt(self, input): def ValidateCommitmentPolicyOnDecrypt(self, input): try: smithy_client_request: ( - aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.models.ValidateCommitmentPolicyOnDecryptInput - ) = aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.dafny_to_smithy.aws_cryptography_materialproviders_ValidateCommitmentPolicyOnDecryptInput( + aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.models.ValidateCommitmentPolicyOnDecryptInput + ) = aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.dafny_to_smithy.aws_cryptography_materialproviders_ValidateCommitmentPolicyOnDecryptInput( input ) smithy_client_response = self._impl.validate_commitment_policy_on_decrypt( diff --git a/TestVectorsAwsCryptographicMaterialProviders/runtimes/python/src/aws_cryptography_materialproviders_test_vectors/smithygenerated/aws_cryptography_materialproviderstestvectorkeys/client.py b/TestVectorsAwsCryptographicMaterialProviders/runtimes/python/src/aws_cryptography_materialproviders_test_vectors/smithygenerated/aws_cryptography_materialproviderstestvectorkeys/client.py index b52b3665b..1506f200b 100644 --- a/TestVectorsAwsCryptographicMaterialProviders/runtimes/python/src/aws_cryptography_materialproviders_test_vectors/smithygenerated/aws_cryptography_materialproviderstestvectorkeys/client.py +++ b/TestVectorsAwsCryptographicMaterialProviders/runtimes/python/src/aws_cryptography_materialproviders_test_vectors/smithygenerated/aws_cryptography_materialproviderstestvectorkeys/client.py @@ -2,7 +2,7 @@ # SPDX-License-Identifier: Apache-2.0 # Do not modify this file. This file is machine generated, and any changes to it will be overwritten. -import aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.references +import aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.references from aws_cryptography_materialproviders_test_vectors.internaldafny.generated.AwsCryptographyMaterialProvidersTestVectorKeysTypes import ( IKeyVectorsClient, ) @@ -73,7 +73,7 @@ def __init__( def create_test_vector_keyring( self, input: TestVectorKeyringInput - ) -> "aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.references.Keyring": + ) -> "aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.references.Keyring": """Invokes the CreateTestVectorKeyring operation. :param input: The operation's input. @@ -89,7 +89,7 @@ def create_test_vector_keyring( def create_wrapped_test_vector_keyring( self, input: TestVectorKeyringInput - ) -> "aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.references.Keyring": + ) -> "aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.references.Keyring": """Invokes the CreateWrappedTestVectorKeyring operation. :param input: The operation's input. @@ -105,7 +105,7 @@ def create_wrapped_test_vector_keyring( def create_wrapped_test_vector_cmm( self, input: TestVectorCmmInput - ) -> "aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.references.CryptographicMaterialsManager": + ) -> "aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.references.CryptographicMaterialsManager": """Invokes the CreateWrappedTestVectorCmm operation. :param input: The operation's input. diff --git a/TestVectorsAwsCryptographicMaterialProviders/runtimes/python/src/aws_cryptography_materialproviders_test_vectors/smithygenerated/aws_cryptography_materialproviderstestvectorkeys/dafny_to_smithy.py b/TestVectorsAwsCryptographicMaterialProviders/runtimes/python/src/aws_cryptography_materialproviders_test_vectors/smithygenerated/aws_cryptography_materialproviderstestvectorkeys/dafny_to_smithy.py index f56156022..0c3f6c847 100644 --- a/TestVectorsAwsCryptographicMaterialProviders/runtimes/python/src/aws_cryptography_materialproviders_test_vectors/smithygenerated/aws_cryptography_materialproviderstestvectorkeys/dafny_to_smithy.py +++ b/TestVectorsAwsCryptographicMaterialProviders/runtimes/python/src/aws_cryptography_materialproviders_test_vectors/smithygenerated/aws_cryptography_materialproviderstestvectorkeys/dafny_to_smithy.py @@ -2,7 +2,7 @@ # SPDX-License-Identifier: Apache-2.0 # Do not modify this file. This file is machine generated, and any changes to it will be overwritten. -import aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.dafny_to_smithy +import aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.dafny_to_smithy import aws_cryptography_internal_kms.smithygenerated.com_amazonaws_kms.dafny_to_aws_sdk from aws_cryptography_materialproviders_test_vectors.internaldafny.generated.AwsCryptographyMaterialProvidersTestVectorKeysTypes import ( CmmOperation_DECRYPT, @@ -131,7 +131,7 @@ def aws_cryptography_materialproviderstestvectorkeys_KmsMrkAwareDiscovery(dafny_ ).decode("utf-16-be"), aws_kms_discovery_filter=( ( - aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.dafny_to_smithy.aws_cryptography_materialproviders_DiscoveryFilter( + aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.dafny_to_smithy.aws_cryptography_materialproviders_DiscoveryFilter( dafny_input.awsKmsDiscoveryFilter.value ) ) @@ -149,7 +149,7 @@ def aws_cryptography_materialproviderstestvectorkeys_RawRSA(dafny_input): provider_id=b"".join( ord(c).to_bytes(2, "big") for c in dafny_input.providerId ).decode("utf-16-be"), - padding=aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.dafny_to_smithy.aws_cryptography_materialproviders_PaddingScheme( + padding=aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.dafny_to_smithy.aws_cryptography_materialproviders_PaddingScheme( dafny_input.padding ), ) @@ -329,7 +329,7 @@ def aws_cryptography_materialproviderstestvectorkeys_SerializeKeyDescriptionInpu def aws_cryptography_materialproviderstestvectorkeys_CreateWrappedTestVectorCmmOutput( dafny_input, ): - return aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.dafny_to_smithy.aws_cryptography_materialproviders_CryptographicMaterialsManagerReference( + return aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.dafny_to_smithy.aws_cryptography_materialproviders_CryptographicMaterialsManagerReference( dafny_input ) diff --git a/TestVectorsAwsCryptographicMaterialProviders/runtimes/python/src/aws_cryptography_materialproviders_test_vectors/smithygenerated/aws_cryptography_materialproviderstestvectorkeys/deserialize.py b/TestVectorsAwsCryptographicMaterialProviders/runtimes/python/src/aws_cryptography_materialproviders_test_vectors/smithygenerated/aws_cryptography_materialproviderstestvectorkeys/deserialize.py index d98ff24d2..05c4672da 100644 --- a/TestVectorsAwsCryptographicMaterialProviders/runtimes/python/src/aws_cryptography_materialproviders_test_vectors/smithygenerated/aws_cryptography_materialproviderstestvectorkeys/deserialize.py +++ b/TestVectorsAwsCryptographicMaterialProviders/runtimes/python/src/aws_cryptography_materialproviders_test_vectors/smithygenerated/aws_cryptography_materialproviderstestvectorkeys/deserialize.py @@ -3,7 +3,7 @@ # Do not modify this file. This file is machine generated, and any changes to it will be overwritten. import _dafny -import aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.dafny_to_smithy +import aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.dafny_to_smithy from aws_cryptography_materialproviders_test_vectors.internaldafny.generated.AwsCryptographyMaterialProvidersTestVectorKeysTypes import ( Error, Error_KeyVectorException, @@ -24,7 +24,7 @@ def _deserialize_create_test_vector_keyring(input: DafnyResponse, config: Config if input.IsFailure(): return _deserialize_error(input.error) - return aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.dafny_to_smithy.aws_cryptography_materialproviders_CreateKeyringOutput( + return aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.dafny_to_smithy.aws_cryptography_materialproviders_CreateKeyringOutput( input.value ) @@ -35,7 +35,7 @@ def _deserialize_create_wrapped_test_vector_keyring( if input.IsFailure(): return _deserialize_error(input.error) - return aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.dafny_to_smithy.aws_cryptography_materialproviders_CreateKeyringOutput( + return aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.dafny_to_smithy.aws_cryptography_materialproviders_CreateKeyringOutput( input.value ) diff --git a/TestVectorsAwsCryptographicMaterialProviders/runtimes/python/src/aws_cryptography_materialproviders_test_vectors/smithygenerated/aws_cryptography_materialproviderstestvectorkeys/models.py b/TestVectorsAwsCryptographicMaterialProviders/runtimes/python/src/aws_cryptography_materialproviders_test_vectors/smithygenerated/aws_cryptography_materialproviderstestvectorkeys/models.py index 7d3851eb3..7faf1161f 100644 --- a/TestVectorsAwsCryptographicMaterialProviders/runtimes/python/src/aws_cryptography_materialproviders_test_vectors/smithygenerated/aws_cryptography_materialproviderstestvectorkeys/models.py +++ b/TestVectorsAwsCryptographicMaterialProviders/runtimes/python/src/aws_cryptography_materialproviders_test_vectors/smithygenerated/aws_cryptography_materialproviderstestvectorkeys/models.py @@ -4,7 +4,7 @@ from typing import Any, Dict, List, Optional, Union -from aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.models import ( +from aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.models import ( DiscoveryFilter, ) diff --git a/TestVectorsAwsCryptographicMaterialProviders/runtimes/python/src/aws_cryptography_materialproviders_test_vectors/smithygenerated/aws_cryptography_materialproviderstestvectorkeys/smithy_to_dafny.py b/TestVectorsAwsCryptographicMaterialProviders/runtimes/python/src/aws_cryptography_materialproviders_test_vectors/smithygenerated/aws_cryptography_materialproviderstestvectorkeys/smithy_to_dafny.py index 0267c658a..928672dec 100644 --- a/TestVectorsAwsCryptographicMaterialProviders/runtimes/python/src/aws_cryptography_materialproviders_test_vectors/smithygenerated/aws_cryptography_materialproviderstestvectorkeys/smithy_to_dafny.py +++ b/TestVectorsAwsCryptographicMaterialProviders/runtimes/python/src/aws_cryptography_materialproviders_test_vectors/smithygenerated/aws_cryptography_materialproviderstestvectorkeys/smithy_to_dafny.py @@ -3,7 +3,7 @@ # Do not modify this file. This file is machine generated, and any changes to it will be overwritten. from _dafny import Seq -import aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.smithy_to_dafny +import aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.smithy_to_dafny import aws_cryptography_internal_kms.smithygenerated.com_amazonaws_kms.aws_sdk_to_dafny from aws_cryptography_materialproviders_test_vectors.internaldafny.generated.AwsCryptographyMaterialProvidersTestVectorKeysTypes import ( CmmOperation_DECRYPT, @@ -231,7 +231,7 @@ def aws_cryptography_materialproviderstestvectorkeys_KmsMrkAwareDiscovery(native awsKmsDiscoveryFilter=( ( Option_Some( - aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.smithy_to_dafny.aws_cryptography_materialproviders_DiscoveryFilter( + aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.smithy_to_dafny.aws_cryptography_materialproviders_DiscoveryFilter( native_input.aws_kms_discovery_filter ) ) @@ -264,7 +264,7 @@ def aws_cryptography_materialproviderstestvectorkeys_RawRSA(native_input): ] ) ), - padding=aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.smithy_to_dafny.aws_cryptography_materialproviders_PaddingScheme( + padding=aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.smithy_to_dafny.aws_cryptography_materialproviders_PaddingScheme( native_input.padding ), ) @@ -570,7 +570,7 @@ def aws_cryptography_materialproviderstestvectorkeys_SerializeKeyDescriptionInpu def aws_cryptography_materialproviderstestvectorkeys_CreateWrappedTestVectorCmmOutput( native_input, ): - return aws_cryptographic_materialproviders.smithygenerated.aws_cryptography_materialproviders.smithy_to_dafny.aws_cryptography_materialproviders_CryptographicMaterialsManagerReference( + return aws_cryptographic_material_providers.smithygenerated.aws_cryptography_materialproviders.smithy_to_dafny.aws_cryptography_materialproviders_CryptographicMaterialsManagerReference( native_input )