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.SSM.DescribeInstancePatches
Description
Retrieves information about the patches on the specified managed node and their state relative to the patch baseline being used for the node.
This operation returns paginated results.
Synopsis
- data DescribeInstancePatches = DescribeInstancePatches' {}
- newDescribeInstancePatches :: Text -> DescribeInstancePatches
- describeInstancePatches_filters :: Lens' DescribeInstancePatches (Maybe [PatchOrchestratorFilter])
- describeInstancePatches_maxResults :: Lens' DescribeInstancePatches (Maybe Natural)
- describeInstancePatches_nextToken :: Lens' DescribeInstancePatches (Maybe Text)
- describeInstancePatches_instanceId :: Lens' DescribeInstancePatches Text
- data DescribeInstancePatchesResponse = DescribeInstancePatchesResponse' {
- nextToken :: Maybe Text
- patches :: Maybe [PatchComplianceData]
- httpStatus :: Int
- newDescribeInstancePatchesResponse :: Int -> DescribeInstancePatchesResponse
- describeInstancePatchesResponse_nextToken :: Lens' DescribeInstancePatchesResponse (Maybe Text)
- describeInstancePatchesResponse_patches :: Lens' DescribeInstancePatchesResponse (Maybe [PatchComplianceData])
- describeInstancePatchesResponse_httpStatus :: Lens' DescribeInstancePatchesResponse Int
Creating a Request
data DescribeInstancePatches Source #
See: newDescribeInstancePatches
smart constructor.
Constructors
DescribeInstancePatches' | |
Fields
|
Instances
newDescribeInstancePatches Source #
Arguments
:: Text | |
-> DescribeInstancePatches |
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:
DescribeInstancePatches
, describeInstancePatches_filters
- Each element in the array is a structure containing a key-value pair.
Supported keys for DescribeInstancePatches
include the following:
Classification
Sample values:
Security
|SecurityUpdates
KBId
Sample values:
KB4480056
|java-1.7.0-openjdk.x86_64
Severity
Sample values:
Important
|Medium
|Low
State
Sample values:
Installed
|InstalledOther
|InstalledPendingReboot
$sel:maxResults:DescribeInstancePatches'
, describeInstancePatches_maxResults
- The maximum number of patches to return (per page).
DescribeInstancePatches
, describeInstancePatches_nextToken
- The token for the next set of items to return. (You received this token
from a previous call.)
DescribeInstancePatches
, describeInstancePatches_instanceId
- The ID of the managed node 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 DescribeInstancePatches
include the following:
Classification
Sample values:
Security
|SecurityUpdates
KBId
Sample values:
KB4480056
|java-1.7.0-openjdk.x86_64
Severity
Sample values:
Important
|Medium
|Low
State
Sample values:
Installed
|InstalledOther
|InstalledPendingReboot
describeInstancePatches_maxResults :: Lens' DescribeInstancePatches (Maybe Natural) Source #
The maximum number of patches to return (per page).
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_instanceId :: Lens' DescribeInstancePatches Text Source #
The ID of the managed node 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:
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: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:httpStatus:DescribeInstancePatchesResponse'
, describeInstancePatchesResponse_httpStatus
- The response's http status code.
Response Lenses
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_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_httpStatus :: Lens' DescribeInstancePatchesResponse Int Source #
The response's http status code.