Interface GrantWithResourceOptions
- All Superinterfaces:
CommonGrantOptions
,software.amazon.jsii.JsiiSerializable
- All Known Subinterfaces:
GrantPolicyWithResourceOptions
- All Known Implementing Classes:
GrantPolicyWithResourceOptions.Jsii$Proxy
,GrantWithResourceOptions.Jsii$Proxy
@Generated(value="jsii-pacmak/1.110.0 (build 336b265)",
date="2025-04-17T00:47:06.393Z")
@Stability(Stable)
public interface GrantWithResourceOptions
extends software.amazon.jsii.JsiiSerializable, CommonGrantOptions
Options for a grant operation.
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.*; Object conditions; 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 .conditions(Map.of( "conditionsKey", Map.of( "conditionsKey", conditions))) .resourceSelfArns(List.of("resourceSelfArns")) .build();
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final class
A builder forGrantWithResourceOptions
static final class
An implementation forGrantWithResourceOptions
-
Method Summary
Modifier and TypeMethodDescriptionbuilder()
The resource with a resource policy.When referring to the resource in a resource policy, use this as ARN.Methods inherited from interface software.amazon.awscdk.services.iam.CommonGrantOptions
getActions, getConditions, getGrantee, getResourceArns
Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getResource
The resource with a resource policy.The statement will be added to the resource policy if it couldn't be added to the principal policy.
-
getResourceSelfArns
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).
Default: Same as regular resource ARNs
-
builder
- Returns:
- a
GrantWithResourceOptions.Builder
ofGrantWithResourceOptions
-