| 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.DescribeInstancePatches
Description
Retrieves information about the patches on the specified instance and their state relative to the patch baseline being used for the instance.
This operation returns paginated results.
Synopsis
- data DescribeInstancePatches = DescribeInstancePatches' {}
- newDescribeInstancePatches :: Text -> DescribeInstancePatches
- describeInstancePatches_filters :: Lens' DescribeInstancePatches (Maybe [PatchOrchestratorFilter])
- describeInstancePatches_nextToken :: Lens' DescribeInstancePatches (Maybe Text)
- describeInstancePatches_maxResults :: Lens' DescribeInstancePatches (Maybe Natural)
- describeInstancePatches_instanceId :: Lens' DescribeInstancePatches Text
- data DescribeInstancePatchesResponse = DescribeInstancePatchesResponse' {
- patches :: Maybe [PatchComplianceData]
- nextToken :: Maybe Text
- httpStatus :: Int
- newDescribeInstancePatchesResponse :: Int -> DescribeInstancePatchesResponse
- describeInstancePatchesResponse_patches :: Lens' DescribeInstancePatchesResponse (Maybe [PatchComplianceData])
- describeInstancePatchesResponse_nextToken :: Lens' DescribeInstancePatchesResponse (Maybe Text)
- describeInstancePatchesResponse_httpStatus :: Lens' DescribeInstancePatchesResponse Int
Creating a Request
data DescribeInstancePatches Source #
See: newDescribeInstancePatches smart constructor.
Constructors
| DescribeInstancePatches' | |
Fields
| |
Instances
newDescribeInstancePatches Source #
Create a value of DescribeInstancePatches 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:filters:DescribeInstancePatches', describeInstancePatches_filters - Each element in the array is a structure containing a key-value pair.
Supported keys for DescribeInstancePatchesinclude the following:
ClassificationSample values:
Security|SecurityUpdatesKBIdSample values:
KB4480056|java-1.7.0-openjdk.x86_64SeveritySample values:
Important|Medium|LowStateSample values:
Installed|InstalledOther|InstalledPendingReboot
$sel:nextToken:DescribeInstancePatches', describeInstancePatches_nextToken - The token for the next set of items to return. (You received this token
from a previous call.)
$sel:maxResults:DescribeInstancePatches', describeInstancePatches_maxResults - The maximum number of patches to return (per page).
$sel:instanceId:DescribeInstancePatches', describeInstancePatches_instanceId - The ID of the instance whose patch state information should be
retrieved.
Request Lenses
describeInstancePatches_filters :: Lens' DescribeInstancePatches (Maybe [PatchOrchestratorFilter]) Source #
Each element in the array is a structure containing a key-value pair.
Supported keys for DescribeInstancePatchesinclude the following:
ClassificationSample values:
Security|SecurityUpdatesKBIdSample values:
KB4480056|java-1.7.0-openjdk.x86_64SeveritySample values:
Important|Medium|LowStateSample values:
Installed|InstalledOther|InstalledPendingReboot
describeInstancePatches_nextToken :: Lens' DescribeInstancePatches (Maybe Text) Source #
The token for the next set of items to return. (You received this token from a previous call.)
describeInstancePatches_maxResults :: Lens' DescribeInstancePatches (Maybe Natural) Source #
The maximum number of patches to return (per page).
describeInstancePatches_instanceId :: Lens' DescribeInstancePatches Text Source #
The ID of the instance whose patch state information should be retrieved.
Destructuring the Response
data DescribeInstancePatchesResponse Source #
See: newDescribeInstancePatchesResponse smart constructor.
Constructors
| DescribeInstancePatchesResponse' | |
Fields
| |
Instances
newDescribeInstancePatchesResponse Source #
Create a value of DescribeInstancePatchesResponse 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:patches:DescribeInstancePatchesResponse', describeInstancePatchesResponse_patches - Each entry in the array is a structure containing:
- Title (string)
- KBId (string)
- Classification (string)
- Severity (string)
- State (string, such as "INSTALLED" or "FAILED")
- InstalledTime (DateTime)
- InstalledBy (string)
$sel:nextToken:DescribeInstancePatches', describeInstancePatchesResponse_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:httpStatus:DescribeInstancePatchesResponse', describeInstancePatchesResponse_httpStatus - The response's http status code.
Response Lenses
describeInstancePatchesResponse_patches :: Lens' DescribeInstancePatchesResponse (Maybe [PatchComplianceData]) Source #
Each entry in the array is a structure containing:
- Title (string)
- KBId (string)
- Classification (string)
- Severity (string)
- State (string, such as "INSTALLED" or "FAILED")
- InstalledTime (DateTime)
- InstalledBy (string)
describeInstancePatchesResponse_nextToken :: Lens' DescribeInstancePatchesResponse (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.
describeInstancePatchesResponse_httpStatus :: Lens' DescribeInstancePatchesResponse Int Source #
The response's http status code.