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()booleanAn array of custom recipe names to be run following aconfigureevent.An array of custom recipe names to be run following adeployevent.getSetup()An array of custom recipe names to be run following asetupevent.An array of custom recipe names to be run following ashutdownevent.An array of custom recipe names to be run following aundeployevent.inthashCode()voidsetConfigure(Collection<String> configure) An array of custom recipe names to be run following aconfigureevent.voidsetDeploy(Collection<String> deploy) An array of custom recipe names to be run following adeployevent.voidsetSetup(Collection<String> setup) An array of custom recipe names to be run following asetupevent.voidsetShutdown(Collection<String> shutdown) An array of custom recipe names to be run following ashutdownevent.voidsetUndeploy(Collection<String> undeploy) An array of custom recipe names to be run following aundeployevent.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 aconfigureevent.withConfigure(Collection<String> configure) An array of custom recipe names to be run following aconfigureevent.withDeploy(String... deploy) An array of custom recipe names to be run following adeployevent.withDeploy(Collection<String> deploy) An array of custom recipe names to be run following adeployevent.An array of custom recipe names to be run following asetupevent.withSetup(Collection<String> setup) An array of custom recipe names to be run following asetupevent.withShutdown(String... shutdown) An array of custom recipe names to be run following ashutdownevent.withShutdown(Collection<String> shutdown) An array of custom recipe names to be run following ashutdownevent.withUndeploy(String... undeploy) An array of custom recipe names to be run following aundeployevent.withUndeploy(Collection<String> undeploy) An array of custom recipe names to be run following aundeployevent.
-
Constructor Details
-
Recipes
public Recipes()
-
-
Method Details
-
getSetup
An array of custom recipe names to be run following a
setupevent.- Returns:
- An array of custom recipe names to be run following a
setupevent.
-
setSetup
An array of custom recipe names to be run following a
setupevent.- Parameters:
setup- An array of custom recipe names to be run following asetupevent.
-
withSetup
An array of custom recipe names to be run following a
setupevent.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 asetupevent.- 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
setupevent.- Parameters:
setup- An array of custom recipe names to be run following asetupevent.- 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
configureevent.- Returns:
- An array of custom recipe names to be run following a
configureevent.
-
setConfigure
An array of custom recipe names to be run following a
configureevent.- Parameters:
configure- An array of custom recipe names to be run following aconfigureevent.
-
withConfigure
An array of custom recipe names to be run following a
configureevent.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 aconfigureevent.- 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
configureevent.- Parameters:
configure- An array of custom recipe names to be run following aconfigureevent.- 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
deployevent.- Returns:
- An array of custom recipe names to be run following a
deployevent.
-
setDeploy
An array of custom recipe names to be run following a
deployevent.- Parameters:
deploy- An array of custom recipe names to be run following adeployevent.
-
withDeploy
An array of custom recipe names to be run following a
deployevent.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 adeployevent.- 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
deployevent.- Parameters:
deploy- An array of custom recipe names to be run following adeployevent.- 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
undeployevent.- Returns:
- An array of custom recipe names to be run following a
undeployevent.
-
setUndeploy
An array of custom recipe names to be run following a
undeployevent.- Parameters:
undeploy- An array of custom recipe names to be run following aundeployevent.
-
withUndeploy
An array of custom recipe names to be run following a
undeployevent.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 aundeployevent.- 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
undeployevent.- Parameters:
undeploy- An array of custom recipe names to be run following aundeployevent.- 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
shutdownevent.- Returns:
- An array of custom recipe names to be run following a
shutdownevent.
-
setShutdown
An array of custom recipe names to be run following a
shutdownevent.- Parameters:
shutdown- An array of custom recipe names to be run following ashutdownevent.
-
withShutdown
An array of custom recipe names to be run following a
shutdownevent.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 ashutdownevent.- 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
shutdownevent.- Parameters:
shutdown- An array of custom recipe names to be run following ashutdownevent.- 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
-