| 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 |
Amazonka.IoT.ListTargetsForSecurityProfile
Description
Lists the targets (thing groups) associated with a given Device Defender security profile.
Requires permission to access the ListTargetsForSecurityProfile action.
This operation returns paginated results.
Synopsis
- data ListTargetsForSecurityProfile = ListTargetsForSecurityProfile' {}
- newListTargetsForSecurityProfile :: Text -> ListTargetsForSecurityProfile
- listTargetsForSecurityProfile_maxResults :: Lens' ListTargetsForSecurityProfile (Maybe Natural)
- listTargetsForSecurityProfile_nextToken :: Lens' ListTargetsForSecurityProfile (Maybe Text)
- listTargetsForSecurityProfile_securityProfileName :: Lens' ListTargetsForSecurityProfile Text
- data ListTargetsForSecurityProfileResponse = ListTargetsForSecurityProfileResponse' {}
- newListTargetsForSecurityProfileResponse :: Int -> ListTargetsForSecurityProfileResponse
- listTargetsForSecurityProfileResponse_nextToken :: Lens' ListTargetsForSecurityProfileResponse (Maybe Text)
- listTargetsForSecurityProfileResponse_securityProfileTargets :: Lens' ListTargetsForSecurityProfileResponse (Maybe [SecurityProfileTarget])
- listTargetsForSecurityProfileResponse_httpStatus :: Lens' ListTargetsForSecurityProfileResponse Int
Creating a Request
data ListTargetsForSecurityProfile Source #
See: newListTargetsForSecurityProfile smart constructor.
Constructors
| ListTargetsForSecurityProfile' | |
Fields
| |
Instances
newListTargetsForSecurityProfile Source #
Create a value of ListTargetsForSecurityProfile 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:maxResults:ListTargetsForSecurityProfile', listTargetsForSecurityProfile_maxResults - The maximum number of results to return at one time.
ListTargetsForSecurityProfile, listTargetsForSecurityProfile_nextToken - The token for the next set of results.
ListTargetsForSecurityProfile, listTargetsForSecurityProfile_securityProfileName - The security profile.
Request Lenses
listTargetsForSecurityProfile_maxResults :: Lens' ListTargetsForSecurityProfile (Maybe Natural) Source #
The maximum number of results to return at one time.
listTargetsForSecurityProfile_nextToken :: Lens' ListTargetsForSecurityProfile (Maybe Text) Source #
The token for the next set of results.
listTargetsForSecurityProfile_securityProfileName :: Lens' ListTargetsForSecurityProfile Text Source #
The security profile.
Destructuring the Response
data ListTargetsForSecurityProfileResponse Source #
See: newListTargetsForSecurityProfileResponse smart constructor.
Constructors
| ListTargetsForSecurityProfileResponse' | |
Fields
| |
Instances
newListTargetsForSecurityProfileResponse Source #
Arguments
| :: Int | |
| -> ListTargetsForSecurityProfileResponse |
Create a value of ListTargetsForSecurityProfileResponse 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:
ListTargetsForSecurityProfile, listTargetsForSecurityProfileResponse_nextToken - A token that can be used to retrieve the next set of results, or null
if there are no additional results.
$sel:securityProfileTargets:ListTargetsForSecurityProfileResponse', listTargetsForSecurityProfileResponse_securityProfileTargets - The thing groups to which the security profile is attached.
$sel:httpStatus:ListTargetsForSecurityProfileResponse', listTargetsForSecurityProfileResponse_httpStatus - The response's http status code.
Response Lenses
listTargetsForSecurityProfileResponse_nextToken :: Lens' ListTargetsForSecurityProfileResponse (Maybe Text) Source #
A token that can be used to retrieve the next set of results, or null
if there are no additional results.
listTargetsForSecurityProfileResponse_securityProfileTargets :: Lens' ListTargetsForSecurityProfileResponse (Maybe [SecurityProfileTarget]) Source #
The thing groups to which the security profile is attached.
listTargetsForSecurityProfileResponse_httpStatus :: Lens' ListTargetsForSecurityProfileResponse Int Source #
The response's http status code.