Skip to content
v2.278.0

TrustedExecutionConfigurationProperty Struct ​

Example ​

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
# 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
// 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();
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"
};
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 ​

attestationPolicyoptionalstringattestation_policyoptionalstrattestationPolicyoptionalStringAttestationPolicyoptionalstringAttestationPolicyoptional*string #
A base64-encoded attestation policy that verifies the workload before the task runs.

Only valid when IsolationMode is CONFIDENTIAL_SANDBOX.

isolationModestringisolation_modestrisolationModeStringIsolationModestringIsolationMode*string required #
The isolation mode for the task.
notes

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.