14 lines
451 B
Go
14 lines
451 B
Go
package aws
|
|
|
|
import "github.com/cloudskiff/driftctl/pkg/resource"
|
|
|
|
const AwsS3BucketMetricResourceType = "aws_s3_bucket_metric"
|
|
|
|
func initAwsS3BucketMetricMetadata(resourceSchemaRepository resource.SchemaRepositoryInterface) {
|
|
resourceSchemaRepository.SetResolveReadAttributesFunc(AwsS3BucketMetricResourceType, func(res *resource.Resource) map[string]string {
|
|
return map[string]string{
|
|
"alias": *res.Attributes().GetString("region"),
|
|
}
|
|
})
|
|
}
|