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 |
Modifies an existing patch baseline. Fields not specified in the request are left unchanged.
For information about valid key-value pairs in PatchFilters
for each
supported operating system type, see PatchFilter.
Synopsis
- data UpdatePatchBaseline = UpdatePatchBaseline' {
- approvalRules :: Maybe PatchRuleGroup
- approvedPatches :: Maybe [Text]
- approvedPatchesComplianceLevel :: Maybe PatchComplianceLevel
- approvedPatchesEnableNonSecurity :: Maybe Bool
- description :: Maybe Text
- globalFilters :: Maybe PatchFilterGroup
- name :: Maybe Text
- rejectedPatches :: Maybe [Text]
- rejectedPatchesAction :: Maybe PatchAction
- replace :: Maybe Bool
- sources :: Maybe [PatchSource]
- baselineId :: Text
- newUpdatePatchBaseline :: Text -> UpdatePatchBaseline
- updatePatchBaseline_approvalRules :: Lens' UpdatePatchBaseline (Maybe PatchRuleGroup)
- updatePatchBaseline_approvedPatches :: Lens' UpdatePatchBaseline (Maybe [Text])
- updatePatchBaseline_approvedPatchesComplianceLevel :: Lens' UpdatePatchBaseline (Maybe PatchComplianceLevel)
- updatePatchBaseline_approvedPatchesEnableNonSecurity :: Lens' UpdatePatchBaseline (Maybe Bool)
- updatePatchBaseline_description :: Lens' UpdatePatchBaseline (Maybe Text)
- updatePatchBaseline_globalFilters :: Lens' UpdatePatchBaseline (Maybe PatchFilterGroup)
- updatePatchBaseline_name :: Lens' UpdatePatchBaseline (Maybe Text)
- updatePatchBaseline_rejectedPatches :: Lens' UpdatePatchBaseline (Maybe [Text])
- updatePatchBaseline_rejectedPatchesAction :: Lens' UpdatePatchBaseline (Maybe PatchAction)
- updatePatchBaseline_replace :: Lens' UpdatePatchBaseline (Maybe Bool)
- updatePatchBaseline_sources :: Lens' UpdatePatchBaseline (Maybe [PatchSource])
- updatePatchBaseline_baselineId :: Lens' UpdatePatchBaseline Text
- data UpdatePatchBaselineResponse = UpdatePatchBaselineResponse' {
- approvalRules :: Maybe PatchRuleGroup
- approvedPatches :: Maybe [Text]
- approvedPatchesComplianceLevel :: Maybe PatchComplianceLevel
- approvedPatchesEnableNonSecurity :: Maybe Bool
- baselineId :: Maybe Text
- createdDate :: Maybe POSIX
- description :: Maybe Text
- globalFilters :: Maybe PatchFilterGroup
- modifiedDate :: Maybe POSIX
- name :: Maybe Text
- operatingSystem :: Maybe OperatingSystem
- rejectedPatches :: Maybe [Text]
- rejectedPatchesAction :: Maybe PatchAction
- sources :: Maybe [PatchSource]
- httpStatus :: Int
- newUpdatePatchBaselineResponse :: Int -> UpdatePatchBaselineResponse
- updatePatchBaselineResponse_approvalRules :: Lens' UpdatePatchBaselineResponse (Maybe PatchRuleGroup)
- updatePatchBaselineResponse_approvedPatches :: Lens' UpdatePatchBaselineResponse (Maybe [Text])
- updatePatchBaselineResponse_approvedPatchesComplianceLevel :: Lens' UpdatePatchBaselineResponse (Maybe PatchComplianceLevel)
- updatePatchBaselineResponse_approvedPatchesEnableNonSecurity :: Lens' UpdatePatchBaselineResponse (Maybe Bool)
- updatePatchBaselineResponse_baselineId :: Lens' UpdatePatchBaselineResponse (Maybe Text)
- updatePatchBaselineResponse_createdDate :: Lens' UpdatePatchBaselineResponse (Maybe UTCTime)
- updatePatchBaselineResponse_description :: Lens' UpdatePatchBaselineResponse (Maybe Text)
- updatePatchBaselineResponse_globalFilters :: Lens' UpdatePatchBaselineResponse (Maybe PatchFilterGroup)
- updatePatchBaselineResponse_modifiedDate :: Lens' UpdatePatchBaselineResponse (Maybe UTCTime)
- updatePatchBaselineResponse_name :: Lens' UpdatePatchBaselineResponse (Maybe Text)
- updatePatchBaselineResponse_operatingSystem :: Lens' UpdatePatchBaselineResponse (Maybe OperatingSystem)
- updatePatchBaselineResponse_rejectedPatches :: Lens' UpdatePatchBaselineResponse (Maybe [Text])
- updatePatchBaselineResponse_rejectedPatchesAction :: Lens' UpdatePatchBaselineResponse (Maybe PatchAction)
- updatePatchBaselineResponse_sources :: Lens' UpdatePatchBaselineResponse (Maybe [PatchSource])
- updatePatchBaselineResponse_httpStatus :: Lens' UpdatePatchBaselineResponse Int
Creating a Request
data UpdatePatchBaseline Source #
See: newUpdatePatchBaseline
smart constructor.
UpdatePatchBaseline' | |
|
Instances
newUpdatePatchBaseline Source #
Create a value of UpdatePatchBaseline
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:
UpdatePatchBaseline
, updatePatchBaseline_approvalRules
- A set of rules used to include patches in the baseline.
UpdatePatchBaseline
, updatePatchBaseline_approvedPatches
- A list of explicitly approved patches for the baseline.
For information about accepted formats for lists of approved patches and rejected patches, see About package name formats for approved and rejected patch lists in the Amazon Web Services Systems Manager User Guide.
UpdatePatchBaseline
, updatePatchBaseline_approvedPatchesComplianceLevel
- Assigns a new compliance severity level to an existing patch baseline.
UpdatePatchBaseline
, updatePatchBaseline_approvedPatchesEnableNonSecurity
- Indicates whether the list of approved patches includes non-security
updates that should be applied to the managed nodes. The default value
is false
. Applies to Linux managed nodes only.
UpdatePatchBaseline
, updatePatchBaseline_description
- A description of the patch baseline.
UpdatePatchBaseline
, updatePatchBaseline_globalFilters
- A set of global filters used to include patches in the baseline.
UpdatePatchBaseline
, updatePatchBaseline_name
- The name of the patch baseline.
UpdatePatchBaseline
, updatePatchBaseline_rejectedPatches
- A list of explicitly rejected patches for the baseline.
For information about accepted formats for lists of approved patches and rejected patches, see About package name formats for approved and rejected patch lists in the Amazon Web Services Systems Manager User Guide.
UpdatePatchBaseline
, updatePatchBaseline_rejectedPatchesAction
- The action for Patch Manager to take on patches included in the
RejectedPackages
list.
ALLOW_AS_DEPENDENCY
: A package in theRejected
patches list is installed only if it is a dependency of another package. It is considered compliant with the patch baseline, and its status is reported asInstalledOther
. This is the default action if no option is specified.BLOCK
: Packages in theRejectedPatches
list, and packages that include them as dependencies, aren't installed under any circumstances. If a package was installed before it was added to theRejected
patches list, it is considered non-compliant with the patch baseline, and its status is reported asInstalledRejected
.
$sel:replace:UpdatePatchBaseline'
, updatePatchBaseline_replace
- If True, then all fields that are required by the CreatePatchBaseline
operation are also required for this API request. Optional fields that
aren't specified are set to null.
UpdatePatchBaseline
, updatePatchBaseline_sources
- Information about the patches to use to update the managed nodes,
including target operating systems and source repositories. Applies to
Linux managed nodes only.
UpdatePatchBaseline
, updatePatchBaseline_baselineId
- The ID of the patch baseline to update.
Request Lenses
updatePatchBaseline_approvalRules :: Lens' UpdatePatchBaseline (Maybe PatchRuleGroup) Source #
A set of rules used to include patches in the baseline.
updatePatchBaseline_approvedPatches :: Lens' UpdatePatchBaseline (Maybe [Text]) Source #
A list of explicitly approved patches for the baseline.
For information about accepted formats for lists of approved patches and rejected patches, see About package name formats for approved and rejected patch lists in the Amazon Web Services Systems Manager User Guide.
updatePatchBaseline_approvedPatchesComplianceLevel :: Lens' UpdatePatchBaseline (Maybe PatchComplianceLevel) Source #
Assigns a new compliance severity level to an existing patch baseline.
updatePatchBaseline_approvedPatchesEnableNonSecurity :: Lens' UpdatePatchBaseline (Maybe Bool) Source #
Indicates whether the list of approved patches includes non-security
updates that should be applied to the managed nodes. The default value
is false
. Applies to Linux managed nodes only.
updatePatchBaseline_description :: Lens' UpdatePatchBaseline (Maybe Text) Source #
A description of the patch baseline.
updatePatchBaseline_globalFilters :: Lens' UpdatePatchBaseline (Maybe PatchFilterGroup) Source #
A set of global filters used to include patches in the baseline.
updatePatchBaseline_name :: Lens' UpdatePatchBaseline (Maybe Text) Source #
The name of the patch baseline.
updatePatchBaseline_rejectedPatches :: Lens' UpdatePatchBaseline (Maybe [Text]) Source #
A list of explicitly rejected patches for the baseline.
For information about accepted formats for lists of approved patches and rejected patches, see About package name formats for approved and rejected patch lists in the Amazon Web Services Systems Manager User Guide.
updatePatchBaseline_rejectedPatchesAction :: Lens' UpdatePatchBaseline (Maybe PatchAction) Source #
The action for Patch Manager to take on patches included in the
RejectedPackages
list.
ALLOW_AS_DEPENDENCY
: A package in theRejected
patches list is installed only if it is a dependency of another package. It is considered compliant with the patch baseline, and its status is reported asInstalledOther
. This is the default action if no option is specified.BLOCK
: Packages in theRejectedPatches
list, and packages that include them as dependencies, aren't installed under any circumstances. If a package was installed before it was added to theRejected
patches list, it is considered non-compliant with the patch baseline, and its status is reported asInstalledRejected
.
updatePatchBaseline_replace :: Lens' UpdatePatchBaseline (Maybe Bool) Source #
If True, then all fields that are required by the CreatePatchBaseline operation are also required for this API request. Optional fields that aren't specified are set to null.
updatePatchBaseline_sources :: Lens' UpdatePatchBaseline (Maybe [PatchSource]) Source #
Information about the patches to use to update the managed nodes, including target operating systems and source repositories. Applies to Linux managed nodes only.
updatePatchBaseline_baselineId :: Lens' UpdatePatchBaseline Text Source #
The ID of the patch baseline to update.
Destructuring the Response
data UpdatePatchBaselineResponse Source #
See: newUpdatePatchBaselineResponse
smart constructor.
UpdatePatchBaselineResponse' | |
|
Instances
newUpdatePatchBaselineResponse Source #
Create a value of UpdatePatchBaselineResponse
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:
UpdatePatchBaseline
, updatePatchBaselineResponse_approvalRules
- A set of rules used to include patches in the baseline.
UpdatePatchBaseline
, updatePatchBaselineResponse_approvedPatches
- A list of explicitly approved patches for the baseline.
UpdatePatchBaseline
, updatePatchBaselineResponse_approvedPatchesComplianceLevel
- The compliance severity level assigned to the patch baseline after the
update completed.
UpdatePatchBaseline
, updatePatchBaselineResponse_approvedPatchesEnableNonSecurity
- Indicates whether the list of approved patches includes non-security
updates that should be applied to the managed nodes. The default value
is false
. Applies to Linux managed nodes only.
UpdatePatchBaseline
, updatePatchBaselineResponse_baselineId
- The ID of the deleted patch baseline.
UpdatePatchBaselineResponse
, updatePatchBaselineResponse_createdDate
- The date when the patch baseline was created.
UpdatePatchBaseline
, updatePatchBaselineResponse_description
- A description of the patch baseline.
UpdatePatchBaseline
, updatePatchBaselineResponse_globalFilters
- A set of global filters used to exclude patches from the baseline.
$sel:modifiedDate:UpdatePatchBaselineResponse'
, updatePatchBaselineResponse_modifiedDate
- The date when the patch baseline was last modified.
UpdatePatchBaseline
, updatePatchBaselineResponse_name
- The name of the patch baseline.
UpdatePatchBaselineResponse
, updatePatchBaselineResponse_operatingSystem
- The operating system rule used by the updated patch baseline.
UpdatePatchBaseline
, updatePatchBaselineResponse_rejectedPatches
- A list of explicitly rejected patches for the baseline.
UpdatePatchBaseline
, updatePatchBaselineResponse_rejectedPatchesAction
- The action specified to take on patches included in the
RejectedPatches
list. A patch can be allowed only if it is a
dependency of another package, or blocked entirely along with packages
that include it as a dependency.
UpdatePatchBaseline
, updatePatchBaselineResponse_sources
- Information about the patches to use to update the managed nodes,
including target operating systems and source repositories. Applies to
Linux managed nodes only.
$sel:httpStatus:UpdatePatchBaselineResponse'
, updatePatchBaselineResponse_httpStatus
- The response's http status code.
Response Lenses
updatePatchBaselineResponse_approvalRules :: Lens' UpdatePatchBaselineResponse (Maybe PatchRuleGroup) Source #
A set of rules used to include patches in the baseline.
updatePatchBaselineResponse_approvedPatches :: Lens' UpdatePatchBaselineResponse (Maybe [Text]) Source #
A list of explicitly approved patches for the baseline.
updatePatchBaselineResponse_approvedPatchesComplianceLevel :: Lens' UpdatePatchBaselineResponse (Maybe PatchComplianceLevel) Source #
The compliance severity level assigned to the patch baseline after the update completed.
updatePatchBaselineResponse_approvedPatchesEnableNonSecurity :: Lens' UpdatePatchBaselineResponse (Maybe Bool) Source #
Indicates whether the list of approved patches includes non-security
updates that should be applied to the managed nodes. The default value
is false
. Applies to Linux managed nodes only.
updatePatchBaselineResponse_baselineId :: Lens' UpdatePatchBaselineResponse (Maybe Text) Source #
The ID of the deleted patch baseline.
updatePatchBaselineResponse_createdDate :: Lens' UpdatePatchBaselineResponse (Maybe UTCTime) Source #
The date when the patch baseline was created.
updatePatchBaselineResponse_description :: Lens' UpdatePatchBaselineResponse (Maybe Text) Source #
A description of the patch baseline.
updatePatchBaselineResponse_globalFilters :: Lens' UpdatePatchBaselineResponse (Maybe PatchFilterGroup) Source #
A set of global filters used to exclude patches from the baseline.
updatePatchBaselineResponse_modifiedDate :: Lens' UpdatePatchBaselineResponse (Maybe UTCTime) Source #
The date when the patch baseline was last modified.
updatePatchBaselineResponse_name :: Lens' UpdatePatchBaselineResponse (Maybe Text) Source #
The name of the patch baseline.
updatePatchBaselineResponse_operatingSystem :: Lens' UpdatePatchBaselineResponse (Maybe OperatingSystem) Source #
The operating system rule used by the updated patch baseline.
updatePatchBaselineResponse_rejectedPatches :: Lens' UpdatePatchBaselineResponse (Maybe [Text]) Source #
A list of explicitly rejected patches for the baseline.
updatePatchBaselineResponse_rejectedPatchesAction :: Lens' UpdatePatchBaselineResponse (Maybe PatchAction) Source #
The action specified to take on patches included in the
RejectedPatches
list. A patch can be allowed only if it is a
dependency of another package, or blocked entirely along with packages
that include it as a dependency.
updatePatchBaselineResponse_sources :: Lens' UpdatePatchBaselineResponse (Maybe [PatchSource]) Source #
Information about the patches to use to update the managed nodes, including target operating systems and source repositories. Applies to Linux managed nodes only.
updatePatchBaselineResponse_httpStatus :: Lens' UpdatePatchBaselineResponse Int Source #
The response's http status code.