Class Recipes
- All Implemented Interfaces:
Serializable
,Cloneable
AWS OpsWorks supports five lifecycle events: setup,
configuration, deploy, undeploy, and shutdown.
For each layer, AWS OpsWorks runs a set of standard recipes for each event.
In addition, you can provide custom recipes for any or all layers and events.
AWS OpsWorks runs custom event recipes after the standard recipes.
LayerCustomRecipes
specifies the custom recipes for a particular
layer to be run in response to each of the five events.
To specify a recipe, use the cookbook's directory name in the repository followed by two colons and the recipe name, which is the recipe's file name without the .rb extension. For example: phpapp2::dbsetup specifies the dbsetup.rb recipe in the repository's phpapp2 folder.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()
boolean
An array of custom recipe names to be run following aconfigure
event.An array of custom recipe names to be run following adeploy
event.getSetup()
An array of custom recipe names to be run following asetup
event.An array of custom recipe names to be run following ashutdown
event.An array of custom recipe names to be run following aundeploy
event.int
hashCode()
void
setConfigure
(Collection<String> configure) An array of custom recipe names to be run following aconfigure
event.void
setDeploy
(Collection<String> deploy) An array of custom recipe names to be run following adeploy
event.void
setSetup
(Collection<String> setup) An array of custom recipe names to be run following asetup
event.void
setShutdown
(Collection<String> shutdown) An array of custom recipe names to be run following ashutdown
event.void
setUndeploy
(Collection<String> undeploy) An array of custom recipe names to be run following aundeploy
event.toString()
Returns a string representation of this object; useful for testing and debugging.withConfigure
(String... configure) An array of custom recipe names to be run following aconfigure
event.withConfigure
(Collection<String> configure) An array of custom recipe names to be run following aconfigure
event.withDeploy
(String... deploy) An array of custom recipe names to be run following adeploy
event.withDeploy
(Collection<String> deploy) An array of custom recipe names to be run following adeploy
event.An array of custom recipe names to be run following asetup
event.withSetup
(Collection<String> setup) An array of custom recipe names to be run following asetup
event.withShutdown
(String... shutdown) An array of custom recipe names to be run following ashutdown
event.withShutdown
(Collection<String> shutdown) An array of custom recipe names to be run following ashutdown
event.withUndeploy
(String... undeploy) An array of custom recipe names to be run following aundeploy
event.withUndeploy
(Collection<String> undeploy) An array of custom recipe names to be run following aundeploy
event.
-
Constructor Details
-
Recipes
public Recipes()
-
-
Method Details
-
getSetup
An array of custom recipe names to be run following a
setup
event.- Returns:
- An array of custom recipe names to be run following a
setup
event.
-
setSetup
An array of custom recipe names to be run following a
setup
event.- Parameters:
setup
- An array of custom recipe names to be run following asetup
event.
-
withSetup
An array of custom recipe names to be run following a
setup
event.NOTE: This method appends the values to the existing list (if any). Use
setSetup(java.util.Collection)
orwithSetup(java.util.Collection)
if you want to override the existing values.- Parameters:
setup
- An array of custom recipe names to be run following asetup
event.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
withSetup
An array of custom recipe names to be run following a
setup
event.- Parameters:
setup
- An array of custom recipe names to be run following asetup
event.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
getConfigure
An array of custom recipe names to be run following a
configure
event.- Returns:
- An array of custom recipe names to be run following a
configure
event.
-
setConfigure
An array of custom recipe names to be run following a
configure
event.- Parameters:
configure
- An array of custom recipe names to be run following aconfigure
event.
-
withConfigure
An array of custom recipe names to be run following a
configure
event.NOTE: This method appends the values to the existing list (if any). Use
setConfigure(java.util.Collection)
orwithConfigure(java.util.Collection)
if you want to override the existing values.- Parameters:
configure
- An array of custom recipe names to be run following aconfigure
event.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
withConfigure
An array of custom recipe names to be run following a
configure
event.- Parameters:
configure
- An array of custom recipe names to be run following aconfigure
event.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
getDeploy
An array of custom recipe names to be run following a
deploy
event.- Returns:
- An array of custom recipe names to be run following a
deploy
event.
-
setDeploy
An array of custom recipe names to be run following a
deploy
event.- Parameters:
deploy
- An array of custom recipe names to be run following adeploy
event.
-
withDeploy
An array of custom recipe names to be run following a
deploy
event.NOTE: This method appends the values to the existing list (if any). Use
setDeploy(java.util.Collection)
orwithDeploy(java.util.Collection)
if you want to override the existing values.- Parameters:
deploy
- An array of custom recipe names to be run following adeploy
event.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
withDeploy
An array of custom recipe names to be run following a
deploy
event.- Parameters:
deploy
- An array of custom recipe names to be run following adeploy
event.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
getUndeploy
An array of custom recipe names to be run following a
undeploy
event.- Returns:
- An array of custom recipe names to be run following a
undeploy
event.
-
setUndeploy
An array of custom recipe names to be run following a
undeploy
event.- Parameters:
undeploy
- An array of custom recipe names to be run following aundeploy
event.
-
withUndeploy
An array of custom recipe names to be run following a
undeploy
event.NOTE: This method appends the values to the existing list (if any). Use
setUndeploy(java.util.Collection)
orwithUndeploy(java.util.Collection)
if you want to override the existing values.- Parameters:
undeploy
- An array of custom recipe names to be run following aundeploy
event.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
withUndeploy
An array of custom recipe names to be run following a
undeploy
event.- Parameters:
undeploy
- An array of custom recipe names to be run following aundeploy
event.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
getShutdown
An array of custom recipe names to be run following a
shutdown
event.- Returns:
- An array of custom recipe names to be run following a
shutdown
event.
-
setShutdown
An array of custom recipe names to be run following a
shutdown
event.- Parameters:
shutdown
- An array of custom recipe names to be run following ashutdown
event.
-
withShutdown
An array of custom recipe names to be run following a
shutdown
event.NOTE: This method appends the values to the existing list (if any). Use
setShutdown(java.util.Collection)
orwithShutdown(java.util.Collection)
if you want to override the existing values.- Parameters:
shutdown
- An array of custom recipe names to be run following ashutdown
event.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
withShutdown
An array of custom recipe names to be run following a
shutdown
event.- Parameters:
shutdown
- An array of custom recipe names to be run following ashutdown
event.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
toString
Returns a string representation of this object; useful for testing and debugging. -
equals
-
hashCode
public int hashCode() -
clone
-