Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update MemberStatus values to the currently available through the AWS… #16404

Merged
merged 3 commits into from
Nov 24, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 6 additions & 3 deletions aws/resource_aws_securityhub_member.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,14 @@ import (
)

const (
// Associated is the member status naming for regions that do not support Organizations
SecurityHubMemberStatusAssociated = "Associated"
SecurityHubMemberStatusCreated = "Created"
SecurityHubMemberStatusInvited = "Invited"
SecurityHubMemberStatusAssociated = "Associated"
SecurityHubMemberStatusResigned = "Resigned"
SecurityHubMemberStatusEnabled = "Enabled"
SecurityHubMemberStatusRemoved = "Removed"
SecurityHubMemberStatusResigned = "Resigned"
SecurityHubMemberStatusDeleted = "Deleted"
)

func resourceAwsSecurityHubMember() *schema.Resource {
Expand Down Expand Up @@ -128,7 +131,7 @@ func resourceAwsSecurityHubMemberRead(d *schema.ResourceData, meta interface{})
status := aws.StringValue(member.MemberStatus)
d.Set("member_status", status)

invited := status == SecurityHubMemberStatusInvited || status == SecurityHubMemberStatusAssociated || status == SecurityHubMemberStatusResigned
invited := status == SecurityHubMemberStatusInvited || status == SecurityHubMemberStatusEnabled || status == SecurityHubMemberStatusAssociated || status == SecurityHubMemberStatusResigned
d.Set("invite", invited)

return nil
Expand Down