Class CfnDashboard.ResourcePermissionProperty.Builder
java.lang.Object
software.amazon.awscdk.services.quicksight.CfnDashboard.ResourcePermissionProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnDashboard.ResourcePermissionProperty>
- Enclosing interface:
CfnDashboard.ResourcePermissionProperty
@Stability(Stable)
public static final class CfnDashboard.ResourcePermissionProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnDashboard.ResourcePermissionProperty>
A builder for
CfnDashboard.ResourcePermissionProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionSets the value ofCfnDashboard.ResourcePermissionProperty.getActions()
build()
Builds the configured instance.Sets the value ofCfnDashboard.ResourcePermissionProperty.getPrincipal()
Sets the value ofCfnDashboard.ResourcePermissionProperty.getResource()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
actions
@Stability(Stable) public CfnDashboard.ResourcePermissionProperty.Builder actions(List<String> actions) Sets the value ofCfnDashboard.ResourcePermissionProperty.getActions()
- Parameters:
actions
- The IAM action to grant or revoke permissions on. This parameter is required.- Returns:
this
-
principal
@Stability(Stable) public CfnDashboard.ResourcePermissionProperty.Builder principal(String principal) Sets the value ofCfnDashboard.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
-
resource
Sets the value ofCfnDashboard.ResourcePermissionProperty.getResource()
- Parameters:
resource
-CfnDashboard.ResourcePermissionProperty.Resource
.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnDashboard.ResourcePermissionProperty>
- Returns:
- a new instance of
CfnDashboard.ResourcePermissionProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-