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 |
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' {
- replace :: Maybe Bool
- approvalRules :: Maybe PatchRuleGroup
- globalFilters :: Maybe PatchFilterGroup
- approvedPatchesComplianceLevel :: Maybe PatchComplianceLevel
- rejectedPatchesAction :: Maybe PatchAction
- approvedPatches :: Maybe [Text]
- approvedPatchesEnableNonSecurity :: Maybe Bool
- rejectedPatches :: Maybe [Text]
- sources :: Maybe [PatchSource]
- name :: Maybe Text
- description :: Maybe Text
- baselineId :: Text
- newUpdatePatchBaseline :: Text -> UpdatePatchBaseline
- updatePatchBaseline_replace :: Lens' UpdatePatchBaseline (Maybe Bool)
- updatePatchBaseline_approvalRules :: Lens' UpdatePatchBaseline (Maybe PatchRuleGroup)
- updatePatchBaseline_globalFilters :: Lens' UpdatePatchBaseline (Maybe PatchFilterGroup)
- updatePatchBaseline_approvedPatchesComplianceLevel :: Lens' UpdatePatchBaseline (Maybe PatchComplianceLevel)
- updatePatchBaseline_rejectedPatchesAction :: Lens' UpdatePatchBaseline (Maybe PatchAction)
- updatePatchBaseline_approvedPatches :: Lens' UpdatePatchBaseline (Maybe [Text])
- updatePatchBaseline_approvedPatchesEnableNonSecurity :: Lens' UpdatePatchBaseline (Maybe Bool)
- updatePatchBaseline_rejectedPatches :: Lens' UpdatePatchBaseline (Maybe [Text])
- updatePatchBaseline_sources :: Lens' UpdatePatchBaseline (Maybe [PatchSource])
- updatePatchBaseline_name :: Lens' UpdatePatchBaseline (Maybe Text)
- updatePatchBaseline_description :: Lens' UpdatePatchBaseline (Maybe Text)
- updatePatchBaseline_baselineId :: Lens' UpdatePatchBaseline Text
- data UpdatePatchBaselineResponse = UpdatePatchBaselineResponse' {
- approvalRules :: Maybe PatchRuleGroup
- operatingSystem :: Maybe OperatingSystem
- globalFilters :: Maybe PatchFilterGroup
- approvedPatchesComplianceLevel :: Maybe PatchComplianceLevel
- rejectedPatchesAction :: Maybe PatchAction
- approvedPatches :: Maybe [Text]
- approvedPatchesEnableNonSecurity :: Maybe Bool
- rejectedPatches :: Maybe [Text]
- sources :: Maybe [PatchSource]
- createdDate :: Maybe POSIX
- name :: Maybe Text
- modifiedDate :: Maybe POSIX
- description :: Maybe Text
- baselineId :: Maybe Text
- httpStatus :: Int
- newUpdatePatchBaselineResponse :: Int -> UpdatePatchBaselineResponse
- updatePatchBaselineResponse_approvalRules :: Lens' UpdatePatchBaselineResponse (Maybe PatchRuleGroup)
- updatePatchBaselineResponse_operatingSystem :: Lens' UpdatePatchBaselineResponse (Maybe OperatingSystem)
- updatePatchBaselineResponse_globalFilters :: Lens' UpdatePatchBaselineResponse (Maybe PatchFilterGroup)
- updatePatchBaselineResponse_approvedPatchesComplianceLevel :: Lens' UpdatePatchBaselineResponse (Maybe PatchComplianceLevel)
- updatePatchBaselineResponse_rejectedPatchesAction :: Lens' UpdatePatchBaselineResponse (Maybe PatchAction)
- updatePatchBaselineResponse_approvedPatches :: Lens' UpdatePatchBaselineResponse (Maybe [Text])
- updatePatchBaselineResponse_approvedPatchesEnableNonSecurity :: Lens' UpdatePatchBaselineResponse (Maybe Bool)
- updatePatchBaselineResponse_rejectedPatches :: Lens' UpdatePatchBaselineResponse (Maybe [Text])
- updatePatchBaselineResponse_sources :: Lens' UpdatePatchBaselineResponse (Maybe [PatchSource])
- updatePatchBaselineResponse_createdDate :: Lens' UpdatePatchBaselineResponse (Maybe UTCTime)
- updatePatchBaselineResponse_name :: Lens' UpdatePatchBaselineResponse (Maybe Text)
- updatePatchBaselineResponse_modifiedDate :: Lens' UpdatePatchBaselineResponse (Maybe UTCTime)
- updatePatchBaselineResponse_description :: Lens' UpdatePatchBaselineResponse (Maybe Text)
- updatePatchBaselineResponse_baselineId :: Lens' UpdatePatchBaselineResponse (Maybe Text)
- 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:
$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.
$sel:approvalRules:UpdatePatchBaseline'
, updatePatchBaseline_approvalRules
- A set of rules used to include patches in the baseline.
$sel:globalFilters:UpdatePatchBaseline'
, updatePatchBaseline_globalFilters
- A set of global filters used to include patches in the baseline.
$sel:approvedPatchesComplianceLevel:UpdatePatchBaseline'
, updatePatchBaseline_approvedPatchesComplianceLevel
- Assigns a new compliance severity level to an existing patch baseline.
$sel:rejectedPatchesAction: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:approvedPatches: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.
$sel:approvedPatchesEnableNonSecurity:UpdatePatchBaseline'
, updatePatchBaseline_approvedPatchesEnableNonSecurity
- Indicates whether the list of approved patches includes non-security
updates that should be applied to the instances. The default value is
false
. Applies to Linux instances only.
$sel:rejectedPatches: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.
$sel:sources:UpdatePatchBaseline'
, updatePatchBaseline_sources
- Information about the patches to use to update the instances, including
target operating systems and source repositories. Applies to Linux
instances only.
$sel:name:UpdatePatchBaseline'
, updatePatchBaseline_name
- The name of the patch baseline.
$sel:description:UpdatePatchBaseline'
, updatePatchBaseline_description
- A description of the patch baseline.
$sel:baselineId:UpdatePatchBaseline'
, updatePatchBaseline_baselineId
- The ID of the patch baseline to update.
Request Lenses
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_approvalRules :: Lens' UpdatePatchBaseline (Maybe PatchRuleGroup) Source #
A set of rules used to include patches in the baseline.
updatePatchBaseline_globalFilters :: Lens' UpdatePatchBaseline (Maybe PatchFilterGroup) Source #
A set of global filters used to include patches in the baseline.
updatePatchBaseline_approvedPatchesComplianceLevel :: Lens' UpdatePatchBaseline (Maybe PatchComplianceLevel) Source #
Assigns a new compliance severity level to an existing patch baseline.
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_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_approvedPatchesEnableNonSecurity :: Lens' UpdatePatchBaseline (Maybe Bool) Source #
Indicates whether the list of approved patches includes non-security
updates that should be applied to the instances. The default value is
false
. Applies to Linux instances only.
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_sources :: Lens' UpdatePatchBaseline (Maybe [PatchSource]) Source #
Information about the patches to use to update the instances, including target operating systems and source repositories. Applies to Linux instances only.
updatePatchBaseline_name :: Lens' UpdatePatchBaseline (Maybe Text) Source #
The name of the patch baseline.
updatePatchBaseline_description :: Lens' UpdatePatchBaseline (Maybe Text) Source #
A description of the patch baseline.
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:
$sel:approvalRules:UpdatePatchBaseline'
, updatePatchBaselineResponse_approvalRules
- A set of rules used to include patches in the baseline.
$sel:operatingSystem:UpdatePatchBaselineResponse'
, updatePatchBaselineResponse_operatingSystem
- The operating system rule used by the updated patch baseline.
$sel:globalFilters:UpdatePatchBaseline'
, updatePatchBaselineResponse_globalFilters
- A set of global filters used to exclude patches from the baseline.
$sel:approvedPatchesComplianceLevel:UpdatePatchBaseline'
, updatePatchBaselineResponse_approvedPatchesComplianceLevel
- The compliance severity level assigned to the patch baseline after the
update completed.
$sel:rejectedPatchesAction: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.
$sel:approvedPatches:UpdatePatchBaseline'
, updatePatchBaselineResponse_approvedPatches
- A list of explicitly approved patches for the baseline.
$sel:approvedPatchesEnableNonSecurity:UpdatePatchBaseline'
, updatePatchBaselineResponse_approvedPatchesEnableNonSecurity
- Indicates whether the list of approved patches includes non-security
updates that should be applied to the instances. The default value is
false
. Applies to Linux instances only.
$sel:rejectedPatches:UpdatePatchBaseline'
, updatePatchBaselineResponse_rejectedPatches
- A list of explicitly rejected patches for the baseline.
$sel:sources:UpdatePatchBaseline'
, updatePatchBaselineResponse_sources
- Information about the patches to use to update the instances, including
target operating systems and source repositories. Applies to Linux
instances only.
$sel:createdDate:UpdatePatchBaselineResponse'
, updatePatchBaselineResponse_createdDate
- The date when the patch baseline was created.
$sel:name:UpdatePatchBaseline'
, updatePatchBaselineResponse_name
- The name of the patch baseline.
$sel:modifiedDate:UpdatePatchBaselineResponse'
, updatePatchBaselineResponse_modifiedDate
- The date when the patch baseline was last modified.
$sel:description:UpdatePatchBaseline'
, updatePatchBaselineResponse_description
- A description of the patch baseline.
$sel:baselineId:UpdatePatchBaseline'
, updatePatchBaselineResponse_baselineId
- The ID of the deleted patch baseline.
$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_operatingSystem :: Lens' UpdatePatchBaselineResponse (Maybe OperatingSystem) Source #
The operating system rule used by the updated patch baseline.
updatePatchBaselineResponse_globalFilters :: Lens' UpdatePatchBaselineResponse (Maybe PatchFilterGroup) Source #
A set of global filters used to exclude patches from the baseline.
updatePatchBaselineResponse_approvedPatchesComplianceLevel :: Lens' UpdatePatchBaselineResponse (Maybe PatchComplianceLevel) Source #
The compliance severity level assigned to the patch baseline after the update completed.
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_approvedPatches :: Lens' UpdatePatchBaselineResponse (Maybe [Text]) Source #
A list of explicitly approved patches for the baseline.
updatePatchBaselineResponse_approvedPatchesEnableNonSecurity :: Lens' UpdatePatchBaselineResponse (Maybe Bool) Source #
Indicates whether the list of approved patches includes non-security
updates that should be applied to the instances. The default value is
false
. Applies to Linux instances only.
updatePatchBaselineResponse_rejectedPatches :: Lens' UpdatePatchBaselineResponse (Maybe [Text]) Source #
A list of explicitly rejected patches for the baseline.
updatePatchBaselineResponse_sources :: Lens' UpdatePatchBaselineResponse (Maybe [PatchSource]) Source #
Information about the patches to use to update the instances, including target operating systems and source repositories. Applies to Linux instances only.
updatePatchBaselineResponse_createdDate :: Lens' UpdatePatchBaselineResponse (Maybe UTCTime) Source #
The date when the patch baseline was created.
updatePatchBaselineResponse_name :: Lens' UpdatePatchBaselineResponse (Maybe Text) Source #
The name of the patch baseline.
updatePatchBaselineResponse_modifiedDate :: Lens' UpdatePatchBaselineResponse (Maybe UTCTime) Source #
The date when the patch baseline was last modified.
updatePatchBaselineResponse_description :: Lens' UpdatePatchBaselineResponse (Maybe Text) Source #
A description of the patch baseline.
updatePatchBaselineResponse_baselineId :: Lens' UpdatePatchBaselineResponse (Maybe Text) Source #
The ID of the deleted patch baseline.
updatePatchBaselineResponse_httpStatus :: Lens' UpdatePatchBaselineResponse Int Source #
The response's http status code.