Class: AWSCDK::SSM::CfnPatchBaseline::PatchFilterProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
ssm/cfn_patch_baseline.rb

Overview

The PatchFilter property type defines a patch filter for an AWS Systems Manager patch baseline.

The PatchFilters property of the PatchFilterGroup property type contains a list of PatchFilter property types.

You can view lists of valid values for the patch properties by running the DescribePatchProperties command. For more information, see DescribePatchProperties in the AWS Systems Manager API Reference .

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(key: nil, values: nil) ⇒ PatchFilterProperty

Returns a new instance of PatchFilterProperty.

Parameters:

  • key (String, nil) (defaults to: nil)

    The key for the filter.

  • values (Array<String>, nil) (defaults to: nil)

    The value for the filter key.



738
739
740
741
742
743
# File 'ssm/cfn_patch_baseline.rb', line 738

def initialize(key: nil, values: nil)
  @key = key
  Jsii::Type.check_type(@key, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "key") unless @key.nil?
  @values = values
  Jsii::Type.check_type(@values, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7InByaW1pdGl2ZSI6InN0cmluZyJ9LCJraW5kIjoiYXJyYXkifX0=")), "values") unless @values.nil?
end

Instance Attribute Details

#keyString? (readonly)

The key for the filter.

For information about valid keys, see PatchFilter in the AWS Systems Manager API Reference .



751
752
753
# File 'ssm/cfn_patch_baseline.rb', line 751

def key
  @key
end

#valuesArray<String>? (readonly)

The value for the filter key.

For information about valid values for each key based on operating system type, see PatchFilter in the AWS Systems Manager API Reference .



758
759
760
# File 'ssm/cfn_patch_baseline.rb', line 758

def values
  @values
end

Class Method Details

.jsii_propertiesObject



760
761
762
763
764
765
# File 'ssm/cfn_patch_baseline.rb', line 760

def self.jsii_properties
  {
    :key => "key",
    :values => "values",
  }
end

Instance Method Details

#to_jsiiObject



767
768
769
770
771
772
773
774
# File 'ssm/cfn_patch_baseline.rb', line 767

def to_jsii
  result = {}
  result.merge!({
    "key" => @key,
    "values" => @values,
  })
  result.compact
end