Copyright | (c) 2013-2023 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
Provides the details for the GuardDuty administrator account associated with the current GuardDuty member account.
Synopsis
- data GetAdministratorAccount = GetAdministratorAccount' {
- detectorId :: Text
- newGetAdministratorAccount :: Text -> GetAdministratorAccount
- getAdministratorAccount_detectorId :: Lens' GetAdministratorAccount Text
- data GetAdministratorAccountResponse = GetAdministratorAccountResponse' {}
- newGetAdministratorAccountResponse :: Int -> Administrator -> GetAdministratorAccountResponse
- getAdministratorAccountResponse_httpStatus :: Lens' GetAdministratorAccountResponse Int
- getAdministratorAccountResponse_administrator :: Lens' GetAdministratorAccountResponse Administrator
Creating a Request
data GetAdministratorAccount Source #
See: newGetAdministratorAccount
smart constructor.
GetAdministratorAccount' | |
|
Instances
newGetAdministratorAccount Source #
Create a value of GetAdministratorAccount
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:
GetAdministratorAccount
, getAdministratorAccount_detectorId
- The unique ID of the detector of the GuardDuty member account.
Request Lenses
getAdministratorAccount_detectorId :: Lens' GetAdministratorAccount Text Source #
The unique ID of the detector of the GuardDuty member account.
Destructuring the Response
data GetAdministratorAccountResponse Source #
See: newGetAdministratorAccountResponse
smart constructor.
GetAdministratorAccountResponse' | |
|
Instances
Generic GetAdministratorAccountResponse Source # | |
Read GetAdministratorAccountResponse Source # | |
Show GetAdministratorAccountResponse Source # | |
Defined in Amazonka.GuardDuty.GetAdministratorAccount | |
NFData GetAdministratorAccountResponse Source # | |
Defined in Amazonka.GuardDuty.GetAdministratorAccount rnf :: GetAdministratorAccountResponse -> () # | |
Eq GetAdministratorAccountResponse Source # | |
type Rep GetAdministratorAccountResponse Source # | |
Defined in Amazonka.GuardDuty.GetAdministratorAccount type Rep GetAdministratorAccountResponse = D1 ('MetaData "GetAdministratorAccountResponse" "Amazonka.GuardDuty.GetAdministratorAccount" "amazonka-guardduty-2.0-2NN502sGcQRH5risQZb24c" 'False) (C1 ('MetaCons "GetAdministratorAccountResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int) :*: S1 ('MetaSel ('Just "administrator") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Administrator))) |
newGetAdministratorAccountResponse Source #
Create a value of GetAdministratorAccountResponse
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:GetAdministratorAccountResponse'
, getAdministratorAccountResponse_httpStatus
- The response's http status code.
$sel:administrator:GetAdministratorAccountResponse'
, getAdministratorAccountResponse_administrator
- The administrator account details.
Response Lenses
getAdministratorAccountResponse_httpStatus :: Lens' GetAdministratorAccountResponse Int Source #
The response's http status code.
getAdministratorAccountResponse_administrator :: Lens' GetAdministratorAccountResponse Administrator Source #
The administrator account details.