driftctl/pkg/resource/aws/aws_eip.go

17 lines
493 B
Go
Raw Permalink Normal View History

package aws
2022-07-21 13:08:43 +00:00
import (
"github.com/snyk/driftctl/enumeration/resource"
dctlresource "github.com/snyk/driftctl/pkg/resource"
)
2022-07-21 08:37:03 +00:00
const AwsEipResourceType = "aws_eip"
2021-03-25 11:13:52 +00:00
2022-07-21 13:08:43 +00:00
func initAwsEipMetaData(resourceSchemaRepository dctlresource.SchemaRepositoryInterface) {
2022-07-21 08:37:03 +00:00
resourceSchemaRepository.SetNormalizeFunc(AwsEipResourceType, func(res *resource.Resource) {
val := res.Attrs
2021-05-17 09:38:08 +00:00
val.SafeDelete([]string{"timeouts"})
})
2022-07-21 08:37:03 +00:00
resourceSchemaRepository.SetFlags(AwsEipResourceType, resource.FlagDeepMode)
2021-05-17 09:38:08 +00:00
}