# TrustedExecutionConfigurationProperty

- Source: Generated at build time
- Type last changed: v2.278.0 · 20 Nov 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_ecs as ecs } from 'aws-cdk-lib';
const trustedExecutionConfigurationProperty: ecs.CfnTaskDefinition.TrustedExecutionConfigurationProperty = {
  isolationMode: 'isolationMode',

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

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_ecs as ecs

trusted_execution_configuration_property = ecs.CfnTaskDefinition.TrustedExecutionConfigurationProperty(
    isolation_mode="isolationMode",

    # the properties below are optional
    attestation_policy="attestationPolicy"
)
```

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

TrustedExecutionConfigurationProperty trustedExecutionConfigurationProperty = TrustedExecutionConfigurationProperty.builder()
        .isolationMode("isolationMode")

        // the properties below are optional
        .attestationPolicy("attestationPolicy")
        .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.ECS;

var trustedExecutionConfigurationProperty = new TrustedExecutionConfigurationProperty {
    IsolationMode = "isolationMode",

    // the properties below are optional
    AttestationPolicy = "attestationPolicy"
};
```

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"

trustedExecutionConfigurationProperty := &TrustedExecutionConfigurationProperty{
	IsolationMode: jsii.String("isolationMode"),

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

## Properties

- `attestationPolicy`: string — A base64-encoded attestation policy that verifies the workload before the task runs.

  Only valid when IsolationMode is CONFIDENTIAL_SANDBOX.

- `isolationMode`: string (required) — The isolation mode for the task.

  SHARED uses standard shared placement. ISOLATED_SANDBOX runs the task in its own isolated sandbox on a shared instance with hypervisor-level isolation. CONFIDENTIAL_SANDBOX runs the task in an isolated sandbox and supports an attestation policy to verify the workload before it runs.
