Experimental
@aws-cdk/aws-apprunner-alpha is an experimental (alpha) package: its API may change in any release, without a major version bump.
VpcConnectorAttributes Struct
Attributes for the App Runner VPC Connector.
| Stability | Experimental |
|---|---|
| Source | lib/vpc-connector.ts |
Example
ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import * as apprunner_alpha from '@aws-cdk/aws-apprunner-alpha';
import { aws_ec2 as ec2 } from 'aws-cdk-lib';
declare const securityGroup: ec2.SecurityGroup;
const vpcConnectorAttributes: apprunner_alpha.VpcConnectorAttributes = {
securityGroups: [securityGroup],
vpcConnectorArn: 'vpcConnectorArn',
vpcConnectorName: 'vpcConnectorName',
vpcConnectorRevision: 123,
};
python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
import aws_cdk.aws_apprunner_alpha as apprunner_alpha
from aws_cdk import aws_ec2 as ec2
# security_group: ec2.SecurityGroup
vpc_connector_attributes = apprunner_alpha.VpcConnectorAttributes(
security_groups=[security_group],
vpc_connector_arn="vpcConnectorArn",
vpc_connector_name="vpcConnectorName",
vpc_connector_revision=123
)
java
// 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.alpha.*;
import software.amazon.awscdk.services.ec2.*;
SecurityGroup securityGroup;
VpcConnectorAttributes vpcConnectorAttributes = VpcConnectorAttributes.builder()
.securityGroups(List.of(securityGroup))
.vpcConnectorArn("vpcConnectorArn")
.vpcConnectorName("vpcConnectorName")
.vpcConnectorRevision(123)
.build();
csharp
// Install: dotnet add package Amazon.CDK.AWS.AppRunner.Alpha
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.AppRunner.Alpha;
using Amazon.CDK.AWS.EC2;
SecurityGroup securityGroup;
var vpcConnectorAttributes = new VpcConnectorAttributes {
SecurityGroups = new [] { securityGroup },
VpcConnectorArn = "vpcConnectorArn",
VpcConnectorName = "vpcConnectorName",
VpcConnectorRevision = 123
};
go
// Install: go get github.com/aws/aws-cdk-go/awscdkapprunneralpha/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import apprunner_alpha "github.com/aws/aws-cdk-go/awscdkapprunneralpha"
import "github.com/aws/aws-cdk-go/awscdk"
var securityGroup SecurityGroup
vpcConnectorAttributes := &VpcConnectorAttributes{
SecurityGroups: []ISecurityGroup{
securityGroup,
},
VpcConnectorArn: jsii.String("vpcConnectorArn"),
VpcConnectorName: jsii.String("vpcConnectorName"),
VpcConnectorRevision: jsii.Number(123),
}
Properties
securityGroupsISecurityGroup[]security_groupstyping.List[ISecurityGroup]securityGroupsList<ISecurityGroup>SecurityGroupsISecurityGroup[]SecurityGroups*[]ISecurityGroup required #The security groups associated with the VPC connector.
vpcConnectorArnstringvpc_connector_arnstrvpcConnectorArnStringVpcConnectorArnstringVpcConnectorArn*string required #The ARN of the VPC connector.
vpcConnectorNamestringvpc_connector_namestrvpcConnectorNameStringVpcConnectorNamestringVpcConnectorName*string required #The name of the VPC connector.
vpcConnectorRevisionnumbervpc_connector_revisionint | floatvpcConnectorRevisionNumberVpcConnectorRevisiondoubleVpcConnectorRevision*float64 required #The revision of the VPC connector.