Class CloudFormationClient
- java.lang.Object
-
- com.amazonaws.athena.connector.integ.clients.CloudFormationClient
-
public class CloudFormationClient extends Object
Responsible for creating the CloudFormation stack needed to test the connector, and unwinding it once testing is done.
-
-
Constructor Summary
Constructors Constructor Description CloudFormationClient(org.testng.internal.collections.Pair<software.amazon.awscdk.core.App,software.amazon.awscdk.core.Stack> stackPair)
CloudFormationClient(software.amazon.awscdk.core.App theApp, software.amazon.awscdk.core.Stack theStack)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
createStack()
Creates a CloudFormation stack to build the infrastructure needed to run the integration tests (e.g., Database instance, Lambda function, etc...).void
deleteStack()
Deletes a CloudFormation stack, and the lambda function registered with Athena.
-
-
-
Constructor Detail
-
CloudFormationClient
public CloudFormationClient(org.testng.internal.collections.Pair<software.amazon.awscdk.core.App,software.amazon.awscdk.core.Stack> stackPair)
-
CloudFormationClient
public CloudFormationClient(software.amazon.awscdk.core.App theApp, software.amazon.awscdk.core.Stack theStack)
-
-
Method Detail
-
createStack
public void createStack()
Creates a CloudFormation stack to build the infrastructure needed to run the integration tests (e.g., Database instance, Lambda function, etc...). Once the stack is created successfully, the lambda function is registered with Athena.
-
deleteStack
public void deleteStack()
Deletes a CloudFormation stack, and the lambda function registered with Athena.
-
-