Copyright | (c) 2013-2016 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Language | Haskell2010 |
Previews the agents installed on the EC2 instances that are part of the specified assessment target.
- previewAgents :: Text -> PreviewAgents
- data PreviewAgents
- paNextToken :: Lens' PreviewAgents (Maybe Text)
- paMaxResults :: Lens' PreviewAgents (Maybe Int)
- paPreviewAgentsARN :: Lens' PreviewAgents Text
- previewAgentsResponse :: Int -> PreviewAgentsResponse
- data PreviewAgentsResponse
- parsNextToken :: Lens' PreviewAgentsResponse (Maybe Text)
- parsResponseStatus :: Lens' PreviewAgentsResponse Int
- parsAgentPreviews :: Lens' PreviewAgentsResponse [AgentPreview]
Creating a Request
Creates a value of PreviewAgents
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
paNextToken
- You can use this parameter when paginating results. Set the value of this parameter to null on your first call to the PreviewAgents action. Subsequent calls to the action fill nextToken in the request with the value of NextToken from the previous response to continue listing data.paMaxResults
- You can use this parameter to indicate the maximum number of items you want in the response. The default value is 10. The maximum value is 500.paPreviewAgentsARN
- The ARN of the assessment target whose agents you want to preview.
data PreviewAgents Source #
See: previewAgents
smart constructor.
Request Lenses
paNextToken :: Lens' PreviewAgents (Maybe Text) Source #
You can use this parameter when paginating results. Set the value of this parameter to null on your first call to the PreviewAgents action. Subsequent calls to the action fill nextToken in the request with the value of NextToken from the previous response to continue listing data.
paMaxResults :: Lens' PreviewAgents (Maybe Int) Source #
You can use this parameter to indicate the maximum number of items you want in the response. The default value is 10. The maximum value is 500.
paPreviewAgentsARN :: Lens' PreviewAgents Text Source #
The ARN of the assessment target whose agents you want to preview.
Destructuring the Response
previewAgentsResponse Source #
Creates a value of PreviewAgentsResponse
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
parsNextToken
- When a response is generated, if there is more data to be listed, this parameter is present in the response and contains the value to use for the nextToken parameter in a subsequent pagination request. If there is no more data to be listed, this parameter is set to null.parsResponseStatus
- -- | The response status code.parsAgentPreviews
- The resulting list of agents.
data PreviewAgentsResponse Source #
See: previewAgentsResponse
smart constructor.
Response Lenses
parsNextToken :: Lens' PreviewAgentsResponse (Maybe Text) Source #
When a response is generated, if there is more data to be listed, this parameter is present in the response and contains the value to use for the nextToken parameter in a subsequent pagination request. If there is no more data to be listed, this parameter is set to null.
parsResponseStatus :: Lens' PreviewAgentsResponse Int Source #
- - | The response status code.
parsAgentPreviews :: Lens' PreviewAgentsResponse [AgentPreview] Source #
The resulting list of agents.