# DevicePostureOptionsProperty

- Source: Generated at build time
- Type last changed: v2.275.0 · 26 Oct 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 devicePostureOptionsProperty: ec2.CfnClientVpnEndpoint.DevicePostureOptionsProperty = {
  enabled: false,
  trustProviders: [{
    tenantId: 'tenantId',
    trustProviderType: 'trustProviderType',

    // the properties below are optional
    publicSigningKeyUrl: 'publicSigningKeyUrl',
  }],
};
```

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

device_posture_options_property = ec2.CfnClientVpnEndpoint.DevicePostureOptionsProperty(
    enabled=False,
    trust_providers=[ec2.CfnClientVpnEndpoint.DevicePostureTrustProviderProperty(
        tenant_id="tenantId",
        trust_provider_type="trustProviderType",

        # the properties below are optional
        public_signing_key_url="publicSigningKeyUrl"
    )]
)
```

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

DevicePostureOptionsProperty devicePostureOptionsProperty = DevicePostureOptionsProperty.builder()
        .enabled(false)
        .trustProviders(List.of(DevicePostureTrustProviderProperty.builder()
                .tenantId("tenantId")
                .trustProviderType("trustProviderType")

                // the properties below are optional
                .publicSigningKeyUrl("publicSigningKeyUrl")
                .build()))
        .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 devicePostureOptionsProperty = new DevicePostureOptionsProperty {
    Enabled = false,
    TrustProviders = new [] { new DevicePostureTrustProviderProperty {
        TenantId = "tenantId",
        TrustProviderType = "trustProviderType",

        // the properties below are optional
        PublicSigningKeyUrl = "publicSigningKeyUrl"
    } }
};
```

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"

devicePostureOptionsProperty := &DevicePostureOptionsProperty{
	Enabled: jsii.Boolean(false),
	TrustProviders: []interface{}{
		&DevicePostureTrustProviderProperty{
			TenantId: jsii.String("tenantId"),
			TrustProviderType: jsii.String("trustProviderType"),

			// the properties below are optional
			PublicSigningKeyUrl: jsii.String("publicSigningKeyUrl"),
		},
	},
}
```

## Properties

- `enabled`: boolean | [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) (required) — Whether device posture is enabled for the Client VPN endpoint.

- `trustProviders`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnClientVpnEndpoint.DevicePostureTrustProviderProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_ec2.CfnClientVpnEndpoint.DevicePostureTrustProviderProperty.html)[] (required) — The device-posture trust providers.
