Interface GrantOnPrincipalOptions
- All Superinterfaces:
CommonGrantOptions,software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
GrantOnPrincipalOptions.Jsii$Proxy
@Generated(value="jsii-pacmak/1.120.0 (build 192dc88)",
date="2025-12-05T22:26:37.899Z")
@Stability(Stable)
public interface GrantOnPrincipalOptions
extends software.amazon.jsii.JsiiSerializable, CommonGrantOptions
Options for a grant operation that only applies to principals.
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.*;
import software.constructs.*;
Object conditions;
Construct construct;
IGrantable grantable;
GrantOnPrincipalOptions grantOnPrincipalOptions = GrantOnPrincipalOptions.builder()
.actions(List.of("actions"))
.grantee(grantable)
.resourceArns(List.of("resourceArns"))
// the properties below are optional
.conditions(Map.of(
"conditionsKey", Map.of(
"conditionsKey", conditions)))
.scope(construct)
.build();
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forGrantOnPrincipalOptionsstatic final classAn implementation forGrantOnPrincipalOptions -
Method Summary
Methods inherited from interface software.amazon.awscdk.services.iam.CommonGrantOptions
getActions, getConditions, getGrantee, getResourceArnsMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getScope
Deprecated.The scope argument is currently unused.(deprecated) Construct to report warnings on in case grant could not be registered.Default: - the construct in which this construct is defined
-
builder
- Returns:
- a
GrantOnPrincipalOptions.BuilderofGrantOnPrincipalOptions
-