Class: AWSCDK::OpsWorks::CfnLayer::RecipesProperty

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

Overview

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(configure: nil, deploy: nil, setup: nil, shutdown: nil, undeploy: nil) ⇒ RecipesProperty

Returns a new instance of RecipesProperty.

Parameters:

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

    An array of custom recipe names to be run following a configure event.

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

    An array of custom recipe names to be run following a deploy event.

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

    An array of custom recipe names to be run following a setup event.

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

    An array of custom recipe names to be run following a shutdown event.

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

    An array of custom recipe names to be run following a undeploy event.



918
919
920
921
922
923
924
925
926
927
928
929
# File 'ops_works/cfn_layer.rb', line 918

def initialize(configure: nil, deploy: nil, setup: nil, shutdown: nil, undeploy: nil)
  @configure = configure
  Jsii::Type.check_type(@configure, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7InByaW1pdGl2ZSI6InN0cmluZyJ9LCJraW5kIjoiYXJyYXkifX0=")), "configure") unless @configure.nil?
  @deploy = deploy
  Jsii::Type.check_type(@deploy, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7InByaW1pdGl2ZSI6InN0cmluZyJ9LCJraW5kIjoiYXJyYXkifX0=")), "deploy") unless @deploy.nil?
  @setup = setup
  Jsii::Type.check_type(@setup, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7InByaW1pdGl2ZSI6InN0cmluZyJ9LCJraW5kIjoiYXJyYXkifX0=")), "setup") unless @setup.nil?
  @shutdown = shutdown
  Jsii::Type.check_type(@shutdown, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7InByaW1pdGl2ZSI6InN0cmluZyJ9LCJraW5kIjoiYXJyYXkifX0=")), "shutdown") unless @shutdown.nil?
  @undeploy = undeploy
  Jsii::Type.check_type(@undeploy, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7InByaW1pdGl2ZSI6InN0cmluZyJ9LCJraW5kIjoiYXJyYXkifX0=")), "undeploy") unless @undeploy.nil?
end

Instance Attribute Details

#configureArray<String>? (readonly)

An array of custom recipe names to be run following a configure event.



935
936
937
# File 'ops_works/cfn_layer.rb', line 935

def configure
  @configure
end

#deployArray<String>? (readonly)

An array of custom recipe names to be run following a deploy event.



940
941
942
# File 'ops_works/cfn_layer.rb', line 940

def deploy
  @deploy
end

#setupArray<String>? (readonly)

An array of custom recipe names to be run following a setup event.



945
946
947
# File 'ops_works/cfn_layer.rb', line 945

def setup
  @setup
end

#shutdownArray<String>? (readonly)

An array of custom recipe names to be run following a shutdown event.



950
951
952
# File 'ops_works/cfn_layer.rb', line 950

def shutdown
  @shutdown
end

#undeployArray<String>? (readonly)

An array of custom recipe names to be run following a undeploy event.



955
956
957
# File 'ops_works/cfn_layer.rb', line 955

def undeploy
  @undeploy
end

Class Method Details

.jsii_propertiesObject



957
958
959
960
961
962
963
964
965
# File 'ops_works/cfn_layer.rb', line 957

def self.jsii_properties
  {
    :configure => "configure",
    :deploy => "deploy",
    :setup => "setup",
    :shutdown => "shutdown",
    :undeploy => "undeploy",
  }
end

Instance Method Details

#to_jsiiObject



967
968
969
970
971
972
973
974
975
976
977
# File 'ops_works/cfn_layer.rb', line 967

def to_jsii
  result = {}
  result.merge!({
    "configure" => @configure,
    "deploy" => @deploy,
    "setup" => @setup,
    "shutdown" => @shutdown,
    "undeploy" => @undeploy,
  })
  result.compact
end