| 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 |
Amazonka.SSM.DescribeInstancePatchStates
Description
Retrieves the high-level patch state of one or more instances.
This operation returns paginated results.
Synopsis
- data DescribeInstancePatchStates = DescribeInstancePatchStates' {
- nextToken :: Maybe Text
- maxResults :: Maybe Natural
- instanceIds :: [Text]
- newDescribeInstancePatchStates :: DescribeInstancePatchStates
- describeInstancePatchStates_nextToken :: Lens' DescribeInstancePatchStates (Maybe Text)
- describeInstancePatchStates_maxResults :: Lens' DescribeInstancePatchStates (Maybe Natural)
- describeInstancePatchStates_instanceIds :: Lens' DescribeInstancePatchStates [Text]
- data DescribeInstancePatchStatesResponse = DescribeInstancePatchStatesResponse' {}
- newDescribeInstancePatchStatesResponse :: Int -> DescribeInstancePatchStatesResponse
- describeInstancePatchStatesResponse_nextToken :: Lens' DescribeInstancePatchStatesResponse (Maybe Text)
- describeInstancePatchStatesResponse_instancePatchStates :: Lens' DescribeInstancePatchStatesResponse (Maybe [InstancePatchState])
- describeInstancePatchStatesResponse_httpStatus :: Lens' DescribeInstancePatchStatesResponse Int
Creating a Request
data DescribeInstancePatchStates Source #
See: newDescribeInstancePatchStates smart constructor.
Constructors
| DescribeInstancePatchStates' | |
Fields
| |
Instances
newDescribeInstancePatchStates :: DescribeInstancePatchStates Source #
Create a value of DescribeInstancePatchStates 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:nextToken:DescribeInstancePatchStates', describeInstancePatchStates_nextToken - The token for the next set of items to return. (You received this token
from a previous call.)
$sel:maxResults:DescribeInstancePatchStates', describeInstancePatchStates_maxResults - The maximum number of instances to return (per page).
$sel:instanceIds:DescribeInstancePatchStates', describeInstancePatchStates_instanceIds - The ID of the instance for which patch state information should be
retrieved.
Request Lenses
describeInstancePatchStates_nextToken :: Lens' DescribeInstancePatchStates (Maybe Text) Source #
The token for the next set of items to return. (You received this token from a previous call.)
describeInstancePatchStates_maxResults :: Lens' DescribeInstancePatchStates (Maybe Natural) Source #
The maximum number of instances to return (per page).
describeInstancePatchStates_instanceIds :: Lens' DescribeInstancePatchStates [Text] Source #
The ID of the instance for which patch state information should be retrieved.
Destructuring the Response
data DescribeInstancePatchStatesResponse Source #
See: newDescribeInstancePatchStatesResponse smart constructor.
Constructors
| DescribeInstancePatchStatesResponse' | |
Fields
| |
Instances
newDescribeInstancePatchStatesResponse Source #
Arguments
| :: Int | |
| -> DescribeInstancePatchStatesResponse |
Create a value of DescribeInstancePatchStatesResponse 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:nextToken:DescribeInstancePatchStates', describeInstancePatchStatesResponse_nextToken - The token to use when requesting the next set of items. If there are no
additional items to return, the string is empty.
$sel:instancePatchStates:DescribeInstancePatchStatesResponse', describeInstancePatchStatesResponse_instancePatchStates - The high-level patch state for the requested instances.
$sel:httpStatus:DescribeInstancePatchStatesResponse', describeInstancePatchStatesResponse_httpStatus - The response's http status code.
Response Lenses
describeInstancePatchStatesResponse_nextToken :: Lens' DescribeInstancePatchStatesResponse (Maybe Text) Source #
The token to use when requesting the next set of items. If there are no additional items to return, the string is empty.
describeInstancePatchStatesResponse_instancePatchStates :: Lens' DescribeInstancePatchStatesResponse (Maybe [InstancePatchState]) Source #
The high-level patch state for the requested instances.
describeInstancePatchStatesResponse_httpStatus :: Lens' DescribeInstancePatchStatesResponse Int Source #
The response's http status code.