amazonka-iot-2.0: Amazon IoT 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.IoT.ListActiveViolations

Description

Lists the active violations for a given Device Defender security profile.

Requires permission to access the ListActiveViolations action.

This operation returns paginated results.

Synopsis

Creating a Request

data ListActiveViolations Source #

See: newListActiveViolations smart constructor.

Constructors

ListActiveViolations' 

Fields

Instances

Instances details
ToHeaders ListActiveViolations Source # 
Instance details

Defined in Amazonka.IoT.ListActiveViolations

ToPath ListActiveViolations Source # 
Instance details

Defined in Amazonka.IoT.ListActiveViolations

ToQuery ListActiveViolations Source # 
Instance details

Defined in Amazonka.IoT.ListActiveViolations

AWSPager ListActiveViolations Source # 
Instance details

Defined in Amazonka.IoT.ListActiveViolations

AWSRequest ListActiveViolations Source # 
Instance details

Defined in Amazonka.IoT.ListActiveViolations

Associated Types

type AWSResponse ListActiveViolations #

Generic ListActiveViolations Source # 
Instance details

Defined in Amazonka.IoT.ListActiveViolations

Associated Types

type Rep ListActiveViolations :: Type -> Type #

Read ListActiveViolations Source # 
Instance details

Defined in Amazonka.IoT.ListActiveViolations

Show ListActiveViolations Source # 
Instance details

Defined in Amazonka.IoT.ListActiveViolations

NFData ListActiveViolations Source # 
Instance details

Defined in Amazonka.IoT.ListActiveViolations

Methods

rnf :: ListActiveViolations -> () #

Eq ListActiveViolations Source # 
Instance details

Defined in Amazonka.IoT.ListActiveViolations

Hashable ListActiveViolations Source # 
Instance details

Defined in Amazonka.IoT.ListActiveViolations

type AWSResponse ListActiveViolations Source # 
Instance details

Defined in Amazonka.IoT.ListActiveViolations

type Rep ListActiveViolations Source # 
Instance details

Defined in Amazonka.IoT.ListActiveViolations

type Rep ListActiveViolations = D1 ('MetaData "ListActiveViolations" "Amazonka.IoT.ListActiveViolations" "amazonka-iot-2.0-6w03vgAfmrM1SG22OsNJXL" 'False) (C1 ('MetaCons "ListActiveViolations'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "behaviorCriteriaType") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe BehaviorCriteriaType)) :*: (S1 ('MetaSel ('Just "listSuppressedAlerts") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Bool)) :*: S1 ('MetaSel ('Just "maxResults") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Natural)))) :*: ((S1 ('MetaSel ('Just "nextToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "securityProfileName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 ('MetaSel ('Just "thingName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "verificationState") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe VerificationState))))))

newListActiveViolations :: ListActiveViolations Source #

Create a value of ListActiveViolations 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:behaviorCriteriaType:ListActiveViolations', listActiveViolations_behaviorCriteriaType - The criteria for a behavior.

$sel:listSuppressedAlerts:ListActiveViolations', listActiveViolations_listSuppressedAlerts - A list of all suppressed alerts.

$sel:maxResults:ListActiveViolations', listActiveViolations_maxResults - The maximum number of results to return at one time.

ListActiveViolations, listActiveViolations_nextToken - The token for the next set of results.

ListActiveViolations, listActiveViolations_securityProfileName - The name of the Device Defender security profile for which violations are listed.

ListActiveViolations, listActiveViolations_thingName - The name of the thing whose active violations are listed.

ListActiveViolations, listActiveViolations_verificationState - The verification state of the violation (detect alarm).

Request Lenses

listActiveViolations_maxResults :: Lens' ListActiveViolations (Maybe Natural) Source #

The maximum number of results to return at one time.

listActiveViolations_nextToken :: Lens' ListActiveViolations (Maybe Text) Source #

The token for the next set of results.

listActiveViolations_securityProfileName :: Lens' ListActiveViolations (Maybe Text) Source #

The name of the Device Defender security profile for which violations are listed.

listActiveViolations_thingName :: Lens' ListActiveViolations (Maybe Text) Source #

The name of the thing whose active violations are listed.

listActiveViolations_verificationState :: Lens' ListActiveViolations (Maybe VerificationState) Source #

The verification state of the violation (detect alarm).

Destructuring the Response

data ListActiveViolationsResponse Source #

See: newListActiveViolationsResponse smart constructor.

Constructors

ListActiveViolationsResponse' 

Fields

Instances

Instances details
Generic ListActiveViolationsResponse Source # 
Instance details

Defined in Amazonka.IoT.ListActiveViolations

Associated Types

type Rep ListActiveViolationsResponse :: Type -> Type #

Read ListActiveViolationsResponse Source # 
Instance details

Defined in Amazonka.IoT.ListActiveViolations

Show ListActiveViolationsResponse Source # 
Instance details

Defined in Amazonka.IoT.ListActiveViolations

NFData ListActiveViolationsResponse Source # 
Instance details

Defined in Amazonka.IoT.ListActiveViolations

Eq ListActiveViolationsResponse Source # 
Instance details

Defined in Amazonka.IoT.ListActiveViolations

type Rep ListActiveViolationsResponse Source # 
Instance details

Defined in Amazonka.IoT.ListActiveViolations

type Rep ListActiveViolationsResponse = D1 ('MetaData "ListActiveViolationsResponse" "Amazonka.IoT.ListActiveViolations" "amazonka-iot-2.0-6w03vgAfmrM1SG22OsNJXL" 'False) (C1 ('MetaCons "ListActiveViolationsResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "activeViolations") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [ActiveViolation])) :*: (S1 ('MetaSel ('Just "nextToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))))

newListActiveViolationsResponse Source #

Create a value of ListActiveViolationsResponse 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:activeViolations:ListActiveViolationsResponse', listActiveViolationsResponse_activeViolations - The list of active violations.

ListActiveViolations, listActiveViolationsResponse_nextToken - A token that can be used to retrieve the next set of results, or null if there are no additional results.

$sel:httpStatus:ListActiveViolationsResponse', listActiveViolationsResponse_httpStatus - The response's http status code.

Response Lenses

listActiveViolationsResponse_nextToken :: Lens' ListActiveViolationsResponse (Maybe Text) Source #

A token that can be used to retrieve the next set of results, or null if there are no additional results.