Class VpcConnector
java.lang.Object
software.amazon.jsii.JsiiObject
software.constructs.Construct
software.amazon.awscdk.core.Construct
software.amazon.awscdk.core.Resource
software.amazon.awscdk.services.apprunner.VpcConnector
- All Implemented Interfaces:
IConstruct,IDependable,IResource,IVpcConnector,IConnectable,software.amazon.jsii.JsiiSerializable,software.constructs.IConstruct
@Generated(value="jsii-pacmak/1.84.0 (build 5404dcf)",
date="2023-06-19T16:30:40.064Z")
@Stability(Experimental)
public class VpcConnector
extends Resource
implements IVpcConnector
(experimental) The App Runner 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
Nested ClassesModifier and TypeClassDescriptionstatic final class(experimental) A fluent builder forVpcConnector.Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationModeNested classes/interfaces inherited from interface software.amazon.awscdk.core.IConstruct
IConstruct.Jsii$DefaultNested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$DefaultNested classes/interfaces inherited from interface software.amazon.awscdk.core.IResource
IResource.Jsii$DefaultNested classes/interfaces inherited from interface software.amazon.awscdk.services.apprunner.IVpcConnector
IVpcConnector.Jsii$Default, IVpcConnector.Jsii$Proxy -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedVpcConnector(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedVpcConnector(software.amazon.jsii.JsiiObjectRef objRef) VpcConnector(software.constructs.Construct scope, String id, VpcConnectorProps props) -
Method Summary
Modifier and TypeMethodDescriptionstatic IVpcConnectorfromVpcConnectorAttributes(software.constructs.Construct scope, String id, VpcConnectorAttributes attrs) (experimental) Import from VPC connector attributes.(experimental) Allows specifying security group connections for the VPC connector.(experimental) The ARN of the VPC connector.(experimental) The name of the VPC connector.(experimental) The revision of the VPC connector.Methods inherited from class software.amazon.awscdk.core.Resource
applyRemovalPolicy, generatePhysicalName, getEnv, getPhysicalName, getResourceArnAttribute, getResourceNameAttribute, getStack, isResourceMethods inherited from class software.amazon.awscdk.core.Construct
getNode, isConstruct, onPrepare, onSynthesize, onValidate, prepare, synthesize, validateMethods inherited from class software.constructs.Construct
toStringMethods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface software.amazon.awscdk.core.IConstruct
getNodeMethods inherited from interface software.amazon.awscdk.core.IResource
applyRemovalPolicy, getEnv, getStackMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Constructor Details
-
VpcConnector
protected VpcConnector(software.amazon.jsii.JsiiObjectRef objRef) -
VpcConnector
protected VpcConnector(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
VpcConnector
@Stability(Experimental) public VpcConnector(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull VpcConnectorProps props) - Parameters:
scope- This parameter is required.id- This parameter is required.props- This parameter is required.
-
-
Method Details
-
fromVpcConnectorAttributes
@Stability(Experimental) @NotNull public static IVpcConnector fromVpcConnectorAttributes(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull VpcConnectorAttributes attrs) (experimental) Import from VPC connector attributes.- Parameters:
scope- This parameter is required.id- This parameter is required.attrs- This parameter is required.
-
getConnections
(experimental) Allows specifying security group connections for the VPC connector.- Specified by:
getConnectionsin interfaceIConnectable
-
getVpcConnectorArn
(experimental) The ARN of the VPC connector.- Specified by:
getVpcConnectorArnin interfaceIVpcConnector
-
getVpcConnectorName
(experimental) The name of the VPC connector.- Specified by:
getVpcConnectorNamein interfaceIVpcConnector
-
getVpcConnectorRevision
(experimental) The revision of the VPC connector.- Specified by:
getVpcConnectorRevisionin interfaceIVpcConnector
-