@Stability(value=Stable) public static final class GrantOnPrincipalAndResourceOptions.Builder extends Object implements software.amazon.jsii.Builder<GrantOnPrincipalAndResourceOptions>
GrantOnPrincipalAndResourceOptions| Constructor and Description |
|---|
Builder() |
@Stability(value=Stable) public GrantOnPrincipalAndResourceOptions.Builder resource(IResourceWithPolicy resource)
GrantOnPrincipalAndResourceOptions.getResource()resource - The resource with a resource policy. This parameter is required.
The statement will always be added to the resource policy.this@Stability(value=Stable) public GrantOnPrincipalAndResourceOptions.Builder resourcePolicyPrincipal(IPrincipal resourcePolicyPrincipal)
GrantOnPrincipalAndResourceOptions.getResourcePolicyPrincipal()resourcePolicyPrincipal - The principal to use in the statement for the resource policy.this@Stability(value=Stable) public GrantOnPrincipalAndResourceOptions.Builder resourceSelfArns(List<String> resourceSelfArns)
GrantOnPrincipalAndResourceOptions.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=Stable) public GrantOnPrincipalAndResourceOptions.Builder actions(List<String> actions)
CommonGrantOptions.getActions()actions - The actions to grant. This parameter is required.this@Stability(value=Stable) public GrantOnPrincipalAndResourceOptions.Builder grantee(IGrantable grantee)
CommonGrantOptions.getGrantee()grantee - The principal to grant to. This parameter is required.this@Stability(value=Stable) public GrantOnPrincipalAndResourceOptions.Builder resourceArns(List<String> resourceArns)
CommonGrantOptions.getResourceArns()resourceArns - The resource ARNs to grant to. This parameter is required.this@Stability(value=Stable) public GrantOnPrincipalAndResourceOptions build()
build in interface software.amazon.jsii.Builder<GrantOnPrincipalAndResourceOptions>GrantOnPrincipalAndResourceOptionsNullPointerException - if any required attribute was not providedCopyright © 2022. All rights reserved.