> **Experimental**
>
> `@aws-cdk/aws-iot-actions-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.
# CommonActionProps

Common properties shared by Actions it access to AWS service.

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

## Example

TypeScript:

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

declare const role: iam.Role;
const commonActionProps: iot_actions_alpha.CommonActionProps = {
  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_iot_actions_alpha as iot_actions_alpha
from aws_cdk import aws_iam as iam

# role: iam.Role

common_action_props = iot_actions_alpha.CommonActionProps(
    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.iot.actions.alpha.*;
import software.amazon.awscdk.services.iam.*;

Role role;

CommonActionProps commonActionProps = CommonActionProps.builder()
        .role(role)
        .build();
```

C# / .NET:

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

Role role;

var commonActionProps = new CommonActionProps {
    Role = role
};
```

Golang:

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

var role Role

commonActionProps := &CommonActionProps{
	Role: role,
}
```

## Properties

- `role`: [IRole](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_iam.IRole.html) — The IAM role that allows access to AWS service.

  **Default:** a new role will be created
