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