Copyright | (c) 2013-2021 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Turns on GuardDuty monitoring of the specified member accounts. Use this
operation to restart monitoring of accounts that you stopped monitoring
with the StopMonitoringMembers
operation.
Synopsis
- data StartMonitoringMembers = StartMonitoringMembers' {
- detectorId :: Text
- accountIds :: NonEmpty Text
- newStartMonitoringMembers :: Text -> NonEmpty Text -> StartMonitoringMembers
- startMonitoringMembers_detectorId :: Lens' StartMonitoringMembers Text
- startMonitoringMembers_accountIds :: Lens' StartMonitoringMembers (NonEmpty Text)
- data StartMonitoringMembersResponse = StartMonitoringMembersResponse' {}
- newStartMonitoringMembersResponse :: Int -> StartMonitoringMembersResponse
- startMonitoringMembersResponse_httpStatus :: Lens' StartMonitoringMembersResponse Int
- startMonitoringMembersResponse_unprocessedAccounts :: Lens' StartMonitoringMembersResponse [UnprocessedAccount]
Creating a Request
data StartMonitoringMembers Source #
See: newStartMonitoringMembers
smart constructor.
StartMonitoringMembers' | |
|
Instances
newStartMonitoringMembers Source #
:: Text | |
-> NonEmpty Text | |
-> StartMonitoringMembers |
Create a value of StartMonitoringMembers
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:
$sel:detectorId:StartMonitoringMembers'
, startMonitoringMembers_detectorId
- The unique ID of the detector of the GuardDuty administrator account
associated with the member accounts to monitor.
$sel:accountIds:StartMonitoringMembers'
, startMonitoringMembers_accountIds
- A list of account IDs of the GuardDuty member accounts to start
monitoring.
Request Lenses
startMonitoringMembers_detectorId :: Lens' StartMonitoringMembers Text Source #
The unique ID of the detector of the GuardDuty administrator account associated with the member accounts to monitor.
startMonitoringMembers_accountIds :: Lens' StartMonitoringMembers (NonEmpty Text) Source #
A list of account IDs of the GuardDuty member accounts to start monitoring.
Destructuring the Response
data StartMonitoringMembersResponse Source #
See: newStartMonitoringMembersResponse
smart constructor.
StartMonitoringMembersResponse' | |
|
Instances
Eq StartMonitoringMembersResponse Source # | |
Read StartMonitoringMembersResponse Source # | |
Show StartMonitoringMembersResponse Source # | |
Defined in Amazonka.GuardDuty.StartMonitoringMembers | |
Generic StartMonitoringMembersResponse Source # | |
NFData StartMonitoringMembersResponse Source # | |
Defined in Amazonka.GuardDuty.StartMonitoringMembers rnf :: StartMonitoringMembersResponse -> () # | |
type Rep StartMonitoringMembersResponse Source # | |
Defined in Amazonka.GuardDuty.StartMonitoringMembers type Rep StartMonitoringMembersResponse = D1 ('MetaData "StartMonitoringMembersResponse" "Amazonka.GuardDuty.StartMonitoringMembers" "libZSservicesZSamazonka-guarddutyZSamazonka-guardduty" 'False) (C1 ('MetaCons "StartMonitoringMembersResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int) :*: S1 ('MetaSel ('Just "unprocessedAccounts") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 [UnprocessedAccount]))) |
newStartMonitoringMembersResponse Source #
Create a value of StartMonitoringMembersResponse
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:
$sel:httpStatus:StartMonitoringMembersResponse'
, startMonitoringMembersResponse_httpStatus
- The response's http status code.
$sel:unprocessedAccounts:StartMonitoringMembersResponse'
, startMonitoringMembersResponse_unprocessedAccounts
- A list of objects that contain the unprocessed account and a result
string that explains why it was unprocessed.
Response Lenses
startMonitoringMembersResponse_httpStatus :: Lens' StartMonitoringMembersResponse Int Source #
The response's http status code.
startMonitoringMembersResponse_unprocessedAccounts :: Lens' StartMonitoringMembersResponse [UnprocessedAccount] Source #
A list of objects that contain the unprocessed account and a result string that explains why it was unprocessed.