public class Recipes extends Object implements Serializable
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.
Constructor and Description |
---|
Recipes() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
List<String> |
getConfigure()
An array of custom recipe names to be run following a
configure event. |
List<String> |
getDeploy()
An array of custom recipe names to be run following a
deploy event. |
List<String> |
getSetup()
An array of custom recipe names to be run following a
setup event. |
List<String> |
getShutdown()
An array of custom recipe names to be run following a
shutdown event. |
List<String> |
getUndeploy()
An array of custom recipe names to be run following a
undeploy event. |
int |
hashCode() |
void |
setConfigure(Collection<String> configure)
An array of custom recipe names to be run following a
configure event. |
void |
setDeploy(Collection<String> deploy)
An array of custom recipe names to be run following a
deploy event. |
void |
setSetup(Collection<String> setup)
An array of custom recipe names to be run following a
setup event. |
void |
setShutdown(Collection<String> shutdown)
An array of custom recipe names to be run following a
shutdown event. |
void |
setUndeploy(Collection<String> undeploy)
An array of custom recipe names to be run following a
undeploy event. |
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
Recipes |
withConfigure(Collection<String> configure)
An array of custom recipe names to be run following a
configure event. |
Recipes |
withConfigure(String... configure)
An array of custom recipe names to be run following a
configure event. |
Recipes |
withDeploy(Collection<String> deploy)
An array of custom recipe names to be run following a
deploy event. |
Recipes |
withDeploy(String... deploy)
An array of custom recipe names to be run following a
deploy event. |
Recipes |
withSetup(Collection<String> setup)
An array of custom recipe names to be run following a
setup event. |
Recipes |
withSetup(String... setup)
An array of custom recipe names to be run following a
setup event. |
Recipes |
withShutdown(Collection<String> shutdown)
An array of custom recipe names to be run following a
shutdown event. |
Recipes |
withShutdown(String... shutdown)
An array of custom recipe names to be run following a
shutdown event. |
Recipes |
withUndeploy(Collection<String> undeploy)
An array of custom recipe names to be run following a
undeploy event. |
Recipes |
withUndeploy(String... undeploy)
An array of custom recipe names to be run following a
undeploy event. |
public List<String> getSetup()
setup
event.setup
event.public void setSetup(Collection<String> setup)
setup
event.setup
- An array of custom recipe names to be run following a
setup
event.public Recipes withSetup(String... setup)
setup
event.
Returns a reference to this object so that method calls can be chained together.
setup
- An array of custom recipe names to be run following a
setup
event.public Recipes withSetup(Collection<String> setup)
setup
event.
Returns a reference to this object so that method calls can be chained together.
setup
- An array of custom recipe names to be run following a
setup
event.public List<String> getConfigure()
configure
event.configure
event.public void setConfigure(Collection<String> configure)
configure
event.configure
- An array of custom recipe names to be run following a
configure
event.public Recipes withConfigure(String... configure)
configure
event.
Returns a reference to this object so that method calls can be chained together.
configure
- An array of custom recipe names to be run following a
configure
event.public Recipes withConfigure(Collection<String> configure)
configure
event.
Returns a reference to this object so that method calls can be chained together.
configure
- An array of custom recipe names to be run following a
configure
event.public List<String> getDeploy()
deploy
event.deploy
event.public void setDeploy(Collection<String> deploy)
deploy
event.deploy
- An array of custom recipe names to be run following a
deploy
event.public Recipes withDeploy(String... deploy)
deploy
event.
Returns a reference to this object so that method calls can be chained together.
deploy
- An array of custom recipe names to be run following a
deploy
event.public Recipes withDeploy(Collection<String> deploy)
deploy
event.
Returns a reference to this object so that method calls can be chained together.
deploy
- An array of custom recipe names to be run following a
deploy
event.public List<String> getUndeploy()
undeploy
event.undeploy
event.public void setUndeploy(Collection<String> undeploy)
undeploy
event.undeploy
- An array of custom recipe names to be run following a
undeploy
event.public Recipes withUndeploy(String... undeploy)
undeploy
event.
Returns a reference to this object so that method calls can be chained together.
undeploy
- An array of custom recipe names to be run following a
undeploy
event.public Recipes withUndeploy(Collection<String> undeploy)
undeploy
event.
Returns a reference to this object so that method calls can be chained together.
undeploy
- An array of custom recipe names to be run following a
undeploy
event.public List<String> getShutdown()
shutdown
event.shutdown
event.public void setShutdown(Collection<String> shutdown)
shutdown
event.shutdown
- An array of custom recipe names to be run following a
shutdown
event.public Recipes withShutdown(String... shutdown)
shutdown
event.
Returns a reference to this object so that method calls can be chained together.
shutdown
- An array of custom recipe names to be run following a
shutdown
event.public Recipes withShutdown(Collection<String> shutdown)
shutdown
event.
Returns a reference to this object so that method calls can be chained together.
shutdown
- An array of custom recipe names to be run following a
shutdown
event.public String toString()
toString
in class Object
Object.toString()
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.