Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Keyvaluetags - add support for SQS & Cloudwatch Logs #10740

Merged
merged 9 commits into from
Nov 4, 2019
10 changes: 10 additions & 0 deletions aws/internal/keyvaluetags/generators/listtags/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ var serviceNames = []string{
"cloudhsmv2",
"cloudwatch",
"cloudwatchevents",
"cloudwatchlogs",
"codecommit",
"codedeploy",
"codepipeline",
Expand Down Expand Up @@ -79,6 +80,7 @@ var serviceNames = []string{
"securityhub",
"sfn",
"sns",
"sqs",
"ssm",
"storagegateway",
"swf",
Expand Down Expand Up @@ -192,6 +194,8 @@ func ServiceListTagsFunction(serviceName string) string {
return "ListTags"
case "cloudhsmv2":
return "ListTags"
case "cloudwatchlogs":
return "ListTagsLogGroup"
case "dax":
return "ListTags"
case "dynamodb":
Expand Down Expand Up @@ -220,6 +224,8 @@ func ServiceListTagsFunction(serviceName string) string {
return "GetTags"
case "sagemaker":
return "ListTags"
case "sqs":
return "ListQueueTags"
case "workspaces":
return "DescribeTags"
default:
Expand All @@ -242,6 +248,8 @@ func ServiceListTagsInputIdentifierField(serviceName string) string {
return "ResourceARN"
case "cloudwatchevents":
return "ResourceARN"
case "cloudwatchlogs":
return "LogGroupName"
case "dax":
return "ResourceName"
case "devicefarm":
Expand Down Expand Up @@ -282,6 +290,8 @@ func ServiceListTagsInputIdentifierField(serviceName string) string {
return "ResourceName"
case "resourcegroups":
return "Arn"
case "sqs":
return "QueueUrl"
case "ssm":
return "ResourceId"
case "storagegateway":
Expand Down
16 changes: 16 additions & 0 deletions aws/internal/keyvaluetags/generators/updatetags/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ var serviceNames = []string{
"cloudhsmv2",
"cloudwatch",
"cloudwatchevents",
"cloudwatchlogs",
"codecommit",
"codedeploy",
"codepipeline",
Expand Down Expand Up @@ -87,6 +88,7 @@ var serviceNames = []string{
"securityhub",
"sfn",
"sns",
"sqs",
"ssm",
"storagegateway",
"swf",
Expand Down Expand Up @@ -231,6 +233,8 @@ func ServiceTagFunction(serviceName string) string {
return "AddTagsToCertificate"
case "acmpca":
return "TagCertificateAuthority"
case "cloudwatchlogs":
return "TagLogGroup"
case "databasemigrationservice":
return "AddTagsToResource"
case "datapipeline":
Expand Down Expand Up @@ -267,6 +271,8 @@ func ServiceTagFunction(serviceName string) string {
return "Tag"
case "sagemaker":
return "AddTags"
case "sqs":
return "TagQueue"
case "ssm":
return "AddTagsToResource"
case "storagegateway":
Expand All @@ -293,6 +299,8 @@ func ServiceTagInputIdentifierField(serviceName string) string {
return "ResourceARN"
case "cloudwatchevents":
return "ResourceARN"
case "cloudwatchlogs":
return "LogGroupName"
case "datapipeline":
return "PipelineId"
case "dax":
Expand Down Expand Up @@ -347,6 +355,8 @@ func ServiceTagInputIdentifierField(serviceName string) string {
return "Arn"
case "secretsmanager":
return "SecretId"
case "sqs":
return "QueueUrl"
case "ssm":
return "ResourceId"
case "storagegateway":
Expand Down Expand Up @@ -405,6 +415,8 @@ func ServiceUntagFunction(serviceName string) string {
return "RemoveTagsFromCertificate"
case "acmpca":
return "UntagCertificateAuthority"
case "cloudwatchlogs":
return "UntagLogGroup"
case "databasemigrationservice":
return "RemoveTagsFromResource"
case "datapipeline":
Expand Down Expand Up @@ -441,6 +453,8 @@ func ServiceUntagFunction(serviceName string) string {
return "Untag"
case "sagemaker":
return "DeleteTags"
case "sqs":
return "UntagQueue"
case "ssm":
return "RemoveTagsFromResource"
case "storagegateway":
Expand Down Expand Up @@ -477,6 +491,8 @@ func ServiceUntagInputTagsField(serviceName string) string {
return "TagKeyList"
case "cloudhsmv2":
return "TagKeyList"
case "cloudwatchlogs":
return "Tags"
case "datasync":
return "Keys"
case "ec2":
Expand Down
36 changes: 36 additions & 0 deletions aws/internal/keyvaluetags/list_tags_gen.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ import (
"github.com/aws/aws-sdk-go/service/cloudhsmv2"
"github.com/aws/aws-sdk-go/service/cloudwatch"
"github.com/aws/aws-sdk-go/service/cloudwatchevents"
"github.com/aws/aws-sdk-go/service/cloudwatchlogs"
"github.com/aws/aws-sdk-go/service/codecommit"
"github.com/aws/aws-sdk-go/service/codedeploy"
"github.com/aws/aws-sdk-go/service/codepipeline"
Expand Down Expand Up @@ -81,6 +82,7 @@ import (
"github.com/aws/aws-sdk-go/service/securityhub"
"github.com/aws/aws-sdk-go/service/sfn"
"github.com/aws/aws-sdk-go/service/sns"
"github.com/aws/aws-sdk-go/service/sqs"
"github.com/aws/aws-sdk-go/service/ssm"
"github.com/aws/aws-sdk-go/service/storagegateway"
"github.com/aws/aws-sdk-go/service/swf"
Expand Down Expand Up @@ -124,6 +126,8 @@ func ServiceClientType(serviceName string) string {
funcType = reflect.TypeOf(cloudwatch.New)
case "cloudwatchevents":
funcType = reflect.TypeOf(cloudwatchevents.New)
case "cloudwatchlogs":
funcType = reflect.TypeOf(cloudwatchlogs.New)
case "codecommit":
funcType = reflect.TypeOf(codecommit.New)
case "codedeploy":
Expand Down Expand Up @@ -246,6 +250,8 @@ func ServiceClientType(serviceName string) string {
funcType = reflect.TypeOf(sfn.New)
case "sns":
funcType = reflect.TypeOf(sns.New)
case "sqs":
funcType = reflect.TypeOf(sqs.New)
case "ssm":
funcType = reflect.TypeOf(ssm.New)
case "storagegateway":
Expand Down
74 changes: 74 additions & 0 deletions aws/internal/keyvaluetags/update_tags_gen.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.