Class: AWSCDK::SSM::CfnPatchBaseline::PatchSourceProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::SSM::CfnPatchBaseline::PatchSourceProperty
- Defined in:
- ssm/cfn_patch_baseline.rb
Overview
PatchSource is the property type for the Sources resource of the AWS::SSM::PatchBaseline resource.
The AWS CloudFormation AWS::SSM::PatchSource resource is used to provide information about the patches to use to update target instances, including target operating systems and source repository. Applies to Linux managed nodes only.
Instance Attribute Summary collapse
-
#configuration ⇒ String?
readonly
The value of the repo configuration.
-
#name ⇒ String?
readonly
The name specified to identify the patch source.
-
#products ⇒ Array<String>?
readonly
The specific operating system versions a patch repository applies to, such as "Ubuntu16.04", "RedhatEnterpriseLinux7.2" or "Suse12.7".
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(configuration: nil, name: nil, products: nil) ⇒ PatchSourceProperty
constructor
A new instance of PatchSourceProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(configuration: nil, name: nil, products: nil) ⇒ PatchSourceProperty
Returns a new instance of PatchSourceProperty.
788 789 790 791 792 793 794 795 |
# File 'ssm/cfn_patch_baseline.rb', line 788 def initialize(configuration: nil, name: nil, products: nil) @configuration = configuration Jsii::Type.check_type(@configuration, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "configuration") unless @configuration.nil? @name = name Jsii::Type.check_type(@name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "name") unless @name.nil? @products = products Jsii::Type.check_type(@products, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7InByaW1pdGl2ZSI6InN0cmluZyJ9LCJraW5kIjoiYXJyYXkifX0=")), "products") unless @products.nil? end |
Instance Attribute Details
#configuration ⇒ String? (readonly)
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 .
821 822 823 |
# File 'ssm/cfn_patch_baseline.rb', line 821 def configuration @configuration end |
#name ⇒ String? (readonly)
The name specified to identify the patch source.
826 827 828 |
# File 'ssm/cfn_patch_baseline.rb', line 826 def name @name end |
#products ⇒ Array<String>? (readonly)
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 .
831 832 833 |
# File 'ssm/cfn_patch_baseline.rb', line 831 def products @products end |
Class Method Details
.jsii_properties ⇒ Object
833 834 835 836 837 838 839 |
# File 'ssm/cfn_patch_baseline.rb', line 833 def self.jsii_properties { :configuration => "configuration", :name => "name", :products => "products", } end |
Instance Method Details
#to_jsii ⇒ Object
841 842 843 844 845 846 847 848 849 |
# File 'ssm/cfn_patch_baseline.rb', line 841 def to_jsii result = {} result.merge!({ "configuration" => @configuration, "name" => @name, "products" => @products, }) result.compact end |