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) {
|
2021-05-24 15:19:06 +00:00
|
|
|
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"})
|
|
|
|
})
|
|
|
|
}
|