Class CfnPatchBaseline.PatchSourceProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnPatchBaseline.PatchSourceProperty>
- Enclosing interface:
CfnPatchBaseline.PatchSourceProperty
CfnPatchBaseline.PatchSourceProperty
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.configuration
(String configuration) Sets the value ofCfnPatchBaseline.PatchSourceProperty.getConfiguration()
Sets the value ofCfnPatchBaseline.PatchSourceProperty.getName()
Sets the value ofCfnPatchBaseline.PatchSourceProperty.getProducts()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
configuration
@Stability(Stable) public CfnPatchBaseline.PatchSourceProperty.Builder configuration(String configuration) Sets the value ofCfnPatchBaseline.PatchSourceProperty.getConfiguration()
- Parameters:
configuration
- The value of the repo configuration. Example for yum repositories[main]
name=MyCustomRepository
baseurl=https://my-custom-repository
enabled=1
For information about other options available for your yum repository configuration, see dnf.conf(5) on the man7.org website.
Examples for Ubuntu Server and Debian Server
deb http://security.ubuntu.com/ubuntu jammy main
deb https://site.example.com/debian distribution component1 component2 component3
Repo information for Ubuntu Server repositories must be specifed in a single line. For more examples and information, see jammy (5) sources.list.5.gz on the Ubuntu Server Manuals website and sources.list format on the Debian Wiki .
- Returns:
this
-
name
Sets the value ofCfnPatchBaseline.PatchSourceProperty.getName()
- Parameters:
name
- The name specified to identify the patch source.- Returns:
this
-
products
@Stability(Stable) public CfnPatchBaseline.PatchSourceProperty.Builder products(List<String> products) Sets the value ofCfnPatchBaseline.PatchSourceProperty.getProducts()
- Parameters:
products
- The specific operating system versions a patch repository applies to, such as "Ubuntu16.04", "RedhatEnterpriseLinux7.2" or "Suse12.7". For lists of supported product values, see PatchFilter in the AWS Systems Manager API Reference .- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnPatchBaseline.PatchSourceProperty>
- Returns:
- a new instance of
CfnPatchBaseline.PatchSourceProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-