DevicePostureOptionsProperty Struct
| Source | |
|---|---|
| Type last changed |
Example
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
# 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
// 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();
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"
} }
};
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
enabledboolean | IResolvableenabledtyping.Union[bool, IResolvable]enabledBooleanEnabledboolEnabledinterface{} required #Whether device posture is enabled for the Client VPN endpoint.
trustProvidersIResolvable | IResolvable | CfnClientVpnEndpoint.trust_providerstyping.Union[IResolvable, typing.List[typing.Union[IResolvable, DevicePostureTrustProviderProperty]]]trustProvidersIResolvableTrustProvidersIResolvableTrustProvidersinterface{} required #The device-posture trust providers.