public class Recipes
extends java.lang.Object
implements java.io.Serializable, java.lang.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.
Modifier and Type | Field and Description |
---|---|
private SdkInternalList<java.lang.String> |
configure
An array of custom recipe names to be run following a
configure event. |
private SdkInternalList<java.lang.String> |
deploy
An array of custom recipe names to be run following a
deploy
event. |
private SdkInternalList<java.lang.String> |
setup
An array of custom recipe names to be run following a
setup
event. |
private SdkInternalList<java.lang.String> |
shutdown
An array of custom recipe names to be run following a
shutdown event. |
private SdkInternalList<java.lang.String> |
undeploy
An array of custom recipe names to be run following a
undeploy event. |
Constructor and Description |
---|
Recipes() |
Modifier and Type | Method and Description |
---|---|
Recipes |
clone() |
boolean |
equals(java.lang.Object obj) |
java.util.List<java.lang.String> |
getConfigure()
An array of custom recipe names to be run following a
configure event. |
java.util.List<java.lang.String> |
getDeploy()
An array of custom recipe names to be run following a
deploy
event. |
java.util.List<java.lang.String> |
getSetup()
An array of custom recipe names to be run following a
setup
event. |
java.util.List<java.lang.String> |
getShutdown()
An array of custom recipe names to be run following a
shutdown event. |
java.util.List<java.lang.String> |
getUndeploy()
An array of custom recipe names to be run following a
undeploy event. |
int |
hashCode() |
void |
setConfigure(java.util.Collection<java.lang.String> configure)
An array of custom recipe names to be run following a
configure event. |
void |
setDeploy(java.util.Collection<java.lang.String> deploy)
An array of custom recipe names to be run following a
deploy
event. |
void |
setSetup(java.util.Collection<java.lang.String> setup)
An array of custom recipe names to be run following a
setup
event. |
void |
setShutdown(java.util.Collection<java.lang.String> shutdown)
An array of custom recipe names to be run following a
shutdown event. |
void |
setUndeploy(java.util.Collection<java.lang.String> undeploy)
An array of custom recipe names to be run following a
undeploy event. |
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
Recipes |
withConfigure(java.util.Collection<java.lang.String> configure)
An array of custom recipe names to be run following a
configure event. |
Recipes |
withConfigure(java.lang.String... configure)
An array of custom recipe names to be run following a
configure event. |
Recipes |
withDeploy(java.util.Collection<java.lang.String> deploy)
An array of custom recipe names to be run following a
deploy
event. |
Recipes |
withDeploy(java.lang.String... deploy)
An array of custom recipe names to be run following a
deploy
event. |
Recipes |
withSetup(java.util.Collection<java.lang.String> setup)
An array of custom recipe names to be run following a
setup
event. |
Recipes |
withSetup(java.lang.String... setup)
An array of custom recipe names to be run following a
setup
event. |
Recipes |
withShutdown(java.util.Collection<java.lang.String> shutdown)
An array of custom recipe names to be run following a
shutdown event. |
Recipes |
withShutdown(java.lang.String... shutdown)
An array of custom recipe names to be run following a
shutdown event. |
Recipes |
withUndeploy(java.util.Collection<java.lang.String> undeploy)
An array of custom recipe names to be run following a
undeploy event. |
Recipes |
withUndeploy(java.lang.String... undeploy)
An array of custom recipe names to be run following a
undeploy event. |
private SdkInternalList<java.lang.String> setup
An array of custom recipe names to be run following a setup
event.
private SdkInternalList<java.lang.String> configure
An array of custom recipe names to be run following a
configure
event.
private SdkInternalList<java.lang.String> deploy
An array of custom recipe names to be run following a deploy
event.
private SdkInternalList<java.lang.String> undeploy
An array of custom recipe names to be run following a
undeploy
event.
private SdkInternalList<java.lang.String> shutdown
An array of custom recipe names to be run following a
shutdown
event.
public java.util.List<java.lang.String> getSetup()
An array of custom recipe names to be run following a setup
event.
setup
event.public void setSetup(java.util.Collection<java.lang.String> setup)
An array of custom recipe names to be run following a setup
event.
setup
- An array of custom recipe names to be run following a
setup
event.public Recipes withSetup(java.lang.String... setup)
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)
or
withSetup(java.util.Collection)
if you want to override the
existing values.
setup
- An array of custom recipe names to be run following a
setup
event.public Recipes withSetup(java.util.Collection<java.lang.String> setup)
An array of custom recipe names to be run following a setup
event.
setup
- An array of custom recipe names to be run following a
setup
event.public java.util.List<java.lang.String> getConfigure()
An array of custom recipe names to be run following a
configure
event.
configure
event.public void setConfigure(java.util.Collection<java.lang.String> configure)
An array of custom recipe names to be run following a
configure
event.
configure
- An array of custom recipe names to be run following a
configure
event.public Recipes withConfigure(java.lang.String... configure)
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)
or
withConfigure(java.util.Collection)
if you want to override the
existing values.
configure
- An array of custom recipe names to be run following a
configure
event.public Recipes withConfigure(java.util.Collection<java.lang.String> configure)
An array of custom recipe names to be run following a
configure
event.
configure
- An array of custom recipe names to be run following a
configure
event.public java.util.List<java.lang.String> getDeploy()
An array of custom recipe names to be run following a deploy
event.
deploy
event.public void setDeploy(java.util.Collection<java.lang.String> deploy)
An array of custom recipe names to be run following a deploy
event.
deploy
- An array of custom recipe names to be run following a
deploy
event.public Recipes withDeploy(java.lang.String... deploy)
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)
or
withDeploy(java.util.Collection)
if you want to override the
existing values.
deploy
- An array of custom recipe names to be run following a
deploy
event.public Recipes withDeploy(java.util.Collection<java.lang.String> deploy)
An array of custom recipe names to be run following a deploy
event.
deploy
- An array of custom recipe names to be run following a
deploy
event.public java.util.List<java.lang.String> getUndeploy()
An array of custom recipe names to be run following a
undeploy
event.
undeploy
event.public void setUndeploy(java.util.Collection<java.lang.String> undeploy)
An array of custom recipe names to be run following a
undeploy
event.
undeploy
- An array of custom recipe names to be run following a
undeploy
event.public Recipes withUndeploy(java.lang.String... undeploy)
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)
or
withUndeploy(java.util.Collection)
if you want to override the
existing values.
undeploy
- An array of custom recipe names to be run following a
undeploy
event.public Recipes withUndeploy(java.util.Collection<java.lang.String> undeploy)
An array of custom recipe names to be run following a
undeploy
event.
undeploy
- An array of custom recipe names to be run following a
undeploy
event.public java.util.List<java.lang.String> getShutdown()
An array of custom recipe names to be run following a
shutdown
event.
shutdown
event.public void setShutdown(java.util.Collection<java.lang.String> shutdown)
An array of custom recipe names to be run following a
shutdown
event.
shutdown
- An array of custom recipe names to be run following a
shutdown
event.public Recipes withShutdown(java.lang.String... shutdown)
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)
or
withShutdown(java.util.Collection)
if you want to override the
existing values.
shutdown
- An array of custom recipe names to be run following a
shutdown
event.public Recipes withShutdown(java.util.Collection<java.lang.String> shutdown)
An array of custom recipe names to be run following a
shutdown
event.
shutdown
- An array of custom recipe names to be run following a
shutdown
event.public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public Recipes clone()
clone
in class java.lang.Object