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