Class AwsCloudFormationUtils
- java.lang.Object
-
- org.craftercms.deployer.utils.aws.AwsCloudFormationUtils
-
public class AwsCloudFormationUtils extends Object
Utility methods for AWS CloudFormation.- Author:
- avasquez
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static com.amazonaws.services.cloudformation.AmazonCloudFormation
buildClient(AwsClientBuilderConfigurer builderConfigurer)
Builds anAmazonCloudFormation
client, using the providedAwsClientBuilderConfigurer
.static com.amazonaws.services.cloudformation.model.Stack
getStack(com.amazonaws.services.cloudformation.AmazonCloudFormation cloudFormation, String stackName)
Returns the info of the specifed stack.static boolean
stackExists(com.amazonaws.services.cloudformation.AmazonCloudFormation cloudFormation, String stackName)
Returns true if the specified stack exists, false otherwise.
-
-
-
Method Detail
-
buildClient
public static com.amazonaws.services.cloudformation.AmazonCloudFormation buildClient(AwsClientBuilderConfigurer builderConfigurer)
Builds anAmazonCloudFormation
client, using the providedAwsClientBuilderConfigurer
.- Parameters:
builderConfigurer
- the helper used to configure theAmazonCloudFormationClientBuilder
- Returns:
- the built
AmazonCloudFormation
client
-
stackExists
public static boolean stackExists(com.amazonaws.services.cloudformation.AmazonCloudFormation cloudFormation, String stackName) throws DeployerException
Returns true if the specified stack exists, false otherwise.- Parameters:
cloudFormation
- the CloudFormation clientstackName
- the stack name- Returns:
- true if the specified stack exists, false otherwise.
- Throws:
DeployerException
- in an error occurs
-
getStack
public static com.amazonaws.services.cloudformation.model.Stack getStack(com.amazonaws.services.cloudformation.AmazonCloudFormation cloudFormation, String stackName) throws DeployerException
Returns the info of the specifed stack.- Parameters:
cloudFormation
- the CloudFormation clientstackName
- the stack name- Returns:
- the info of the stack
- Throws:
DeployerException
- if an error occurs
-
-