driftctl/pkg/resource/aws/aws_s3_bucket_inventory.go

15 lines
555 B
Go
Raw Normal View History

package aws
2021-08-09 15:15:35 +00:00
import "github.com/cloudskiff/driftctl/pkg/resource"
const AwsS3BucketInventoryResourceType = "aws_s3_bucket_inventory"
2021-08-09 15:15:35 +00:00
func initAwsS3BucketInventoryMetadata(resourceSchemaRepository resource.SchemaRepositoryInterface) {
resourceSchemaRepository.SetResolveReadAttributesFunc(AwsS3BucketInventoryResourceType, func(res *resource.Resource) map[string]string {
return map[string]string{
"alias": *res.Attributes().GetString("region"),
}
})
2021-09-17 15:16:06 +00:00
resourceSchemaRepository.SetFlags(AwsS3BucketInventoryResourceType, resource.FlagDeepMode)
2021-08-09 15:15:35 +00:00
}