public class CloudFormation extends Object
| Modifier and Type | Field and Description |
|---|---|
static long |
MIN_TIMEOUT
Minimum time to wait before considering the creation of the stack a
failure.
|
| Constructor and Description |
|---|
CloudFormation(PrintStream logger,
String stackName,
String recipeBody,
Map<String,String> parameters,
long timeout,
String awsAccessKey,
String awsSecretKey,
boolean autoDeleteStack,
hudson.EnvVars envVars,
Boolean isPrefixSelected) |
CloudFormation(PrintStream logger,
String stackName,
String recipeBody,
Map<String,String> parameters,
long timeout,
String awsAccessKey,
String awsSecretKey,
Region region,
boolean autoDeleteStack,
hudson.EnvVars envVars,
Boolean isPrefixSelected) |
CloudFormation(PrintStream logger,
String stackName,
String recipeBody,
Map<String,String> parameters,
long timeout,
String awsAccessKey,
String awsSecretKey,
Region region,
hudson.EnvVars envVars,
Boolean isPrefixSelected,
long sleep) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
create() |
boolean |
delete() |
boolean |
getAutoDeleteStack()
Return true if this stack should be automatically deleted at the end of
the job, or false if it should not be automatically deleted.
|
protected com.amazonaws.services.cloudformation.AmazonCloudFormation |
getAWSClient() |
Map<String,String> |
getOutputs() |
Map<String,String> |
getStackParameters(String stackName) |
public static final long MIN_TIMEOUT
public CloudFormation(PrintStream logger, String stackName, String recipeBody, Map<String,String> parameters, long timeout, String awsAccessKey, String awsSecretKey, Region region, boolean autoDeleteStack, hudson.EnvVars envVars, Boolean isPrefixSelected)
logger - a logger to write progress information.stackName - the name of the stack as defined in the AWS
CloudFormation API.recipeBody - the body of the json document describing the stack.parameters - a Map of where the keys are the param name and the
value the param value.timeout - Time to wait for the creation of a stack to complete. This
value will be the greater between MIN_TIMEOUT and the given
value.awsAccessKey - the AWS API Access Key.awsSecretKey - the AWS API Secret Key.public CloudFormation(PrintStream logger, String stackName, String recipeBody, Map<String,String> parameters, long timeout, String awsAccessKey, String awsSecretKey, Region region, hudson.EnvVars envVars, Boolean isPrefixSelected, long sleep)
public boolean getAutoDeleteStack()
public boolean delete()
public boolean create()
throws TimeoutException,
InterruptedException
TimeoutException - if creating the stack takes longer than the
timeout value passed during creation.InterruptedExceptionCloudFormation#CloudFormation(PrintStream, String, String, Map,
long, String, String)protected com.amazonaws.services.cloudformation.AmazonCloudFormation getAWSClient()
Copyright © 2004-2014. All Rights Reserved.