From fb932e6f53370215a8c630c7cf7cfd7d65755ecb Mon Sep 17 00:00:00 2001 From: Carl Brumm <26975605+c-e-brumm@users.noreply.github.com> Date: Tue, 22 Oct 2019 14:24:55 -0700 Subject: [PATCH] adding more comments --- pkg/awsclient/client.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pkg/awsclient/client.go b/pkg/awsclient/client.go index 112332fb6..6b0a91ddb 100644 --- a/pkg/awsclient/client.go +++ b/pkg/awsclient/client.go @@ -107,8 +107,10 @@ func BuildR53Input(hostedZone string) *route53.ChangeResourceRecordSetsInput { } // CreateR53TXTRecordChange creates an route53 Change object for a TXT record with a given name -// and a given action to take. +// and a given action to take. Valid actions are strings matching valid route53 ChangeActions. func CreateR53TXTRecordChange(name *string, action string, value *string) (change route53.Change, err error) { + // Checking the string 'action' to see if it matches any of the valid route53 acctions. + // If an incorrect string value is passed this function will exit and raise an error. if strings.EqualFold("DELETE", action) { action = route53.ChangeActionDelete } else if strings.EqualFold("CREATE", action) {