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