driftctl/pkg/resource/aws/aws_cloudfront_distribution.go

19 lines
619 B
Go
Raw Normal View History

2021-02-17 14:33:08 +00:00
package aws
2021-03-26 08:44:55 +00:00
import (
"github.com/cloudskiff/driftctl/pkg/resource"
)
2021-03-25 11:13:52 +00:00
2021-02-17 14:33:08 +00:00
const AwsCloudfrontDistributionResourceType = "aws_cloudfront_distribution"
2021-03-26 08:44:55 +00:00
func initAwsCloudfrontDistributionMetaData(resourceSchemaRepository resource.SchemaRepositoryInterface) {
resourceSchemaRepository.SetNormalizeFunc(AwsCloudfrontDistributionResourceType, func(res *resource.AbstractResource) {
val := res.Attrs
2021-03-26 08:44:55 +00:00
val.SafeDelete([]string{"etag"})
val.SafeDelete([]string{"last_modified_time"})
val.SafeDelete([]string{"retain_on_delete"})
val.SafeDelete([]string{"status"})
val.SafeDelete([]string{"wait_for_deployment"})
})
}