You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
I am using the SDK to update Elemental MediaTailor Playback Configuration using the PutPlaybackConfiguration method.
When I try to update the Tags field (type map[string]*string) of a Playback Configuration with another map that does not include some or all the tags previously included, the previous tags are not deleted.
For everyone else encountering the same problem, I am using the UntagResource method as a workaround.
I manually check for differences in the tags and create a list of values that have to be removed, then I call both the UntagResource and PutPlaybackConfiguration methods to edit the tags and everything else respectively.
Hi, I have reproduced this and seems like when the tags argument is empty, it will be ignored. I will run some more tests to see how other SDKs behavior with this and update again.
This is a service related API design choice and not an issue with the SDK. From an API design perspective. It seems like UntagResource is the intended way for you to remove tags on mediaTailor resources.
Comments on closed issues are hard for our team to see.
If you need more assistance, please either tag a team member or open a new issue that references this one.
If you wish to keep having a conversation with other community members under this issue feel free to do so.
Confirm by changing [ ] to [x] below to ensure that it's a bug:
Describe the bug
I am using the SDK to update Elemental MediaTailor Playback Configuration using the PutPlaybackConfiguration method.
When I try to update the Tags field (type
map[string]*string
) of a Playback Configuration with another map that does not include some or all the tags previously included, the previous tags are not deleted.Version of AWS SDK for Go?
v1.43.27
Version of Go (
go version
)?Go1.17.6
To Reproduce (observed behavior)
Initialize MediaTailor
Create a Playback Configuration with tags
Run
aws mediatailor get-playback-configuration --name="example"
and verify thatTags
is equal to:Update the Tags value to an empty map
Run
aws mediatailor get-playback-configuration --name="example"
and verify thatTags
is still equal to:Expected behavior
After updating the
Tags
field with an empty map, its value should be equal to:"Tags": {}
The text was updated successfully, but these errors were encountered: