# VpcSecurityGroupProperty

Struct · External

The security groups associated with the endpoint.

- Source: Generated at build time
- Type last changed: v2.93.0 · 23 Aug 2023

## Example

TypeScript:

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_redshift as redshift } from 'aws-cdk-lib';
const vpcSecurityGroupProperty: redshift.CfnEndpointAccess.VpcSecurityGroupProperty = {
  status: 'status',
  vpcSecurityGroupId: 'vpcSecurityGroupId',
};
```

Python:

```python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_redshift as redshift

vpc_security_group_property = redshift.CfnEndpointAccess.VpcSecurityGroupProperty(
    status="status",
    vpc_security_group_id="vpcSecurityGroupId"
)
```

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.redshift.*;

VpcSecurityGroupProperty vpcSecurityGroupProperty = VpcSecurityGroupProperty.builder()
        .status("status")
        .vpcSecurityGroupId("vpcSecurityGroupId")
        .build();
```

C#:

```csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.Redshift;

var vpcSecurityGroupProperty = new VpcSecurityGroupProperty {
    Status = "status",
    VpcSecurityGroupId = "vpcSecurityGroupId"
};
```

Go:

```go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

vpcSecurityGroupProperty := &VpcSecurityGroupProperty{
	Status: jsii.String("status"),
	VpcSecurityGroupId: jsii.String("vpcSecurityGroupId"),
}
```

## Properties

- `status`: string — The status of the endpoint.

- `vpcSecurityGroupId`: string — The identifier of the VPC security group.
