2020-12-09 15:31:34 +00:00
|
|
|
package aws
|
|
|
|
|
2021-08-09 15:15:35 +00:00
|
|
|
import "github.com/cloudskiff/driftctl/pkg/resource"
|
|
|
|
|
2020-12-09 15:31:34 +00:00
|
|
|
const AwsS3BucketAnalyticsConfigurationResourceType = "aws_s3_bucket_analytics_configuration"
|
2021-08-09 15:15:35 +00:00
|
|
|
|
|
|
|
func initAwsS3BucketAnalyticsConfigurationMetaData(resourceSchemaRepository resource.SchemaRepositoryInterface) {
|
|
|
|
resourceSchemaRepository.SetResolveReadAttributesFunc(AwsS3BucketAnalyticsConfigurationResourceType, func(res *resource.Resource) map[string]string {
|
|
|
|
return map[string]string{
|
|
|
|
"alias": *res.Attributes().GetString("region"),
|
|
|
|
}
|
|
|
|
})
|
|
|
|
}
|