Interface VpcConnectorProps
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
VpcConnectorProps.Jsii$Proxy
@Generated(value="jsii-pacmak/1.84.0 (build 5404dcf)",
date="2023-06-19T16:30:40.067Z")
@Stability(Experimental)
public interface VpcConnectorProps
extends software.amazon.jsii.JsiiSerializable
(experimental) Properties of the AppRunner VPC Connector.
Example:
import software.amazon.awscdk.services.ec2.*; Vpc vpc = Vpc.Builder.create(this, "Vpc") .cidr("10.0.0.0/16") .build(); VpcConnector vpcConnector = VpcConnector.Builder.create(this, "VpcConnector") .vpc(vpc) .vpcSubnets(vpc.selectSubnets(SubnetSelection.builder().subnetType(SubnetType.PUBLIC).build())) .vpcConnectorName("MyVpcConnector") .build(); Service.Builder.create(this, "Service") .source(Source.fromEcrPublic(EcrPublicProps.builder() .imageConfiguration(ImageConfiguration.builder().port(8000).build()) .imageIdentifier("public.ecr.aws/aws-containers/hello-app-runner:latest") .build())) .vpcConnector(vpcConnector) .build();
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic final class
A builder forVpcConnectorProps
static final class
An implementation forVpcConnectorProps
-
Method Summary
Modifier and TypeMethodDescriptionstatic VpcConnectorProps.Builder
builder()
default List<ISecurityGroup>
(experimental) A list of IDs of security groups that App Runner should use for access to AWS resources under the specified subnets.getVpc()
(experimental) The VPC for the VPC Connector.default String
(experimental) The name for the VpcConnector.default SubnetSelection
(experimental) Where to place the VPC Connector within the VPC.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getVpc
(experimental) The VPC for the VPC Connector. -
getSecurityGroups
(experimental) A list of IDs of security groups that App Runner should use for access to AWS resources under the specified subnets.Default: - a new security group will be created in the specified VPC
-
getVpcConnectorName
(experimental) The name for the VpcConnector.Default: - a name generated by CloudFormation
-
getVpcSubnets
(experimental) Where to place the VPC Connector within the VPC.Default: - Private subnets.
-
builder
- Returns:
- a
VpcConnectorProps.Builder
ofVpcConnectorProps
-