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
5
5
6
6
import (
7
7
"context"
8
- "fmt"
9
8
10
9
keystore "github.com/aws/aws-cryptographic-material-providers-library/releases/go/mpl/awscryptographykeystoresmithygenerated"
11
10
keystoretypes "github.com/aws/aws-cryptographic-material-providers-library/releases/go/mpl/awscryptographykeystoresmithygeneratedtypes"
@@ -35,7 +34,7 @@ import (
35
34
func CreateBranchKeyIDExample (
36
35
keyStoreTableName ,
37
36
logicalKeyStoreName ,
38
- kmsKeyArn string ) {
37
+ kmsKeyArn string ) string {
39
38
cfg , err := config .LoadDefaultConfig (context .TODO ())
40
39
utils .HandleError (err )
41
40
ddbClient := dynamodb .NewFromConfig (cfg )
@@ -60,5 +59,5 @@ func CreateBranchKeyIDExample(
60
59
branchKey , err := keyStore .CreateKey (context .Background (), keystoretypes.CreateKeyInput {})
61
60
utils .HandleError (err )
62
61
63
- fmt . Println ( "Branch Key ID " + branchKey .BranchKeyIdentifier + " created in Create Branch Key ID Example." )
62
+ return branchKey .BranchKeyIdentifier
64
63
}
You can’t perform that action at this time.
0 commit comments