Skip to content

Commit

Permalink
Merge pull request #32348 from hashicorp/b-lambda_function_empty_tags
Browse files Browse the repository at this point in the history
lambda: add ListTags to allow computed tags
  • Loading branch information
johnsonaj authored Jul 3, 2023
2 parents f79d778 + f341088 commit c606127
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 11 deletions.
10 changes: 0 additions & 10 deletions internal/service/lambda/function_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3734,11 +3734,6 @@ resource "aws_s3_bucket" "artifacts" {
force_destroy = true
}
resource "aws_s3_bucket_acl" "artifacts" {
bucket = aws_s3_bucket.artifacts.id
acl = "private"
}
resource "aws_s3_bucket_versioning" "artifacts" {
bucket = aws_s3_bucket.artifacts.id
versioning_configuration {
Expand Down Expand Up @@ -3795,11 +3790,6 @@ resource "aws_s3_bucket" "artifacts" {
force_destroy = true
}
resource "aws_s3_bucket_acl" "artifacts" {
bucket = aws_s3_bucket.artifacts.id
acl = "private"
}
resource "aws_s3_object" "o" {
bucket = aws_s3_bucket.artifacts.bucket
key = %[2]q
Expand Down
2 changes: 1 addition & 1 deletion internal/service/lambda/generate.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// Copyright (c) HashiCorp, Inc.
// SPDX-License-Identifier: MPL-2.0

//go:generate go run ../../generate/tags/main.go -ServiceTagsMap -TagInIDElem=Resource -UpdateTags -AWSSDKVersion=2 -KVTValues -SkipTypesImp
//go:generate go run ../../generate/tags/main.go -ServiceTagsMap -TagInIDElem=Resource -UpdateTags -ListTags -ListTagsInIDElem=Resource -ListTagsOp=ListTags -AWSSDKVersion=2 -KVTValues -SkipTypesImp
//go:generate go run ../../generate/servicepackage/main.go
// ONLY generate directives and package declaration! Do not add anything else to this file.

Expand Down
33 changes: 33 additions & 0 deletions internal/service/lambda/tags_gen.go

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

0 comments on commit c606127

Please sign in to comment.