Skip to content

Commit 011098a

Browse files
auto commit
1 parent 60b0248 commit 011098a

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

Examples/runtimes/go/misc/createBranchKeyID.go

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ package misc
55

66
import (
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 (
3534
func 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
}

0 commit comments

Comments
 (0)