amazonka-detective-2.0: Amazon Detective SDK.
Copyright(c) 2013-2023 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellSafe-Inferred
LanguageHaskell2010

Amazonka.Detective.DeleteMembers

Description

Removes the specified member accounts from the behavior graph. The removed accounts no longer contribute data to the behavior graph. This operation can only be called by the administrator account for the behavior graph.

For invited accounts, the removed accounts are deleted from the list of accounts in the behavior graph. To restore the account, the administrator account must send another invitation.

For organization accounts in the organization behavior graph, the Detective administrator account can always enable the organization account again. Organization accounts that are not enabled as member accounts are not included in the ListMembers results for the organization behavior graph.

An administrator account cannot use DeleteMembers to remove their own account from the behavior graph. To disable a behavior graph, the administrator account uses the DeleteGraph API method.

Synopsis

Creating a Request

data DeleteMembers Source #

See: newDeleteMembers smart constructor.

Constructors

DeleteMembers' 

Fields

  • graphArn :: Text

    The ARN of the behavior graph to remove members from.

  • accountIds :: NonEmpty Text

    The list of Amazon Web Services account identifiers for the member accounts to remove from the behavior graph. You can remove up to 50 member accounts at a time.

Instances

Instances details
ToJSON DeleteMembers Source # 
Instance details

Defined in Amazonka.Detective.DeleteMembers

ToHeaders DeleteMembers Source # 
Instance details

Defined in Amazonka.Detective.DeleteMembers

ToPath DeleteMembers Source # 
Instance details

Defined in Amazonka.Detective.DeleteMembers

ToQuery DeleteMembers Source # 
Instance details

Defined in Amazonka.Detective.DeleteMembers

AWSRequest DeleteMembers Source # 
Instance details

Defined in Amazonka.Detective.DeleteMembers

Associated Types

type AWSResponse DeleteMembers #

Generic DeleteMembers Source # 
Instance details

Defined in Amazonka.Detective.DeleteMembers

Associated Types

type Rep DeleteMembers :: Type -> Type #

Read DeleteMembers Source # 
Instance details

Defined in Amazonka.Detective.DeleteMembers

Show DeleteMembers Source # 
Instance details

Defined in Amazonka.Detective.DeleteMembers

NFData DeleteMembers Source # 
Instance details

Defined in Amazonka.Detective.DeleteMembers

Methods

rnf :: DeleteMembers -> () #

Eq DeleteMembers Source # 
Instance details

Defined in Amazonka.Detective.DeleteMembers

Hashable DeleteMembers Source # 
Instance details

Defined in Amazonka.Detective.DeleteMembers

type AWSResponse DeleteMembers Source # 
Instance details

Defined in Amazonka.Detective.DeleteMembers

type Rep DeleteMembers Source # 
Instance details

Defined in Amazonka.Detective.DeleteMembers

type Rep DeleteMembers = D1 ('MetaData "DeleteMembers" "Amazonka.Detective.DeleteMembers" "amazonka-detective-2.0-7OiRDHTBp2P6vp0DOMdDcL" 'False) (C1 ('MetaCons "DeleteMembers'" 'PrefixI 'True) (S1 ('MetaSel ('Just "graphArn") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "accountIds") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (NonEmpty Text))))

newDeleteMembers Source #

Create a value of DeleteMembers with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

DeleteMembers, deleteMembers_graphArn - The ARN of the behavior graph to remove members from.

DeleteMembers, deleteMembers_accountIds - The list of Amazon Web Services account identifiers for the member accounts to remove from the behavior graph. You can remove up to 50 member accounts at a time.

Request Lenses

deleteMembers_graphArn :: Lens' DeleteMembers Text Source #

The ARN of the behavior graph to remove members from.

deleteMembers_accountIds :: Lens' DeleteMembers (NonEmpty Text) Source #

The list of Amazon Web Services account identifiers for the member accounts to remove from the behavior graph. You can remove up to 50 member accounts at a time.

Destructuring the Response

data DeleteMembersResponse Source #

See: newDeleteMembersResponse smart constructor.

Constructors

DeleteMembersResponse' 

Fields

  • accountIds :: Maybe (NonEmpty Text)

    The list of Amazon Web Services account identifiers for the member accounts that Detective successfully removed from the behavior graph.

  • unprocessedAccounts :: Maybe [UnprocessedAccount]

    The list of member accounts that Detective was not able to remove from the behavior graph. For each member account, provides the reason that the deletion could not be processed.

  • httpStatus :: Int

    The response's http status code.

Instances

Instances details
Generic DeleteMembersResponse Source # 
Instance details

Defined in Amazonka.Detective.DeleteMembers

Associated Types

type Rep DeleteMembersResponse :: Type -> Type #

Read DeleteMembersResponse Source # 
Instance details

Defined in Amazonka.Detective.DeleteMembers

Show DeleteMembersResponse Source # 
Instance details

Defined in Amazonka.Detective.DeleteMembers

NFData DeleteMembersResponse Source # 
Instance details

Defined in Amazonka.Detective.DeleteMembers

Methods

rnf :: DeleteMembersResponse -> () #

Eq DeleteMembersResponse Source # 
Instance details

Defined in Amazonka.Detective.DeleteMembers

type Rep DeleteMembersResponse Source # 
Instance details

Defined in Amazonka.Detective.DeleteMembers

type Rep DeleteMembersResponse = D1 ('MetaData "DeleteMembersResponse" "Amazonka.Detective.DeleteMembers" "amazonka-detective-2.0-7OiRDHTBp2P6vp0DOMdDcL" 'False) (C1 ('MetaCons "DeleteMembersResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "accountIds") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe (NonEmpty Text))) :*: (S1 ('MetaSel ('Just "unprocessedAccounts") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [UnprocessedAccount])) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))))

newDeleteMembersResponse Source #

Create a value of DeleteMembersResponse with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

DeleteMembers, deleteMembersResponse_accountIds - The list of Amazon Web Services account identifiers for the member accounts that Detective successfully removed from the behavior graph.

$sel:unprocessedAccounts:DeleteMembersResponse', deleteMembersResponse_unprocessedAccounts - The list of member accounts that Detective was not able to remove from the behavior graph. For each member account, provides the reason that the deletion could not be processed.

$sel:httpStatus:DeleteMembersResponse', deleteMembersResponse_httpStatus - The response's http status code.

Response Lenses

deleteMembersResponse_accountIds :: Lens' DeleteMembersResponse (Maybe (NonEmpty Text)) Source #

The list of Amazon Web Services account identifiers for the member accounts that Detective successfully removed from the behavior graph.

deleteMembersResponse_unprocessedAccounts :: Lens' DeleteMembersResponse (Maybe [UnprocessedAccount]) Source #

The list of member accounts that Detective was not able to remove from the behavior graph. For each member account, provides the reason that the deletion could not be processed.