Class: AWSCDK::OpsWorks::CfnStack::StackConfigurationManagerProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
ops_works/cfn_stack.rb

Overview

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name: nil, version: nil) ⇒ StackConfigurationManagerProperty

Returns a new instance of StackConfigurationManagerProperty.

Parameters:

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

    The name.

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

    The Chef version.



1076
1077
1078
1079
1080
1081
# File 'ops_works/cfn_stack.rb', line 1076

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

Instance Attribute Details

#nameString? (readonly)

The name.

This parameter must be set to Chef .



1089
1090
1091
# File 'ops_works/cfn_stack.rb', line 1089

def name
  @name
end

#versionString? (readonly)

The Chef version.

This parameter must be set to 12, 11.10, or 11.4 for Linux stacks, and to 12.2 for Windows stacks. The default value for Linux stacks is 12.



1096
1097
1098
# File 'ops_works/cfn_stack.rb', line 1096

def version
  @version
end

Class Method Details

.jsii_propertiesObject



1098
1099
1100
1101
1102
1103
# File 'ops_works/cfn_stack.rb', line 1098

def self.jsii_properties
  {
    :name => "name",
    :version => "version",
  }
end

Instance Method Details

#to_jsiiObject



1105
1106
1107
1108
1109
1110
1111
1112
# File 'ops_works/cfn_stack.rb', line 1105

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