ResourcePermissionProperty Struct
Permission for the resource.
| Source | |
|---|---|
| Type last changed |
Example
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.CfnTheme.ResourcePermissionProperty = {
actions: ['actions'],
principal: 'principal',
// the properties below are optional
resource: 'resource',
};
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.CfnTheme.ResourcePermissionProperty(
actions=["actions"],
principal="principal",
# the properties below are optional
resource="resource"
)
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")
// the properties below are optional
.resource("resource")
.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.QuickSight;
var resourcePermissionProperty = new ResourcePermissionProperty {
Actions = new [] { "actions" },
Principal = "principal",
// the properties below are optional
Resource = "resource"
};
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"),
// the properties below are optional
Resource: jsii.String("resource"),
}
Properties
actionsstring[]actionstyping.List[str]actionsList<String>Actionsstring[]Actions*[]*string required #The IAM action to grant or revoke permissions on.
The Amazon Resource Name (ARN) of the principal. This can be one of the following:.
notes
- 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.)
resourceoptionalstringresourceoptionalstrresourceoptionalStringResourceoptionalstringResourceoptional*string #