driftctl/pkg/resource/aws/aws_iam_user_policy_attachm...

15 lines
551 B
Go
Raw Normal View History

package aws
2021-08-09 15:15:35 +00:00
import "github.com/cloudskiff/driftctl/pkg/resource"
const AwsIamUserPolicyAttachmentResourceType = "aws_iam_user_policy_attachment"
2021-08-09 15:15:35 +00:00
func initAwsIamUserPolicyAttachmentMetaData(resourceSchemaRepository resource.SchemaRepositoryInterface) {
resourceSchemaRepository.SetResolveReadAttributesFunc(AwsIamUserPolicyAttachmentResourceType, func(res *resource.Resource) map[string]string {
return map[string]string{
"user": *res.Attributes().GetString("user"),
"policy_arn": *res.Attributes().GetString("policy_arn"),
}
})
}