@Stability(value=Experimental) public static final class GrantWithResourceOptions.Builder extends Object implements software.amazon.jsii.Builder<GrantWithResourceOptions>
GrantWithResourceOptions| Constructor and Description |
|---|
Builder() |
| Modifier and Type | Method and Description |
|---|---|
GrantWithResourceOptions.Builder |
actions(List<String> actions)
Sets the value of
CommonGrantOptions.getActions() |
GrantWithResourceOptions |
build()
Builds the configured instance.
|
GrantWithResourceOptions.Builder |
grantee(IGrantable grantee)
Sets the value of
CommonGrantOptions.getGrantee() |
GrantWithResourceOptions.Builder |
resource(IResourceWithPolicy resource)
Sets the value of
GrantWithResourceOptions.getResource() |
GrantWithResourceOptions.Builder |
resourceArns(List<String> resourceArns)
Sets the value of
CommonGrantOptions.getResourceArns() |
GrantWithResourceOptions.Builder |
resourceSelfArns(List<String> resourceSelfArns)
Sets the value of
GrantWithResourceOptions.getResourceSelfArns() |
@Stability(value=Experimental) public GrantWithResourceOptions.Builder resource(IResourceWithPolicy resource)
GrantWithResourceOptions.getResource()resource - The resource with a resource policy. This parameter is required.
The statement will be added to the resource policy if it couldn't be
added to the principal policy.this@Stability(value=Experimental) public GrantWithResourceOptions.Builder resourceSelfArns(List<String> resourceSelfArns)
GrantWithResourceOptions.getResourceSelfArns()resourceSelfArns - When referring to the resource in a resource policy, use this as ARN.
(Depending on the resource type, this needs to be '*' in a resource policy).this@Stability(value=Experimental) public GrantWithResourceOptions.Builder actions(List<String> actions)
CommonGrantOptions.getActions()actions - The actions to grant. This parameter is required.this@Stability(value=Experimental) public GrantWithResourceOptions.Builder grantee(IGrantable grantee)
CommonGrantOptions.getGrantee()grantee - The principal to grant to. This parameter is required.this@Stability(value=Experimental) public GrantWithResourceOptions.Builder resourceArns(List<String> resourceArns)
CommonGrantOptions.getResourceArns()resourceArns - The resource ARNs to grant to. This parameter is required.this@Stability(value=Experimental) public GrantWithResourceOptions build()
build in interface software.amazon.jsii.Builder<GrantWithResourceOptions>GrantWithResourceOptionsNullPointerException - if any required attribute was not providedCopyright © 2021. All rights reserved.