@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-19T20:26:39.757Z") @Stability(value=Stable) public interface GrantWithResourceOptions extends software.amazon.jsii.JsiiSerializable, CommonGrantOptions
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.iam.*;
IGrantable grantable;
IResourceWithPolicy resourceWithPolicy;
GrantWithResourceOptions grantWithResourceOptions = GrantWithResourceOptions.builder()
.actions(List.of("actions"))
.grantee(grantable)
.resource(resourceWithPolicy)
.resourceArns(List.of("resourceArns"))
// the properties below are optional
.resourceSelfArns(List.of("resourceSelfArns"))
.build();
| Modifier and Type | Interface and Description |
|---|---|
static class |
GrantWithResourceOptions.Builder
A builder for
GrantWithResourceOptions |
static class |
GrantWithResourceOptions.Jsii$Proxy
An implementation for
GrantWithResourceOptions |
| Modifier and Type | Method and Description |
|---|---|
static GrantWithResourceOptions.Builder |
builder() |
IResourceWithPolicy |
getResource()
The resource with a resource policy.
|
default List<String> |
getResourceSelfArns()
When referring to the resource in a resource policy, use this as ARN.
|
getActions, getGrantee, getResourceArns@Stability(value=Stable) @NotNull IResourceWithPolicy getResource()
The statement will be added to the resource policy if it couldn't be added to the principal policy.
@Stability(value=Stable) @Nullable default List<String> getResourceSelfArns()
(Depending on the resource type, this needs to be '*' in a resource policy).
Default: Same as regular resource ARNs
@Stability(value=Stable) static GrantWithResourceOptions.Builder builder()
builder in interface CommonGrantOptionsGrantWithResourceOptions.Builder of GrantWithResourceOptionsCopyright © 2022. All rights reserved.