Class GrantOnPrincipalOptions.Builder
java.lang.Object
software.amazon.awscdk.services.iam.GrantOnPrincipalOptions.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<GrantOnPrincipalOptions>
- Enclosing interface:
GrantOnPrincipalOptions
@Stability(Stable)
public static final class GrantOnPrincipalOptions.Builder
extends Object
implements software.amazon.jsii.Builder<GrantOnPrincipalOptions>
A builder for
GrantOnPrincipalOptions
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionSets the value ofCommonGrantOptions.getActions()
build()
Builds the configured instance.grantee
(IGrantable grantee) Sets the value ofCommonGrantOptions.getGrantee()
resourceArns
(List<String> resourceArns) Sets the value ofCommonGrantOptions.getResourceArns()
scope
(IConstruct scope) Sets the value ofGrantOnPrincipalOptions.getScope()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
scope
Sets the value ofGrantOnPrincipalOptions.getScope()
- Parameters:
scope
- Construct to report warnings on in case grant could not be registered.- Returns:
this
-
actions
Sets the value ofCommonGrantOptions.getActions()
- Parameters:
actions
- The actions to grant. This parameter is required.- Returns:
this
-
grantee
Sets the value ofCommonGrantOptions.getGrantee()
- Parameters:
grantee
- The principal to grant to. This parameter is required.- Returns:
this
-
resourceArns
Sets the value ofCommonGrantOptions.getResourceArns()
- Parameters:
resourceArns
- The resource ARNs to grant to. This parameter is required.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<GrantOnPrincipalOptions>
- Returns:
- a new instance of
GrantOnPrincipalOptions
- Throws:
NullPointerException
- if any required attribute was not provided
-