Class VpcConnector
java.lang.Object
software.amazon.jsii.JsiiObject
software.constructs.Construct
software.amazon.awscdk.Resource
software.amazon.awscdk.services.apprunner.alpha.VpcConnector
- All Implemented Interfaces:
IResource
,IVpcConnector
,IConnectable
,software.amazon.jsii.JsiiSerializable
,software.constructs.IConstruct
,software.constructs.IDependable
@Generated(value="jsii-pacmak/1.104.0 (build e79254c)",
date="2024-11-27T16:51:07.121Z")
@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") .ipAddresses(IpAddresses.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 TypeClassDescriptionstatic final class
(experimental) A fluent builder forVpcConnector
.Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationMode
Nested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$Default
Nested classes/interfaces inherited from interface software.amazon.awscdk.IResource
IResource.Jsii$Default
Nested classes/interfaces inherited from interface software.amazon.awscdk.services.apprunner.alpha.IVpcConnector
IVpcConnector.Jsii$Default, IVpcConnector.Jsii$Proxy
-
Constructor Summary
ModifierConstructorDescriptionprotected
VpcConnector
(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protected
VpcConnector
(software.amazon.jsii.JsiiObjectRef objRef) VpcConnector
(software.constructs.Construct scope, String id, VpcConnectorProps props) -
Method Summary
Modifier and TypeMethodDescriptionstatic IVpcConnector
fromVpcConnectorAttributes
(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.Resource
applyRemovalPolicy, generatePhysicalName, getEnv, getPhysicalName, getResourceArnAttribute, getResourceNameAttribute, getStack, isOwnedResource, isResource
Methods inherited from class software.constructs.Construct
getNode, isConstruct, toString
Methods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface software.constructs.IConstruct
getNode
Methods inherited from interface software.amazon.awscdk.IResource
applyRemovalPolicy, getEnv, getStack
Methods 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:
getConnections
in interfaceIConnectable
-
getVpcConnectorArn
(experimental) The ARN of the VPC connector.- Specified by:
getVpcConnectorArn
in interfaceIVpcConnector
-
getVpcConnectorName
(experimental) The name of the VPC connector.- Specified by:
getVpcConnectorName
in interfaceIVpcConnector
-
getVpcConnectorRevision
(experimental) The revision of the VPC connector.- Specified by:
getVpcConnectorRevision
in interfaceIVpcConnector
-