@Generated(value="jsii-pacmak/1.74.0 (build 6d08790)", date="2023-03-22T19:35:43.604Z") public class VpcConnector extends Resource implements IVpcConnector
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();
Modifier and Type | Class and Description |
---|---|
static class |
VpcConnector.Builder
(experimental) A fluent builder for
VpcConnector . |
IVpcConnector.Jsii$Default, IVpcConnector.Jsii$Proxy
Modifier | Constructor and Description |
---|---|
protected |
VpcConnector(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
VpcConnector(software.amazon.jsii.JsiiObjectRef objRef) |
|
VpcConnector(software.constructs.Construct scope,
java.lang.String id,
VpcConnectorProps props) |
Modifier and Type | Method and Description |
---|---|
static IVpcConnector |
fromVpcConnectorAttributes(software.constructs.Construct scope,
java.lang.String id,
VpcConnectorAttributes attrs)
(experimental) Import from VPC connector attributes.
|
Connections |
getConnections()
(experimental) Allows specifying security group connections for the VPC connector.
|
java.lang.String |
getVpcConnectorArn()
(experimental) The ARN of the VPC connector.
|
java.lang.String |
getVpcConnectorName()
(experimental) The name of the VPC connector.
|
java.lang.Number |
getVpcConnectorRevision()
(experimental) The revision of the VPC connector.
|
applyRemovalPolicy, generatePhysicalName, getEnv, getPhysicalName, getResourceArnAttribute, getResourceNameAttribute, getStack, isResource
getNode, isConstruct, onPrepare, onSynthesize, onValidate, prepare, synthesize, validate
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
applyRemovalPolicy, getEnv, getStack
getNode
protected VpcConnector(software.amazon.jsii.JsiiObjectRef objRef)
protected VpcConnector(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
public VpcConnector(software.constructs.Construct scope, java.lang.String id, VpcConnectorProps props)
scope
- This parameter is required.id
- This parameter is required.props
- This parameter is required.public static IVpcConnector fromVpcConnectorAttributes(software.constructs.Construct scope, java.lang.String id, VpcConnectorAttributes attrs)
scope
- This parameter is required.id
- This parameter is required.attrs
- This parameter is required.public Connections getConnections()
getConnections
in interface IConnectable
public java.lang.String getVpcConnectorArn()
getVpcConnectorArn
in interface IVpcConnector
public java.lang.String getVpcConnectorName()
getVpcConnectorName
in interface IVpcConnector
public java.lang.Number getVpcConnectorRevision()
getVpcConnectorRevision
in interface IVpcConnector