| 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.DescribeAvailablePatches
Description
Lists all patches eligible to be included in a patch baseline.
This operation returns paginated results.
Synopsis
- data DescribeAvailablePatches = DescribeAvailablePatches' {}
- newDescribeAvailablePatches :: DescribeAvailablePatches
- describeAvailablePatches_filters :: Lens' DescribeAvailablePatches (Maybe [PatchOrchestratorFilter])
- describeAvailablePatches_maxResults :: Lens' DescribeAvailablePatches (Maybe Natural)
- describeAvailablePatches_nextToken :: Lens' DescribeAvailablePatches (Maybe Text)
- data DescribeAvailablePatchesResponse = DescribeAvailablePatchesResponse' {}
- newDescribeAvailablePatchesResponse :: Int -> DescribeAvailablePatchesResponse
- describeAvailablePatchesResponse_nextToken :: Lens' DescribeAvailablePatchesResponse (Maybe Text)
- describeAvailablePatchesResponse_patches :: Lens' DescribeAvailablePatchesResponse (Maybe [Patch])
- describeAvailablePatchesResponse_httpStatus :: Lens' DescribeAvailablePatchesResponse Int
Creating a Request
data DescribeAvailablePatches Source #
See: newDescribeAvailablePatches smart constructor.
Constructors
| DescribeAvailablePatches' | |
Fields
| |
Instances
newDescribeAvailablePatches :: DescribeAvailablePatches Source #
Create a value of DescribeAvailablePatches 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:
DescribeAvailablePatches, describeAvailablePatches_filters - Each element in the array is a structure containing a key-value pair.
Windows Server
Supported keys for Windows Server managed node patches include the following:
PATCH_SETSample values:
OS|APPLICATIONPRODUCTSample values:
WindowsServer2012|Office 2010|MicrosoftDefenderAntivirusPRODUCT_FAMILYSample values:
Windows|OfficeMSRC_SEVERITYSample values:
ServicePacks|Important|ModerateCLASSIFICATIONSample values:
ServicePacks|SecurityUpdates|DefinitionUpdatesPATCH_IDSample values:
KB123456|KB4516046
Linux
When specifying filters for Linux patches, you must specify a key-pair
for PRODUCT. For example, using the Command Line Interface (CLI), the
following command fails:
aws ssm describe-available-patches --filters Key=CVE_ID,Values=CVE-2018-3615
However, the following command succeeds:
aws ssm describe-available-patches --filters Key=PRODUCT,Values=AmazonLinux2018.03 Key=CVE_ID,Values=CVE-2018-3615
Supported keys for Linux managed node patches include the following:
PRODUCTSample values:
AmazonLinux2018.03|AmazonLinux2.0NAMESample values:
kernel-headers|samba-python|phpSEVERITYSample values:
Critical|Important|Medium|LowEPOCHSample values:
0|1VERSIONSample values:
78.6.1|4.10.16RELEASESample values:
9.56.amzn1|1.amzn2ARCHSample values:
i686|x86_64REPOSITORYSample values:
Core|UpdatesADVISORY_IDSample values:
ALAS-2018-1058|ALAS2-2021-1594CVE_IDSample values:
CVE-2018-3615|CVE-2020-1472BUGZILLA_IDSample values:
1463241
$sel:maxResults:DescribeAvailablePatches', describeAvailablePatches_maxResults - The maximum number of patches to return (per page).
DescribeAvailablePatches, describeAvailablePatches_nextToken - The token for the next set of items to return. (You received this token
from a previous call.)
Request Lenses
describeAvailablePatches_filters :: Lens' DescribeAvailablePatches (Maybe [PatchOrchestratorFilter]) Source #
Each element in the array is a structure containing a key-value pair.
Windows Server
Supported keys for Windows Server managed node patches include the following:
PATCH_SETSample values:
OS|APPLICATIONPRODUCTSample values:
WindowsServer2012|Office 2010|MicrosoftDefenderAntivirusPRODUCT_FAMILYSample values:
Windows|OfficeMSRC_SEVERITYSample values:
ServicePacks|Important|ModerateCLASSIFICATIONSample values:
ServicePacks|SecurityUpdates|DefinitionUpdatesPATCH_IDSample values:
KB123456|KB4516046
Linux
When specifying filters for Linux patches, you must specify a key-pair
for PRODUCT. For example, using the Command Line Interface (CLI), the
following command fails:
aws ssm describe-available-patches --filters Key=CVE_ID,Values=CVE-2018-3615
However, the following command succeeds:
aws ssm describe-available-patches --filters Key=PRODUCT,Values=AmazonLinux2018.03 Key=CVE_ID,Values=CVE-2018-3615
Supported keys for Linux managed node patches include the following:
PRODUCTSample values:
AmazonLinux2018.03|AmazonLinux2.0NAMESample values:
kernel-headers|samba-python|phpSEVERITYSample values:
Critical|Important|Medium|LowEPOCHSample values:
0|1VERSIONSample values:
78.6.1|4.10.16RELEASESample values:
9.56.amzn1|1.amzn2ARCHSample values:
i686|x86_64REPOSITORYSample values:
Core|UpdatesADVISORY_IDSample values:
ALAS-2018-1058|ALAS2-2021-1594CVE_IDSample values:
CVE-2018-3615|CVE-2020-1472BUGZILLA_IDSample values:
1463241
describeAvailablePatches_maxResults :: Lens' DescribeAvailablePatches (Maybe Natural) Source #
The maximum number of patches to return (per page).
describeAvailablePatches_nextToken :: Lens' DescribeAvailablePatches (Maybe Text) Source #
The token for the next set of items to return. (You received this token from a previous call.)
Destructuring the Response
data DescribeAvailablePatchesResponse Source #
See: newDescribeAvailablePatchesResponse smart constructor.
Constructors
| DescribeAvailablePatchesResponse' | |
Instances
newDescribeAvailablePatchesResponse Source #
Create a value of DescribeAvailablePatchesResponse 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:
DescribeAvailablePatches, describeAvailablePatchesResponse_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:DescribeAvailablePatchesResponse', describeAvailablePatchesResponse_patches - An array of patches. Each entry in the array is a patch structure.
$sel:httpStatus:DescribeAvailablePatchesResponse', describeAvailablePatchesResponse_httpStatus - The response's http status code.
Response Lenses
describeAvailablePatchesResponse_nextToken :: Lens' DescribeAvailablePatchesResponse (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.
describeAvailablePatchesResponse_patches :: Lens' DescribeAvailablePatchesResponse (Maybe [Patch]) Source #
An array of patches. Each entry in the array is a patch structure.
describeAvailablePatchesResponse_httpStatus :: Lens' DescribeAvailablePatchesResponse Int Source #
The response's http status code.