Class CfnVpcConnector
- All Implemented Interfaces:
- IConstruct,- IDependable,- IInspectable,- software.amazon.jsii.JsiiSerializable,- software.constructs.IConstruct
AWS::AppRunner::VpcConnector.
 
 Specify an AWS App Runner VPC connector by using the AWS::AppRunner::VpcConnector resource in an AWS CloudFormation template.
 
 The AWS::AppRunner::VpcConnector resource is an AWS App Runner resource type that specifies an App Runner VPC connector.
 
App Runner requires this resource when you want to associate your App Runner service to a custom Amazon Virtual Private Cloud ( Amazon VPC ).
Example:
 // The code below shows an example of how to instantiate this type.
 // The values are placeholders you should change.
 import software.amazon.awscdk.services.apprunner.*;
 CfnVpcConnector cfnVpcConnector = CfnVpcConnector.Builder.create(this, "MyCfnVpcConnector")
         .subnets(List.of("subnets"))
         // the properties below are optional
         .securityGroups(List.of("securityGroups"))
         .tags(List.of(CfnTag.builder()
                 .key("key")
                 .value("value")
                 .build()))
         .vpcConnectorName("vpcConnectorName")
         .build();
 - 
Nested Class SummaryNested ClassesNested classes/interfaces inherited from class software.amazon.jsii.JsiiObjectsoftware.amazon.jsii.JsiiObject.InitializationModeNested classes/interfaces inherited from interface software.amazon.awscdk.core.IConstructIConstruct.Jsii$DefaultNested classes/interfaces inherited from interface software.constructs.IConstructsoftware.constructs.IConstruct.Jsii$DefaultNested classes/interfaces inherited from interface software.amazon.awscdk.core.IInspectableIInspectable.Jsii$Default, IInspectable.Jsii$Proxy
- 
Field SummaryFieldsModifier and TypeFieldDescriptionstatic final StringThe CloudFormation resource type name for this resource class.
- 
Constructor SummaryConstructorsModifierConstructorDescriptionCfnVpcConnector(Construct scope, String id, CfnVpcConnectorProps props) Create a newAWS::AppRunner::VpcConnector.protectedCfnVpcConnector(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedCfnVpcConnector(software.amazon.jsii.JsiiObjectRef objRef) 
- 
Method SummaryModifier and TypeMethodDescriptionThe Amazon Resource Name (ARN) of this VPC connector.The revision of this VPC connector.A list of IDs of security groups that App Runner should use for access to AWS resources under the specified subnets.A list of IDs of subnets that App Runner should use when it associates your service with a custom Amazon VPC.getTags()A list of metadata items that you can associate with your VPC connector resource.A name for the VPC connector.voidinspect(TreeInspector inspector) Examines the CloudFormation resource and discloses attributes.renderProperties(Map<String, Object> props) voidsetSecurityGroups(List<String> value) A list of IDs of security groups that App Runner should use for access to AWS resources under the specified subnets.voidsetSubnets(List<String> value) A list of IDs of subnets that App Runner should use when it associates your service with a custom Amazon VPC.voidsetVpcConnectorName(String value) A name for the VPC connector.Methods inherited from class software.amazon.awscdk.core.CfnResourceaddDeletionOverride, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getCfnOptions, getCfnResourceType, getMetadata, getUpdatedProperites, isCfnResource, shouldSynthesize, toString, validatePropertiesMethods inherited from class software.amazon.awscdk.core.CfnRefElementgetRefMethods inherited from class software.amazon.awscdk.core.CfnElementgetCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalIdMethods inherited from class software.amazon.awscdk.core.ConstructgetNode, isConstruct, onPrepare, onSynthesize, onValidate, prepare, synthesize, validateMethods inherited from class software.amazon.jsii.JsiiObjectjsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface software.amazon.jsii.JsiiSerializable$jsii$toJson
- 
Field Details- 
CFN_RESOURCE_TYPE_NAMEThe CloudFormation resource type name for this resource class.
 
- 
- 
Constructor Details- 
CfnVpcConnectorprotected CfnVpcConnector(software.amazon.jsii.JsiiObjectRef objRef) 
- 
CfnVpcConnectorprotected CfnVpcConnector(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) 
- 
CfnVpcConnector@Stability(Stable) public CfnVpcConnector(@NotNull Construct scope, @NotNull String id, @NotNull CfnVpcConnectorProps props) Create a newAWS::AppRunner::VpcConnector.- Parameters:
- scope-- scope in which this resource is defined.
 
- id-- scoped id of the resource.
 
- props-- resource properties.
 
 
 
- 
- 
Method Details- 
inspectExamines the CloudFormation resource and discloses attributes.- Specified by:
- inspectin interface- IInspectable
- Parameters:
- inspector-- tree inspector to collect and process attributes.
 
 
- 
renderProperties@Stability(Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String, Object> props) - Overrides:
- renderPropertiesin class- CfnResource
- Parameters:
- props- This parameter is required.
 
- 
getAttrVpcConnectorArnThe Amazon Resource Name (ARN) of this VPC connector.
- 
getAttrVpcConnectorRevisionThe revision of this VPC connector.It's unique among all the active connectors ( "Status": "ACTIVE") that share the sameName.At this time, App Runner supports only one revision per name. 
- 
getCfnProperties- Overrides:
- getCfnPropertiesin class- CfnResource
 
- 
getTagsA list of metadata items that you can associate with your VPC connector resource.A tag is a key-value pair. 
- 
getSubnetsA list of IDs of subnets that App Runner should use when it associates your service with a custom Amazon VPC.Specify IDs of subnets of a single Amazon VPC. App Runner determines the Amazon VPC from the subnets you specify. App Runner currently only provides support for IPv4. 
- 
setSubnetsA list of IDs of subnets that App Runner should use when it associates your service with a custom Amazon VPC.Specify IDs of subnets of a single Amazon VPC. App Runner determines the Amazon VPC from the subnets you specify. App Runner currently only provides support for IPv4. 
- 
getSecurityGroupsA list of IDs of security groups that App Runner should use for access to AWS resources under the specified subnets.If not specified, App Runner uses the default security group of the Amazon VPC. The default security group allows all outbound traffic. 
- 
setSecurityGroupsA list of IDs of security groups that App Runner should use for access to AWS resources under the specified subnets.If not specified, App Runner uses the default security group of the Amazon VPC. The default security group allows all outbound traffic. 
- 
getVpcConnectorNameA name for the VPC connector.If you don't specify a name, AWS CloudFormation generates a name for your VPC connector. 
- 
setVpcConnectorNameA name for the VPC connector.If you don't specify a name, AWS CloudFormation generates a name for your VPC connector. 
 
-