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 |
Synopsis
- defaultService :: Service
- _ValidationException :: AsError a => Getting (First ServiceError) a ServiceError
- _ConflictException :: AsError a => Getting (First ServiceError) a ServiceError
- _ServiceQuotaExceededException :: AsError a => Getting (First ServiceError) a ServiceError
- _InternalServerException :: AsError a => Getting (First ServiceError) a ServiceError
- _ResourceNotFoundException :: AsError a => Getting (First ServiceError) a ServiceError
- newtype MemberDisabledReason where
- newtype MemberStatus where
- MemberStatus' { }
- pattern MemberStatus_ACCEPTED_BUT_DISABLED :: MemberStatus
- pattern MemberStatus_ENABLED :: MemberStatus
- pattern MemberStatus_INVITED :: MemberStatus
- pattern MemberStatus_VERIFICATION_FAILED :: MemberStatus
- pattern MemberStatus_VERIFICATION_IN_PROGRESS :: MemberStatus
- data Account = Account' {
- accountId :: Text
- emailAddress :: Text
- newAccount :: Text -> Text -> Account
- account_accountId :: Lens' Account Text
- account_emailAddress :: Lens' Account Text
- data Graph = Graph' {}
- newGraph :: Graph
- graph_arn :: Lens' Graph (Maybe Text)
- graph_createdTime :: Lens' Graph (Maybe UTCTime)
- data MemberDetail = MemberDetail' {
- percentOfGraphUtilizationUpdatedTime :: Maybe POSIX
- status :: Maybe MemberStatus
- invitedTime :: Maybe POSIX
- administratorId :: Maybe Text
- graphArn :: Maybe Text
- masterId :: Maybe Text
- accountId :: Maybe Text
- disabledReason :: Maybe MemberDisabledReason
- percentOfGraphUtilization :: Maybe Double
- emailAddress :: Maybe Text
- volumeUsageUpdatedTime :: Maybe POSIX
- updatedTime :: Maybe POSIX
- volumeUsageInBytes :: Maybe Integer
- newMemberDetail :: MemberDetail
- memberDetail_percentOfGraphUtilizationUpdatedTime :: Lens' MemberDetail (Maybe UTCTime)
- memberDetail_status :: Lens' MemberDetail (Maybe MemberStatus)
- memberDetail_invitedTime :: Lens' MemberDetail (Maybe UTCTime)
- memberDetail_administratorId :: Lens' MemberDetail (Maybe Text)
- memberDetail_graphArn :: Lens' MemberDetail (Maybe Text)
- memberDetail_masterId :: Lens' MemberDetail (Maybe Text)
- memberDetail_accountId :: Lens' MemberDetail (Maybe Text)
- memberDetail_disabledReason :: Lens' MemberDetail (Maybe MemberDisabledReason)
- memberDetail_percentOfGraphUtilization :: Lens' MemberDetail (Maybe Double)
- memberDetail_emailAddress :: Lens' MemberDetail (Maybe Text)
- memberDetail_volumeUsageUpdatedTime :: Lens' MemberDetail (Maybe UTCTime)
- memberDetail_updatedTime :: Lens' MemberDetail (Maybe UTCTime)
- memberDetail_volumeUsageInBytes :: Lens' MemberDetail (Maybe Integer)
- data UnprocessedAccount = UnprocessedAccount' {}
- newUnprocessedAccount :: UnprocessedAccount
- unprocessedAccount_accountId :: Lens' UnprocessedAccount (Maybe Text)
- unprocessedAccount_reason :: Lens' UnprocessedAccount (Maybe Text)
Service Configuration
defaultService :: Service Source #
API version 2018-10-26
of the Amazon Detective SDK configuration.
Errors
_ValidationException :: AsError a => Getting (First ServiceError) a ServiceError Source #
The request parameters are invalid.
_ConflictException :: AsError a => Getting (First ServiceError) a ServiceError Source #
The request attempted an invalid action.
_ServiceQuotaExceededException :: AsError a => Getting (First ServiceError) a ServiceError Source #
This request cannot be completed for one of the following reasons.
- The request would cause the number of member accounts in the behavior graph to exceed the maximum allowed. A behavior graph cannot have more than 1000 member accounts.
- The request would cause the data rate for the behavior graph to exceed the maximum allowed.
- Detective is unable to verify the data rate for the member account. This is usually because the member account is not enrolled in Amazon GuardDuty.
_InternalServerException :: AsError a => Getting (First ServiceError) a ServiceError Source #
The request was valid but failed because of a problem with the service.
_ResourceNotFoundException :: AsError a => Getting (First ServiceError) a ServiceError Source #
The request refers to a nonexistent resource.
MemberDisabledReason
newtype MemberDisabledReason Source #
pattern MemberDisabledReason_VOLUME_TOO_HIGH :: MemberDisabledReason | |
pattern MemberDisabledReason_VOLUME_UNKNOWN :: MemberDisabledReason |
Instances
MemberStatus
newtype MemberStatus Source #
pattern MemberStatus_ACCEPTED_BUT_DISABLED :: MemberStatus | |
pattern MemberStatus_ENABLED :: MemberStatus | |
pattern MemberStatus_INVITED :: MemberStatus | |
pattern MemberStatus_VERIFICATION_FAILED :: MemberStatus | |
pattern MemberStatus_VERIFICATION_IN_PROGRESS :: MemberStatus |
Instances
Account
An AWS account that is the administrator account of or a member of a behavior graph.
See: newAccount
smart constructor.
Account' | |
|
Instances
Eq Account Source # | |
Read Account Source # | |
Show Account Source # | |
Generic Account Source # | |
NFData Account Source # | |
Defined in Amazonka.Detective.Types.Account | |
Hashable Account Source # | |
Defined in Amazonka.Detective.Types.Account | |
ToJSON Account Source # | |
Defined in Amazonka.Detective.Types.Account | |
type Rep Account Source # | |
Defined in Amazonka.Detective.Types.Account type Rep Account = D1 ('MetaData "Account" "Amazonka.Detective.Types.Account" "libZSservicesZSamazonka-detectiveZSamazonka-detective" 'False) (C1 ('MetaCons "Account'" 'PrefixI 'True) (S1 ('MetaSel ('Just "accountId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "emailAddress") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text))) |
Create a value of Account
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:accountId:Account'
, account_accountId
- The account identifier of the AWS account.
$sel:emailAddress:Account'
, account_emailAddress
- The AWS account root user email address for the AWS account.
account_emailAddress :: Lens' Account Text Source #
The AWS account root user email address for the AWS account.
Graph
A behavior graph in Detective.
See: newGraph
smart constructor.
Instances
Eq Graph Source # | |
Read Graph Source # | |
Show Graph Source # | |
Generic Graph Source # | |
NFData Graph Source # | |
Defined in Amazonka.Detective.Types.Graph | |
Hashable Graph Source # | |
Defined in Amazonka.Detective.Types.Graph | |
FromJSON Graph Source # | |
type Rep Graph Source # | |
Defined in Amazonka.Detective.Types.Graph type Rep Graph = D1 ('MetaData "Graph" "Amazonka.Detective.Types.Graph" "libZSservicesZSamazonka-detectiveZSamazonka-detective" 'False) (C1 ('MetaCons "Graph'" 'PrefixI 'True) (S1 ('MetaSel ('Just "arn") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "createdTime") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe POSIX)))) |
Create a value of Graph
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:arn:Graph'
, graph_arn
- The ARN of the behavior graph.
$sel:createdTime:Graph'
, graph_createdTime
- The date and time that the behavior graph was created. The value is in
milliseconds since the epoch.
graph_createdTime :: Lens' Graph (Maybe UTCTime) Source #
The date and time that the behavior graph was created. The value is in milliseconds since the epoch.
MemberDetail
data MemberDetail Source #
Details about a member account that was invited to contribute to a behavior graph.
See: newMemberDetail
smart constructor.
MemberDetail' | |
|
Instances
newMemberDetail :: MemberDetail Source #
Create a value of MemberDetail
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:percentOfGraphUtilizationUpdatedTime:MemberDetail'
, memberDetail_percentOfGraphUtilizationUpdatedTime
- The date and time when the graph utilization percentage was last
updated.
$sel:status:MemberDetail'
, memberDetail_status
- The current membership status of the member account. The status can have
one of the following values:
INVITED
- Indicates that the member was sent an invitation but has not yet responded.VERIFICATION_IN_PROGRESS
- Indicates that Detective is verifying that the account identifier and email address provided for the member account match. If they do match, then Detective sends the invitation. If the email address and account identifier don't match, then the member cannot be added to the behavior graph.VERIFICATION_FAILED
- Indicates that the account and email address provided for the member account do not match, and Detective did not send an invitation to the account.ENABLED
- Indicates that the member account accepted the invitation to contribute to the behavior graph.ACCEPTED_BUT_DISABLED
- Indicates that the member account accepted the invitation but is prevented from contributing data to the behavior graph.DisabledReason
provides the reason why the member account is not enabled.
Member accounts that declined an invitation or that were removed from the behavior graph are not included.
$sel:invitedTime:MemberDetail'
, memberDetail_invitedTime
- The date and time that Detective sent the invitation to the member
account. The value is in milliseconds since the epoch.
$sel:administratorId:MemberDetail'
, memberDetail_administratorId
- The AWS account identifier of the administrator account for the behavior
graph.
$sel:graphArn:MemberDetail'
, memberDetail_graphArn
- The ARN of the behavior graph that the member account was invited to.
$sel:masterId:MemberDetail'
, memberDetail_masterId
- The AWS account identifier of the administrator account for the behavior
graph.
$sel:accountId:MemberDetail'
, memberDetail_accountId
- The AWS account identifier for the member account.
$sel:disabledReason:MemberDetail'
, memberDetail_disabledReason
- For member accounts with a status of ACCEPTED_BUT_DISABLED
, the reason
that the member account is not enabled.
The reason can have one of the following values:
VOLUME_TOO_HIGH
- Indicates that adding the member account would cause the data volume for the behavior graph to be too high.VOLUME_UNKNOWN
- Indicates that Detective is unable to verify the data volume for the member account. This is usually because the member account is not enrolled in Amazon GuardDuty.
$sel:percentOfGraphUtilization:MemberDetail'
, memberDetail_percentOfGraphUtilization
- The member account data volume as a percentage of the maximum allowed
data volume. 0 indicates 0 percent, and 100 indicates 100 percent.
Note that this is not the percentage of the behavior graph data volume.
For example, the data volume for the behavior graph is 80 GB per day.
The maximum data volume is 160 GB per day. If the data volume for the
member account is 40 GB per day, then PercentOfGraphUtilization
is 25.
It represents 25% of the maximum allowed data volume.
$sel:emailAddress:MemberDetail'
, memberDetail_emailAddress
- The AWS account root user email address for the member account.
$sel:volumeUsageUpdatedTime:MemberDetail'
, memberDetail_volumeUsageUpdatedTime
- The data and time when the member account data volume was last updated.
$sel:updatedTime:MemberDetail'
, memberDetail_updatedTime
- The date and time that the member account was last updated. The value is
in milliseconds since the epoch.
$sel:volumeUsageInBytes:MemberDetail'
, memberDetail_volumeUsageInBytes
- The data volume in bytes per day for the member account.
memberDetail_percentOfGraphUtilizationUpdatedTime :: Lens' MemberDetail (Maybe UTCTime) Source #
The date and time when the graph utilization percentage was last updated.
memberDetail_status :: Lens' MemberDetail (Maybe MemberStatus) Source #
The current membership status of the member account. The status can have one of the following values:
INVITED
- Indicates that the member was sent an invitation but has not yet responded.VERIFICATION_IN_PROGRESS
- Indicates that Detective is verifying that the account identifier and email address provided for the member account match. If they do match, then Detective sends the invitation. If the email address and account identifier don't match, then the member cannot be added to the behavior graph.VERIFICATION_FAILED
- Indicates that the account and email address provided for the member account do not match, and Detective did not send an invitation to the account.ENABLED
- Indicates that the member account accepted the invitation to contribute to the behavior graph.ACCEPTED_BUT_DISABLED
- Indicates that the member account accepted the invitation but is prevented from contributing data to the behavior graph.DisabledReason
provides the reason why the member account is not enabled.
Member accounts that declined an invitation or that were removed from the behavior graph are not included.
memberDetail_invitedTime :: Lens' MemberDetail (Maybe UTCTime) Source #
The date and time that Detective sent the invitation to the member account. The value is in milliseconds since the epoch.
memberDetail_administratorId :: Lens' MemberDetail (Maybe Text) Source #
The AWS account identifier of the administrator account for the behavior graph.
memberDetail_graphArn :: Lens' MemberDetail (Maybe Text) Source #
The ARN of the behavior graph that the member account was invited to.
memberDetail_masterId :: Lens' MemberDetail (Maybe Text) Source #
The AWS account identifier of the administrator account for the behavior graph.
memberDetail_accountId :: Lens' MemberDetail (Maybe Text) Source #
The AWS account identifier for the member account.
memberDetail_disabledReason :: Lens' MemberDetail (Maybe MemberDisabledReason) Source #
For member accounts with a status of ACCEPTED_BUT_DISABLED
, the reason
that the member account is not enabled.
The reason can have one of the following values:
VOLUME_TOO_HIGH
- Indicates that adding the member account would cause the data volume for the behavior graph to be too high.VOLUME_UNKNOWN
- Indicates that Detective is unable to verify the data volume for the member account. This is usually because the member account is not enrolled in Amazon GuardDuty.
memberDetail_percentOfGraphUtilization :: Lens' MemberDetail (Maybe Double) Source #
The member account data volume as a percentage of the maximum allowed data volume. 0 indicates 0 percent, and 100 indicates 100 percent.
Note that this is not the percentage of the behavior graph data volume.
For example, the data volume for the behavior graph is 80 GB per day.
The maximum data volume is 160 GB per day. If the data volume for the
member account is 40 GB per day, then PercentOfGraphUtilization
is 25.
It represents 25% of the maximum allowed data volume.
memberDetail_emailAddress :: Lens' MemberDetail (Maybe Text) Source #
The AWS account root user email address for the member account.
memberDetail_volumeUsageUpdatedTime :: Lens' MemberDetail (Maybe UTCTime) Source #
The data and time when the member account data volume was last updated.
memberDetail_updatedTime :: Lens' MemberDetail (Maybe UTCTime) Source #
The date and time that the member account was last updated. The value is in milliseconds since the epoch.
memberDetail_volumeUsageInBytes :: Lens' MemberDetail (Maybe Integer) Source #
The data volume in bytes per day for the member account.
UnprocessedAccount
data UnprocessedAccount Source #
A member account that was included in a request but for which the request could not be processed.
See: newUnprocessedAccount
smart constructor.
Instances
newUnprocessedAccount :: UnprocessedAccount Source #
Create a value of UnprocessedAccount
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:accountId:UnprocessedAccount'
, unprocessedAccount_accountId
- The AWS account identifier of the member account that was not processed.
$sel:reason:UnprocessedAccount'
, unprocessedAccount_reason
- The reason that the member account request could not be processed.
unprocessedAccount_accountId :: Lens' UnprocessedAccount (Maybe Text) Source #
The AWS account identifier of the member account that was not processed.
unprocessedAccount_reason :: Lens' UnprocessedAccount (Maybe Text) Source #
The reason that the member account request could not be processed.