github.com/aws/aws-cryptographic-material-providers-library/releases/go/mpl@v0.2.0/awscryptographymaterialproviderssmithygenerated/BranchKeyIdSupplier.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 ) 9 10 type BranchKeyIdSupplier struct { 11 Impl AwsCryptographyMaterialProvidersTypes.IBranchKeyIdSupplier 12 } 13 14 func (this *BranchKeyIdSupplier) GetBranchKeyId(params awscryptographymaterialproviderssmithygeneratedtypes.GetBranchKeyIdInput) (*awscryptographymaterialproviderssmithygeneratedtypes.GetBranchKeyIdOutput, error) { 15 var dafny_request AwsCryptographyMaterialProvidersTypes.GetBranchKeyIdInput = GetBranchKeyIdInput_ToDafny(params) 16 var dafny_response = this.Impl.GetBranchKeyId(dafny_request) 17 18 if dafny_response.Is_Failure() { 19 err := dafny_response.Dtor_error().(AwsCryptographyMaterialProvidersTypes.Error) 20 return nil, Error_FromDafny(err) 21 } 22 var native_response = GetBranchKeyIdOutput_FromDafny(dafny_response.Dtor_value().(AwsCryptographyMaterialProvidersTypes.GetBranchKeyIdOutput)) 23 return &native_response, nil 24 25 }