Class ConnectorVpcAttributesProvider
- java.lang.Object
-
- com.amazonaws.athena.connector.integ.providers.ConnectorVpcAttributesProvider
-
public class ConnectorVpcAttributesProvider extends Object
Responsible for providing the Connector's VPC attributes added to the Connector's stack attributes and used in the creation of the Lambda.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Optional<ConnectorVpcAttributes>
getAttributes(TestConfig testConfig)
Gets the VPC attributes used for configuring the Lambda function.
-
-
-
Method Detail
-
getAttributes
public static Optional<ConnectorVpcAttributes> getAttributes(TestConfig testConfig) throws RuntimeException
Gets the VPC attributes used for configuring the Lambda function.- Parameters:
testConfig
- A Map containing the test configuration attributes extracted from a config file.- Returns:
- Optional VPC attributes (VPC Id, Security group Id, Subnet Ids, and Availability zones) if the VPC configurations are included in test-config.json.
- Throws:
RuntimeException
- The VPC config attribute is missing from the test config file.
-
-