> **Experimental**
>
> `@aws-cdk/aws-iotevents-alpha` is an [**experimental**](https://docs.aws.amazon.com/cdk/api/stability.html) (alpha) package: its API may change in any release, without a major version bump.
# ActionBindOptions

Options when binding a Action to a detector model.

- Stability: [Experimental](https://docs.aws.amazon.com/cdk/api/stability.html)
- Source: [`lib/action.ts`](https://github.com/aws/aws-cdk/blob/v2.278.0/packages/@aws-cdk/aws-iotevents-alpha/lib/action.ts#L8)

## Example

TypeScript:

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import * as iotevents_alpha from '@aws-cdk/aws-iotevents-alpha';
import { aws_iam as iam } from 'aws-cdk-lib';

declare const role: iam.Role;
const actionBindOptions: iotevents_alpha.ActionBindOptions = {
  role: role,
};
```

Python:

```python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
import aws_cdk.aws_iotevents_alpha as iotevents_alpha
from aws_cdk import aws_iam as iam

# role: iam.Role

action_bind_options = iotevents_alpha.ActionBindOptions(
    role=role
)
```

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.iotevents.alpha.*;
import software.amazon.awscdk.services.iam.*;

Role role;

ActionBindOptions actionBindOptions = ActionBindOptions.builder()
        .role(role)
        .build();
```

C# / .NET:

```csharp
// Install: dotnet add package Amazon.CDK.AWS.IoTEvents.Alpha
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.IoTEvents.Alpha;
using Amazon.CDK.AWS.IAM;

Role role;

var actionBindOptions = new ActionBindOptions {
    Role = role
};
```

Golang:

```go
// Install: go get github.com/aws/aws-cdk-go/awscdkioteventsalpha/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import iotevents_alpha "github.com/aws/aws-cdk-go/awscdkioteventsalpha"
import "github.com/aws/aws-cdk-go/awscdk"

var role Role

actionBindOptions := &ActionBindOptions{
	Role: role,
}
```

## Properties

- `role`: [IRole](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_iam.IRole.html) (required) — The IAM role assumed by IoT Events to perform the action.
