Interface CreatePatchBaselineRequest.Builder
- All Superinterfaces:
AwsRequest.Builder
,Buildable
,CopyableBuilder<CreatePatchBaselineRequest.Builder,
,CreatePatchBaselineRequest> SdkBuilder<CreatePatchBaselineRequest.Builder,
,CreatePatchBaselineRequest> SdkPojo
,SdkRequest.Builder
,SsmRequest.Builder
- Enclosing class:
CreatePatchBaselineRequest
-
Method Summary
Modifier and TypeMethodDescriptionapprovalRules
(Consumer<PatchRuleGroup.Builder> approvalRules) A set of rules used to include patches in the baseline.approvalRules
(PatchRuleGroup approvalRules) A set of rules used to include patches in the baseline.approvedPatches
(String... approvedPatches) A list of explicitly approved patches for the baseline.approvedPatches
(Collection<String> approvedPatches) A list of explicitly approved patches for the baseline.approvedPatchesComplianceLevel
(String approvedPatchesComplianceLevel) Defines the compliance level for approved patches.approvedPatchesComplianceLevel
(PatchComplianceLevel approvedPatchesComplianceLevel) Defines the compliance level for approved patches.approvedPatchesEnableNonSecurity
(Boolean approvedPatchesEnableNonSecurity) Indicates whether the list of approved patches includes non-security updates that should be applied to the managed nodes.clientToken
(String clientToken) User-provided idempotency token.description
(String description) A description of the patch baseline.globalFilters
(Consumer<PatchFilterGroup.Builder> globalFilters) A set of global filters used to include patches in the baseline.globalFilters
(PatchFilterGroup globalFilters) A set of global filters used to include patches in the baseline.The name of the patch baseline.operatingSystem
(String operatingSystem) Defines the operating system the patch baseline applies to.operatingSystem
(OperatingSystem operatingSystem) Defines the operating system the patch baseline applies to.overrideConfiguration
(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Add an optional request override configuration.overrideConfiguration
(AwsRequestOverrideConfiguration overrideConfiguration) Add an optional request override configuration.rejectedPatches
(String... rejectedPatches) A list of explicitly rejected patches for the baseline.rejectedPatches
(Collection<String> rejectedPatches) A list of explicitly rejected patches for the baseline.rejectedPatchesAction
(String rejectedPatchesAction) The action for Patch Manager to take on patches included in theRejectedPackages
list.rejectedPatchesAction
(PatchAction rejectedPatchesAction) The action for Patch Manager to take on patches included in theRejectedPackages
list.sources
(Collection<PatchSource> sources) Information about the patches to use to update the managed nodes, including target operating systems and source repositories.sources
(Consumer<PatchSource.Builder>... sources) Information about the patches to use to update the managed nodes, including target operating systems and source repositories.sources
(PatchSource... sources) Information about the patches to use to update the managed nodes, including target operating systems and source repositories.tags
(Collection<Tag> tags) Optional metadata that you assign to a resource.tags
(Consumer<Tag.Builder>... tags) Optional metadata that you assign to a resource.Optional metadata that you assign to a resource.Methods inherited from interface software.amazon.awssdk.awscore.AwsRequest.Builder
overrideConfiguration
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
Methods inherited from interface software.amazon.awssdk.services.ssm.model.SsmRequest.Builder
build
-
Method Details
-
operatingSystem
Defines the operating system the patch baseline applies to. The default value is
WINDOWS
.- Parameters:
operatingSystem
- Defines the operating system the patch baseline applies to. The default value isWINDOWS
.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
operatingSystem
Defines the operating system the patch baseline applies to. The default value is
WINDOWS
.- Parameters:
operatingSystem
- Defines the operating system the patch baseline applies to. The default value isWINDOWS
.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
name
The name of the patch baseline.
- Parameters:
name
- The name of the patch baseline.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
globalFilters
A set of global filters used to include patches in the baseline.
- Parameters:
globalFilters
- A set of global filters used to include patches in the baseline.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
globalFilters
default CreatePatchBaselineRequest.Builder globalFilters(Consumer<PatchFilterGroup.Builder> globalFilters) A set of global filters used to include patches in the baseline.
This is a convenience method that creates an instance of thePatchFilterGroup.Builder
avoiding the need to create one manually viaPatchFilterGroup.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toglobalFilters(PatchFilterGroup)
.- Parameters:
globalFilters
- a consumer that will call methods onPatchFilterGroup.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
approvalRules
A set of rules used to include patches in the baseline.
- Parameters:
approvalRules
- A set of rules used to include patches in the baseline.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
approvalRules
default CreatePatchBaselineRequest.Builder approvalRules(Consumer<PatchRuleGroup.Builder> approvalRules) A set of rules used to include patches in the baseline.
This is a convenience method that creates an instance of thePatchRuleGroup.Builder
avoiding the need to create one manually viaPatchRuleGroup.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toapprovalRules(PatchRuleGroup)
.- Parameters:
approvalRules
- a consumer that will call methods onPatchRuleGroup.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
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.
- Parameters:
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.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
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.
- Parameters:
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.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
approvedPatchesComplianceLevel
CreatePatchBaselineRequest.Builder approvedPatchesComplianceLevel(String approvedPatchesComplianceLevel) Defines the compliance level for approved patches. When an approved patch is reported as missing, this value describes the severity of the compliance violation. The default value is
UNSPECIFIED
.- Parameters:
approvedPatchesComplianceLevel
- Defines the compliance level for approved patches. When an approved patch is reported as missing, this value describes the severity of the compliance violation. The default value isUNSPECIFIED
.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
approvedPatchesComplianceLevel
CreatePatchBaselineRequest.Builder approvedPatchesComplianceLevel(PatchComplianceLevel approvedPatchesComplianceLevel) Defines the compliance level for approved patches. When an approved patch is reported as missing, this value describes the severity of the compliance violation. The default value is
UNSPECIFIED
.- Parameters:
approvedPatchesComplianceLevel
- Defines the compliance level for approved patches. When an approved patch is reported as missing, this value describes the severity of the compliance violation. The default value isUNSPECIFIED
.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
approvedPatchesEnableNonSecurity
CreatePatchBaselineRequest.Builder approvedPatchesEnableNonSecurity(Boolean 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.- Parameters:
approvedPatchesEnableNonSecurity
- Indicates whether the list of approved patches includes non-security updates that should be applied to the managed nodes. The default value isfalse
. Applies to Linux managed nodes only.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
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.
- Parameters:
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.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
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.
- Parameters:
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.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
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 the Rejected patches list, and packages that include them as dependencies, aren't installed by Patch Manager under any circumstances. If a package was installed before it was added to the Rejected patches list, or is installed outside of Patch Manager afterward, it's considered noncompliant with the patch baseline and its status is reported as InstalledRejected.
- Parameters:
rejectedPatchesAction
- The action for Patch Manager to take on patches included in theRejectedPackages
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 the Rejected patches list, and packages that include them as dependencies, aren't installed by Patch Manager under any circumstances. If a package was installed before it was added to the Rejected patches list, or is installed outside of Patch Manager afterward, it's considered noncompliant with the patch baseline and its status is reported as InstalledRejected.
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
-
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 the Rejected patches list, and packages that include them as dependencies, aren't installed by Patch Manager under any circumstances. If a package was installed before it was added to the Rejected patches list, or is installed outside of Patch Manager afterward, it's considered noncompliant with the patch baseline and its status is reported as InstalledRejected.
- Parameters:
rejectedPatchesAction
- The action for Patch Manager to take on patches included in theRejectedPackages
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 the Rejected patches list, and packages that include them as dependencies, aren't installed by Patch Manager under any circumstances. If a package was installed before it was added to the Rejected patches list, or is installed outside of Patch Manager afterward, it's considered noncompliant with the patch baseline and its status is reported as InstalledRejected.
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
-
description
A description of the patch baseline.
- Parameters:
description
- A description of the patch baseline.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
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.
- Parameters:
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.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
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.
- Parameters:
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.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
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.
This is a convenience method that creates an instance of thePatchSource.Builder
avoiding the need to create one manually viaPatchSource.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tosources(List<PatchSource>)
.- Parameters:
sources
- a consumer that will call methods onPatchSource.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
clientToken
User-provided idempotency token.
- Parameters:
clientToken
- User-provided idempotency token.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tags
Optional metadata that you assign to a resource. Tags enable you to categorize a resource in different ways, such as by purpose, owner, or environment. For example, you might want to tag a patch baseline to identify the severity level of patches it specifies and the operating system family it applies to. In this case, you could specify the following key-value pairs:
-
Key=PatchSeverity,Value=Critical
-
Key=OS,Value=Windows
To add tags to an existing patch baseline, use the AddTagsToResource operation.
- Parameters:
tags
- Optional metadata that you assign to a resource. Tags enable you to categorize a resource in different ways, such as by purpose, owner, or environment. For example, you might want to tag a patch baseline to identify the severity level of patches it specifies and the operating system family it applies to. In this case, you could specify the following key-value pairs:-
Key=PatchSeverity,Value=Critical
-
Key=OS,Value=Windows
To add tags to an existing patch baseline, use the AddTagsToResource operation.
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
-
tags
Optional metadata that you assign to a resource. Tags enable you to categorize a resource in different ways, such as by purpose, owner, or environment. For example, you might want to tag a patch baseline to identify the severity level of patches it specifies and the operating system family it applies to. In this case, you could specify the following key-value pairs:
-
Key=PatchSeverity,Value=Critical
-
Key=OS,Value=Windows
To add tags to an existing patch baseline, use the AddTagsToResource operation.
- Parameters:
tags
- Optional metadata that you assign to a resource. Tags enable you to categorize a resource in different ways, such as by purpose, owner, or environment. For example, you might want to tag a patch baseline to identify the severity level of patches it specifies and the operating system family it applies to. In this case, you could specify the following key-value pairs:-
Key=PatchSeverity,Value=Critical
-
Key=OS,Value=Windows
To add tags to an existing patch baseline, use the AddTagsToResource operation.
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
-
tags
Optional metadata that you assign to a resource. Tags enable you to categorize a resource in different ways, such as by purpose, owner, or environment. For example, you might want to tag a patch baseline to identify the severity level of patches it specifies and the operating system family it applies to. In this case, you could specify the following key-value pairs:
-
Key=PatchSeverity,Value=Critical
-
Key=OS,Value=Windows
To add tags to an existing patch baseline, use the AddTagsToResource operation.
Tag.Builder
avoiding the need to create one manually viaTag.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed totags(List<Tag>)
.- Parameters:
tags
- a consumer that will call methods onTag.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
-
overrideConfiguration
CreatePatchBaselineRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Description copied from interface:AwsRequest.Builder
Add an optional request override configuration.- Specified by:
overrideConfiguration
in interfaceAwsRequest.Builder
- Parameters:
overrideConfiguration
- The override configuration.- Returns:
- This object for method chaining.
-
overrideConfiguration
CreatePatchBaselineRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Description copied from interface:AwsRequest.Builder
Add an optional request override configuration.- Specified by:
overrideConfiguration
in interfaceAwsRequest.Builder
- Parameters:
builderConsumer
- AConsumer
to which an emptyAwsRequestOverrideConfiguration.Builder
will be given.- Returns:
- This object for method chaining.
-