Class AwsCloudFormationUtils
java.lang.Object
org.craftercms.deployer.utils.aws.AwsCloudFormationUtils
Utility methods for AWS CloudFormation.
- Author:
- avasquez
-
Method Summary
Modifier and TypeMethodDescriptionstatic software.amazon.awssdk.services.cloudformation.CloudFormationClientbuildClient(AwsClientBuilderConfigurer builderConfigurer) Builds anAmazonCloudFormationclient, using the providedAwsClientBuilderConfigurer.static software.amazon.awssdk.services.cloudformation.model.StackgetStack(software.amazon.awssdk.services.cloudformation.CloudFormationClient cloudFormation, String stackName) Returns the info of the specifed stack.static booleanstackExists(software.amazon.awssdk.services.cloudformation.CloudFormationClient cloudFormation, String stackName) Returns true if the specified stack exists, false otherwise.
-
Method Details
-
buildClient
public static software.amazon.awssdk.services.cloudformation.CloudFormationClient buildClient(AwsClientBuilderConfigurer builderConfigurer) Builds anAmazonCloudFormationclient, using the providedAwsClientBuilderConfigurer.- Parameters:
builderConfigurer- the helper used to configure theAmazonCloudFormationClientBuilder- Returns:
- the built
AmazonCloudFormationclient
-
stackExists
public static boolean stackExists(software.amazon.awssdk.services.cloudformation.CloudFormationClient 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 software.amazon.awssdk.services.cloudformation.model.Stack getStack(software.amazon.awssdk.services.cloudformation.CloudFormationClient 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
-