> **Experimental**
>
> `@aws-cdk/aws-apprunner-alpha` is an [**experimental**](/stability) (alpha) package: its API may change in any release, without a major version bump.
# VpcConnectorAttributes

Attributes for the App Runner VPC Connector.

- Stability: [Experimental](/cdk/api/stability.html)
- Source: [`lib/vpc-connector.ts`](https://github.com/aws/aws-cdk/blob/v2.277.0/packages/@aws-cdk/aws-apprunner-alpha/lib/vpc-connector.ts#L44)

## Example

TypeScript:

```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:

```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:

```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();
```

C# / .NET:

```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
};
```

Golang:

```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

- `securityGroups`: [ISecurityGroup](/cdk/api/v2/docs/aws-cdk-lib.aws_ec2.ISecurityGroup.html)[] (required) — The security groups associated with the VPC connector.

- `vpcConnectorArn`: string (required) — The ARN of the VPC connector.

- `vpcConnectorName`: string (required) — The name of the VPC connector.

- `vpcConnectorRevision`: number (required) — The revision of the VPC connector.
