Class: AWSCDK::OpsWorks::CfnLayer::RecipesProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::OpsWorks::CfnLayer::RecipesProperty
- Defined in:
- ops_works/cfn_layer.rb
Overview
Instance Attribute Summary collapse
-
#configure ⇒ Array<String>?
readonly
An array of custom recipe names to be run following a
configureevent. -
#deploy ⇒ Array<String>?
readonly
An array of custom recipe names to be run following a
deployevent. -
#setup ⇒ Array<String>?
readonly
An array of custom recipe names to be run following a
setupevent. -
#shutdown ⇒ Array<String>?
readonly
An array of custom recipe names to be run following a
shutdownevent. -
#undeploy ⇒ Array<String>?
readonly
An array of custom recipe names to be run following a
undeployevent.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(configure: nil, deploy: nil, setup: nil, shutdown: nil, undeploy: nil) ⇒ RecipesProperty
constructor
A new instance of RecipesProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(configure: nil, deploy: nil, setup: nil, shutdown: nil, undeploy: nil) ⇒ RecipesProperty
Returns a new instance of RecipesProperty.
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
#configure ⇒ Array<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 |
#deploy ⇒ Array<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 |
#setup ⇒ Array<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 |
#shutdown ⇒ Array<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 |
#undeploy ⇒ Array<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_properties ⇒ Object
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_jsii ⇒ Object
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 |