Skip to content
This repository has been archived by the owner on Oct 15, 2024. It is now read-only.

Commit

Permalink
Add properties for IAM role and group attachments (#614) (#615)
Browse files Browse the repository at this point in the history
Co-authored-by: Antoine C <antoine.colombier@m2amedia.tv>
  • Loading branch information
acolombier and Antoine C authored Mar 22, 2021
1 parent f9f4157 commit 91f2ae0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion resources/iam-group-policy-attachments.go
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,8 @@ func (e *IAMGroupPolicyAttachment) Remove() error {
func (e *IAMGroupPolicyAttachment) Properties() types.Properties {
return types.NewProperties().
Set("RoleName", e.roleName).
Set("PolicyName", e.policyName)
Set("PolicyName", e.policyName).
Set("PolicyArn", e.policyArn)
}

func (e *IAMGroupPolicyAttachment) String() string {
Expand Down
3 changes: 2 additions & 1 deletion resources/iam-role-policy-attachments.go
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,8 @@ func (e *IAMRolePolicyAttachment) Remove() error {
func (e *IAMRolePolicyAttachment) Properties() types.Properties {
return types.NewProperties().
Set("RoleName", e.roleName).
Set("PolicyName", e.policyName)
Set("PolicyName", e.policyName).
Set("PolicyArn", e.policyArn)
}

func (e *IAMRolePolicyAttachment) String() string {
Expand Down

0 comments on commit 91f2ae0

Please sign in to comment.