@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-07T23:47:00.806Z") @Stability(value=Experimental) public class VpcConnector extends Resource implements IVpcConnector
Example:
import software.amazon.awscdk.core.*;
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. |
software.amazon.jsii.JsiiObject.InitializationModeIVpcConnector.Jsii$Default, IVpcConnector.Jsii$Proxy| Modifier | Constructor and Description |
|---|---|
|
VpcConnector(software.constructs.Construct scope,
String id,
VpcConnectorProps props) |
protected |
VpcConnector(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
VpcConnector(software.amazon.jsii.JsiiObjectRef objRef) |
| Modifier and Type | Method and Description |
|---|---|
static IVpcConnector |
fromVpcConnectorAttributes(software.constructs.Construct scope,
String id,
VpcConnectorAttributes attrs)
(experimental) Import from VPC connector attributes.
|
Connections |
getConnections()
(experimental) Allows specifying security group connections for the VPC connector.
|
String |
getVpcConnectorArn()
(experimental) The ARN of the VPC connector.
|
String |
getVpcConnectorName()
(experimental) The name of the VPC connector.
|
Number |
getVpcConnectorRevision()
(experimental) The revision of the VPC connector.
|
applyRemovalPolicy, generatePhysicalName, getEnv, getPhysicalName, getResourceArnAttribute, getResourceNameAttribute, getStack, isResourcegetNode, isConstruct, onPrepare, onSynthesize, onValidate, prepare, synthesize, validatejsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitapplyRemovalPolicy, getEnv, getStackgetNodeprotected VpcConnector(software.amazon.jsii.JsiiObjectRef objRef)
protected VpcConnector(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Experimental)
public VpcConnector(@NotNull
software.constructs.Construct scope,
@NotNull
String id,
@NotNull
VpcConnectorProps props)
scope - This parameter is required.id - This parameter is required.props - This parameter is required.@Stability(value=Experimental) @NotNull public static IVpcConnector fromVpcConnectorAttributes(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull VpcConnectorAttributes attrs)
scope - This parameter is required.id - This parameter is required.attrs - This parameter is required.@Stability(value=Experimental) @NotNull public Connections getConnections()
getConnections in interface IConnectable@Stability(value=Experimental) @NotNull public String getVpcConnectorArn()
getVpcConnectorArn in interface IVpcConnector@Stability(value=Experimental) @NotNull public String getVpcConnectorName()
getVpcConnectorName in interface IVpcConnector@Stability(value=Experimental) @NotNull public Number getVpcConnectorRevision()
getVpcConnectorRevision in interface IVpcConnectorCopyright © 2022. All rights reserved.