# ServiceAccessSecurityGroupsProperty

The security groups that allow traffic between the Amazon EVS control plane and your VPC for Amazon EVS service access.

If a security group is not specified, Amazon EVS uses the default security group in your account for service access.

- Source: Generated at build time
- Type last changed: v2.201.0 · 13 Jun 2025

## Example

TypeScript:

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_evs as evs } from 'aws-cdk-lib';
const serviceAccessSecurityGroupsProperty: evs.CfnEnvironment.ServiceAccessSecurityGroupsProperty = {
  securityGroups: ['securityGroups'],
};
```

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_evs as evs

service_access_security_groups_property = evs.CfnEnvironment.ServiceAccessSecurityGroupsProperty(
    security_groups=["securityGroups"]
)
```

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

ServiceAccessSecurityGroupsProperty serviceAccessSecurityGroupsProperty = ServiceAccessSecurityGroupsProperty.builder()
        .securityGroups(List.of("securityGroups"))
        .build();
```

C# / .NET:

```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.EVS;

var serviceAccessSecurityGroupsProperty = new ServiceAccessSecurityGroupsProperty {
    SecurityGroups = new [] { "securityGroups" }
};
```

Golang:

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

serviceAccessSecurityGroupsProperty := &ServiceAccessSecurityGroupsProperty{
	SecurityGroups: []*string{
		jsii.String("securityGroups"),
	},
}
```

## Properties

- `securityGroups`: string[] — The security groups that allow service access.
