Class 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 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.