# PreferencesProperty

Preferences that configure behavior of this AgentSpace.

This container fully owns the AgentSpace preferences: the properties supplied here replace the stored preferences in their entirety, and omitting the Preferences container reverts all preferences to their service defaults.

- Source: Generated at build time
- Type last changed: v2.272.0 · 30 Sep 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_devopsagent as devopsagent } from 'aws-cdk-lib';
const preferencesProperty: devopsagent.CfnAgentSpace.PreferencesProperty = {
  elevatedActionsEnabled: false,
};
```

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_devopsagent as devopsagent

preferences_property = devopsagent.CfnAgentSpace.PreferencesProperty(
    elevated_actions_enabled=False
)
```

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

PreferencesProperty preferencesProperty = PreferencesProperty.builder()
        .elevatedActionsEnabled(false)
        .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.DevOpsAgent;

var preferencesProperty = new PreferencesProperty {
    ElevatedActionsEnabled = false
};
```

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"

preferencesProperty := &PreferencesProperty{
	ElevatedActionsEnabled: jsii.Boolean(false),
}
```

## Properties

- `elevatedActionsEnabled`: boolean | [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) — Indicates whether elevated directed actions are permitted in this AgentSpace.

  Defaults to false when not set.
