sparse-intern-71089
05/18/2022, 12:39 PMtall-librarian-49374
06/03/2022, 2:56 PMbusy-honey-73811
06/03/2022, 3:06 PMaws-native.tall-librarian-49374
06/03/2022, 3:12 PMthat does not work forCould you highlight the difference between two providers that makes it impossible for me?.aws-native
busy-honey-73811
06/03/2022, 3:31 PM??? in my example code snipped above.
var tagList ???
if !tags.IsZero() {
tagList = tags.Interface().(???)
} else {
tagList = ???{}
}
for k, v := range t.tags {
tagList = append(tagList, ???{ Key: pulumi.String(k), Value: pulumi.String(v)})
}
There is no common (Go struct) type for Tags in the (generated) aws-native Go SDK. For each AWS Service (e.g. ec2, …), service specific (struct) types are created for Tags. For example:
• for https://www.pulumi.com/registry/packages/aws-native/api-docs/kms/key/ there is KeyTagArray and KeyTagArgs
• for https://www.pulumi.com/registry/packages/aws-native/api-docs/ecr/repository/there is PublicRepositoryTagArray and PublicRepositoryTagArgsbusy-honey-73811
06/03/2022, 3:33 PMtall-librarian-49374
06/03/2022, 3:33 PM