# VpcEncryptionControlExclusionProperty

Describes an exclusion configuration for VPC Encryption Control.

For more information, see [Enforce VPC encryption in transit](https://docs.aws.amazon.com/vpc/latest/userguide/vpc-encryption-controls.html) in the *Amazon VPC User Guide*.

- Source: Generated at build time
- Type last changed: v2.264.0 · 10 Aug 2026

## Example

TypeScript:

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_ec2 as ec2 } from 'aws-cdk-lib';
const vpcEncryptionControlExclusionProperty: ec2.CfnVPC.VpcEncryptionControlExclusionProperty = {
  state: 'state',
  stateMessage: 'stateMessage',
};
```

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_ec2 as ec2

vpc_encryption_control_exclusion_property = ec2.CfnVPC.VpcEncryptionControlExclusionProperty(
    state="state",
    state_message="stateMessage"
)
```

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

VpcEncryptionControlExclusionProperty vpcEncryptionControlExclusionProperty = VpcEncryptionControlExclusionProperty.builder()
        .state("state")
        .stateMessage("stateMessage")
        .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.EC2;

var vpcEncryptionControlExclusionProperty = new VpcEncryptionControlExclusionProperty {
    State = "state",
    StateMessage = "stateMessage"
};
```

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"

vpcEncryptionControlExclusionProperty := &VpcEncryptionControlExclusionProperty{
	State: jsii.String("state"),
	StateMessage: jsii.String("stateMessage"),
}
```

## Properties

- `state`: string — The current state of the exclusion configuration.

- `stateMessage`: string — A message providing additional information about the exclusion state.
