github.com/aws/aws-cryptographic-material-providers-library/releases/go/mpl@v0.2.0/awscryptographymaterialproviderssmithygenerated/BranchKeyIdSupplierNativeWrapper.go (about) 1 // Code generated by smithy-go-codegen DO NOT EDIT. 2 3 package awscryptographymaterialproviderssmithygenerated 4 5 import ( 6 "github.com/aws/aws-cryptographic-material-providers-library/releases/go/mpl/AwsCryptographyMaterialProvidersTypes" 7 "github.com/aws/aws-cryptographic-material-providers-library/releases/go/mpl/awscryptographymaterialproviderssmithygeneratedtypes" 8 "github.com/aws/aws-cryptographic-material-providers-library/releases/go/smithy-dafny-standard-library/Wrappers" 9 ) 10 11 type BranchKeyIdSupplierNativeWrapper struct { 12 AwsCryptographyMaterialProvidersTypes.IBranchKeyIdSupplier 13 Impl awscryptographymaterialproviderssmithygeneratedtypes.IBranchKeyIdSupplier 14 } 15 16 func (this *BranchKeyIdSupplierNativeWrapper) GetBranchKeyId(input AwsCryptographyMaterialProvidersTypes.GetBranchKeyIdInput) Wrappers.Result { 17 var native_request = GetBranchKeyIdInput_FromDafny(input) 18 var native_response, native_error = this.Impl.GetBranchKeyId(native_request) 19 if native_error != nil { 20 return Wrappers.Companion_Result_.Create_Failure_(Error_ToDafny(native_error)) 21 } 22 return Wrappers.Companion_Result_.Create_Success_(GetBranchKeyIdOutput_ToDafny(*native_response)) 23 }