Class CfnDataSet.ResourcePermissionProperty.Builder
java.lang.Object
software.amazon.awscdk.services.quicksight.CfnDataSet.ResourcePermissionProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnDataSet.ResourcePermissionProperty>
- Enclosing interface:
- CfnDataSet.ResourcePermissionProperty
@Stability(Stable)
public static final class CfnDataSet.ResourcePermissionProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnDataSet.ResourcePermissionProperty>
A builder for
CfnDataSet.ResourcePermissionProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionSets the value ofCfnDataSet.ResourcePermissionProperty.getActions()
build()
Builds the configured instance.Sets the value ofCfnDataSet.ResourcePermissionProperty.getPrincipal()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
actions
@Stability(Stable) public CfnDataSet.ResourcePermissionProperty.Builder actions(List<String> actions) Sets the value ofCfnDataSet.ResourcePermissionProperty.getActions()
- Parameters:
actions
- The IAM action to grant or revoke permisions on. This parameter is required.- Returns:
this
-
principal
Sets the value ofCfnDataSet.ResourcePermissionProperty.getPrincipal()
- Parameters:
principal
- The Amazon Resource Name (ARN) of the principal. This can be one of the following:. This parameter is required.- The ARN of an Amazon QuickSight user or group associated with a data source or dataset. (This is common.)
- The ARN of an Amazon QuickSight 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 Amazon QuickSight ARN. Use this option only to share resources (templates) across AWS accounts . (This is less common.)
- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnDataSet.ResourcePermissionProperty>
- Returns:
- a new instance of
CfnDataSet.ResourcePermissionProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-