provider: Remove extraneous AWS Go SDK value wrapping in d.Set() #16554
Labels
linter
Pertains to changes to or issues with the various linters.
provider
Pertains to the provider itself, rather than any interaction with AWS.
technical-debt
Addresses areas of the codebase that need refactoring or redesign.
Milestone
Community Note
Description
The
(*schema.ResourceData).Set()
receiver method automatically handles pointer types andnil
values, so wrapping the values with the AWS Go SDK pointer conversion functions, e.g.aws.StringValue()
is extraneous.Note: This should not include slice/map functions calls such as
aws.StringValueSlice()
since those conversions are not automatic.Example semgrep Rule
Example Reports
Affected Resources
TBD
Definition of Done
.semgrep.yml
with no reports on main branch and CI passesThe text was updated successfully, but these errors were encountered: