driftctl/pkg/resource/aws/aws_s3_bucket_inventory.go

15 lines
555 B
Go

package aws
import "github.com/cloudskiff/driftctl/pkg/resource"
const AwsS3BucketInventoryResourceType = "aws_s3_bucket_inventory"
func initAwsS3BucketInventoryMetadata(resourceSchemaRepository resource.SchemaRepositoryInterface) {
resourceSchemaRepository.SetResolveReadAttributesFunc(AwsS3BucketInventoryResourceType, func(res *resource.Resource) map[string]string {
return map[string]string{
"alias": *res.Attributes().GetString("region"),
}
})
resourceSchemaRepository.SetFlags(AwsS3BucketInventoryResourceType, resource.FlagDeepMode)
}