| 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.ListSecurityProfilesForTarget
Description
Lists the Device Defender security profiles attached to a target (thing group).
Requires permission to access the ListSecurityProfilesForTarget action.
This operation returns paginated results.
Synopsis
- data ListSecurityProfilesForTarget = ListSecurityProfilesForTarget' {}
- newListSecurityProfilesForTarget :: Text -> ListSecurityProfilesForTarget
- listSecurityProfilesForTarget_maxResults :: Lens' ListSecurityProfilesForTarget (Maybe Natural)
- listSecurityProfilesForTarget_nextToken :: Lens' ListSecurityProfilesForTarget (Maybe Text)
- listSecurityProfilesForTarget_recursive :: Lens' ListSecurityProfilesForTarget (Maybe Bool)
- listSecurityProfilesForTarget_securityProfileTargetArn :: Lens' ListSecurityProfilesForTarget Text
- data ListSecurityProfilesForTargetResponse = ListSecurityProfilesForTargetResponse' {}
- newListSecurityProfilesForTargetResponse :: Int -> ListSecurityProfilesForTargetResponse
- listSecurityProfilesForTargetResponse_nextToken :: Lens' ListSecurityProfilesForTargetResponse (Maybe Text)
- listSecurityProfilesForTargetResponse_securityProfileTargetMappings :: Lens' ListSecurityProfilesForTargetResponse (Maybe [SecurityProfileTargetMapping])
- listSecurityProfilesForTargetResponse_httpStatus :: Lens' ListSecurityProfilesForTargetResponse Int
Creating a Request
data ListSecurityProfilesForTarget Source #
See: newListSecurityProfilesForTarget smart constructor.
Constructors
| ListSecurityProfilesForTarget' | |
Fields
| |
Instances
newListSecurityProfilesForTarget Source #
Arguments
| :: Text |
|
| -> ListSecurityProfilesForTarget |
Create a value of ListSecurityProfilesForTarget 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:ListSecurityProfilesForTarget', listSecurityProfilesForTarget_maxResults - The maximum number of results to return at one time.
ListSecurityProfilesForTarget, listSecurityProfilesForTarget_nextToken - The token for the next set of results.
$sel:recursive:ListSecurityProfilesForTarget', listSecurityProfilesForTarget_recursive - If true, return child groups too.
$sel:securityProfileTargetArn:ListSecurityProfilesForTarget', listSecurityProfilesForTarget_securityProfileTargetArn - The ARN of the target (thing group) whose attached security profiles you
want to get.
Request Lenses
listSecurityProfilesForTarget_maxResults :: Lens' ListSecurityProfilesForTarget (Maybe Natural) Source #
The maximum number of results to return at one time.
listSecurityProfilesForTarget_nextToken :: Lens' ListSecurityProfilesForTarget (Maybe Text) Source #
The token for the next set of results.
listSecurityProfilesForTarget_recursive :: Lens' ListSecurityProfilesForTarget (Maybe Bool) Source #
If true, return child groups too.
listSecurityProfilesForTarget_securityProfileTargetArn :: Lens' ListSecurityProfilesForTarget Text Source #
The ARN of the target (thing group) whose attached security profiles you want to get.
Destructuring the Response
data ListSecurityProfilesForTargetResponse Source #
See: newListSecurityProfilesForTargetResponse smart constructor.
Constructors
| ListSecurityProfilesForTargetResponse' | |
Fields
| |
Instances
newListSecurityProfilesForTargetResponse Source #
Arguments
| :: Int | |
| -> ListSecurityProfilesForTargetResponse |
Create a value of ListSecurityProfilesForTargetResponse 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:
ListSecurityProfilesForTarget, listSecurityProfilesForTargetResponse_nextToken - A token that can be used to retrieve the next set of results, or null
if there are no additional results.
$sel:securityProfileTargetMappings:ListSecurityProfilesForTargetResponse', listSecurityProfilesForTargetResponse_securityProfileTargetMappings - A list of security profiles and their associated targets.
$sel:httpStatus:ListSecurityProfilesForTargetResponse', listSecurityProfilesForTargetResponse_httpStatus - The response's http status code.
Response Lenses
listSecurityProfilesForTargetResponse_nextToken :: Lens' ListSecurityProfilesForTargetResponse (Maybe Text) Source #
A token that can be used to retrieve the next set of results, or null
if there are no additional results.
listSecurityProfilesForTargetResponse_securityProfileTargetMappings :: Lens' ListSecurityProfilesForTargetResponse (Maybe [SecurityProfileTargetMapping]) Source #
A list of security profiles and their associated targets.
listSecurityProfilesForTargetResponse_httpStatus :: Lens' ListSecurityProfilesForTargetResponse Int Source #
The response's http status code.