# ResourcePermissionProperty

Permission for the resource.

- Source: Generated at build time
- Type last changed: v2.93.0 · 23 Aug 2023

## Example

TypeScript:

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_quicksight as quicksight } from 'aws-cdk-lib';
const resourcePermissionProperty: quicksight.CfnDataSet.ResourcePermissionProperty = {
  actions: ['actions'],
  principal: 'principal',
};
```

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_quicksight as quicksight

resource_permission_property = quicksight.CfnDataSet.ResourcePermissionProperty(
    actions=["actions"],
    principal="principal"
)
```

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

ResourcePermissionProperty resourcePermissionProperty = ResourcePermissionProperty.builder()
        .actions(List.of("actions"))
        .principal("principal")
        .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.QuickSight;

var resourcePermissionProperty = new ResourcePermissionProperty {
    Actions = new [] { "actions" },
    Principal = "principal"
};
```

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"

resourcePermissionProperty := &ResourcePermissionProperty{
	Actions: []*string{
		jsii.String("actions"),
	},
	Principal: jsii.String("principal"),
}
```

## Properties

- `actions`: string[] (required) — The IAM action to grant or revoke permisions on.

- `principal`: string (required) — The Amazon Resource Name (ARN) of the principal. This can be one of the following:.

  - The ARN of an AWS Quick user or group associated with a data source or dataset. (This is common.)
  - The ARN of an AWS Quick user, group, or namespace associated with an analysis, dashboard, template, or theme. (This is common.)
  - The ARN of an AWS account root: This is an IAM ARN rather than a Quick ARN. Use this option only to share resources (templates) across AWS accounts . (This is less common.)
