Skip to content
v2.278.0

ResourcePermissionProperty Struct ​

<p>Permission for the resource.</p>.

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.CfnKnowledgeBase.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.CfnKnowledgeBase.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 #
<p>The IAM action to grant or revoke permissions on.</p>.
principalstringprincipalstrprincipalStringPrincipalstringPrincipal*string required #
<p>The Amazon Resource Name (ARN) of the principal.
notes

This can be one of the following:</p> <ul> <li> <p>The ARN of an Amazon Quick user or group associated with a data source or dataset. (This is common.)</p> </li> <li> <p>The ARN of an Amazon Quick user, group, or namespace associated with an analysis, dashboard, template, or theme. (This is common.)</p> </li> <li> <p>The ARN of an Amazon Web Services account root: This is an IAM ARN rather than a QuickSight ARN. Use this option only to share resources (templates) across Amazon Web Services accounts. (This is less common.) </p> </li> </ul>

resourceoptionalstringresourceoptionalstrresourceoptionalStringResourceoptionalstringResourceoptional*string #