2020-12-09 15:31:34 +00:00
|
|
|
// GENERATED, DO NOT EDIT THIS FILE
|
|
|
|
package aws
|
|
|
|
|
2021-03-25 11:13:52 +00:00
|
|
|
import "github.com/zclconf/go-cty/cty"
|
|
|
|
|
2020-12-09 15:31:34 +00:00
|
|
|
const AwsIamRolePolicyAttachmentResourceType = "aws_iam_role_policy_attachment"
|
|
|
|
|
|
|
|
type AwsIamRolePolicyAttachment struct {
|
2021-03-25 11:13:52 +00:00
|
|
|
Id string `cty:"id" computed:"true"`
|
|
|
|
PolicyArn *string `cty:"policy_arn"`
|
|
|
|
Role *string `cty:"role"`
|
|
|
|
CtyVal *cty.Value `diff:"-"`
|
2020-12-09 15:31:34 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (r *AwsIamRolePolicyAttachment) TerraformId() string {
|
|
|
|
return r.Id
|
|
|
|
}
|
|
|
|
|
|
|
|
func (r *AwsIamRolePolicyAttachment) TerraformType() string {
|
|
|
|
return AwsIamRolePolicyAttachmentResourceType
|
|
|
|
}
|
2021-03-25 11:13:52 +00:00
|
|
|
|
|
|
|
func (r *AwsIamRolePolicyAttachment) CtyValue() *cty.Value {
|
|
|
|
return r.CtyVal
|
|
|
|
}
|