File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed
Examples/runtimes/go/misc Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -5,7 +5,6 @@ package misc
55
66import (
77 "context"
8- "fmt"
98
109 keystore "github.com/aws/aws-cryptographic-material-providers-library/releases/go/mpl/awscryptographykeystoresmithygenerated"
1110 keystoretypes "github.com/aws/aws-cryptographic-material-providers-library/releases/go/mpl/awscryptographykeystoresmithygeneratedtypes"
@@ -35,7 +34,7 @@ import (
3534func CreateBranchKeyIDExample (
3635 keyStoreTableName ,
3736 logicalKeyStoreName ,
38- kmsKeyArn string ) {
37+ kmsKeyArn string ) string {
3938 cfg , err := config .LoadDefaultConfig (context .TODO ())
4039 utils .HandleError (err )
4140 ddbClient := dynamodb .NewFromConfig (cfg )
@@ -60,5 +59,5 @@ func CreateBranchKeyIDExample(
6059 branchKey , err := keyStore .CreateKey (context .Background (), keystoretypes.CreateKeyInput {})
6160 utils .HandleError (err )
6261
63- fmt . Println ( "Branch Key ID " + branchKey .BranchKeyIdentifier + " created in Create Branch Key ID Example." )
62+ return branchKey .BranchKeyIdentifier
6463}
You can’t perform that action at this time.
0 commit comments