public static final class GrantOnPrincipalOptions.Builder
extends java.lang.Object
GrantOnPrincipalOptions
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
GrantOnPrincipalOptions.Builder |
actions(java.util.List<java.lang.String> actions)
Sets the value of
CommonGrantOptions.getActions() |
GrantOnPrincipalOptions |
build()
Builds the configured instance.
|
GrantOnPrincipalOptions.Builder |
grantee(IGrantable grantee)
Sets the value of
CommonGrantOptions.getGrantee() |
GrantOnPrincipalOptions.Builder |
resourceArns(java.util.List<java.lang.String> resourceArns)
Sets the value of
CommonGrantOptions.getResourceArns() |
GrantOnPrincipalOptions.Builder |
scope(IConstruct scope)
Sets the value of
GrantOnPrincipalOptions.getScope() |
public GrantOnPrincipalOptions.Builder scope(IConstruct scope)
GrantOnPrincipalOptions.getScope()
scope
- Construct to report warnings on in case grant could not be registered.this
public GrantOnPrincipalOptions.Builder actions(java.util.List<java.lang.String> actions)
CommonGrantOptions.getActions()
actions
- The actions to grant. This parameter is required.this
public GrantOnPrincipalOptions.Builder grantee(IGrantable grantee)
CommonGrantOptions.getGrantee()
grantee
- The principal to grant to. This parameter is required.this
public GrantOnPrincipalOptions.Builder resourceArns(java.util.List<java.lang.String> resourceArns)
CommonGrantOptions.getResourceArns()
resourceArns
- The resource ARNs to grant to. This parameter is required.this
public GrantOnPrincipalOptions build()
GrantOnPrincipalOptions
java.lang.NullPointerException
- if any required attribute was not provided