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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionSets the value ofCommonGrantOptions.getActions()build()Builds the configured instance.Sets the value ofCommonGrantOptions.getConditions()grantee(IGrantable grantee) Sets the value ofCommonGrantOptions.getGrantee()resourceArns(List<String> resourceArns) Sets the value ofCommonGrantOptions.getResourceArns()scope(software.constructs.IConstruct scope) Sets the value ofGrantOnPrincipalOptions.getScope()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
scope
@Stability(Stable) public GrantOnPrincipalOptions.Builder scope(software.constructs.IConstruct 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
-
conditions
@Stability(Stable) public GrantOnPrincipalOptions.Builder conditions(Map<String, ? extends Map<String, ? extends Object>> conditions) Sets the value ofCommonGrantOptions.getConditions()- Parameters:
conditions- Any conditions to attach to the grant.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<GrantOnPrincipalOptions>- Returns:
- a new instance of
GrantOnPrincipalOptions - Throws:
NullPointerException- if any required attribute was not provided
-