Class ConsumableResourceGrants
java.lang.Object
software.amazon.jsii.JsiiObject
software.amazon.awscdk.services.batch.ConsumableResourceGrants
- All Implemented Interfaces:
software.amazon.jsii.JsiiSerializable
@Generated(value="jsii-pacmak/1.140.0 (build 79fd58c)",
date="2026-10-08T16:59:48.460Z")
@Stability(Stable)
public class ConsumableResourceGrants
extends software.amazon.jsii.JsiiObject
Collection of grant methods for a IConsumableResourceRef.
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.batch.*; import software.amazon.awscdk.interfaces.batch.*; IConsumableResourceRef consumableResourceRef; ConsumableResourceGrants consumableResourceGrants = ConsumableResourceGrants.fromConsumableResource(consumableResourceRef);
-
Nested Class Summary
Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationMode -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedConsumableResourceGrants(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedConsumableResourceGrants(software.amazon.jsii.JsiiObjectRef objRef) -
Method Summary
Modifier and TypeMethodDescriptionactions(IGrantable grantee, List<String> actions) Grant the given identity custom permissions.actions(IGrantable grantee, List<String> actions, PermissionsOptions options) Grant the given identity custom permissions.static ConsumableResourceGrantsfromConsumableResource(IConsumableResourceRef resource) Creates grants for ConsumableResourceGrants.protected IConsumableResourceRefread(IGrantable grantee) Grant permission to describe this consumable resource and list the jobs that use it.update(IGrantable grantee) Grant permission to change the total quantity of this consumable resource.Methods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Constructor Details
-
ConsumableResourceGrants
protected ConsumableResourceGrants(software.amazon.jsii.JsiiObjectRef objRef) -
ConsumableResourceGrants
protected ConsumableResourceGrants(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
-
-
Method Details
-
fromConsumableResource
@Stability(Stable) @NotNull public static ConsumableResourceGrants fromConsumableResource(@NotNull IConsumableResourceRef resource) Creates grants for ConsumableResourceGrants.- Parameters:
resource- This parameter is required.
-
actions
@Stability(Stable) @NotNull public Grant actions(@NotNull IGrantable grantee, @NotNull List<String> actions, @Nullable PermissionsOptions options) Grant the given identity custom permissions.- Parameters:
grantee- This parameter is required.actions- This parameter is required.options-
-
actions
@Stability(Stable) @NotNull public Grant actions(@NotNull IGrantable grantee, @NotNull List<String> actions) Grant the given identity custom permissions.- Parameters:
grantee- This parameter is required.actions- This parameter is required.
-
read
Grant permission to describe this consumable resource and list the jobs that use it.This will grant the following permissions:
- batch:DescribeConsumableResource
- batch:ListJobsByConsumableResource
- Parameters:
grantee- This parameter is required.
-
update
Grant permission to change the total quantity of this consumable resource.This will grant the following permissions:
- batch:UpdateConsumableResource
- Parameters:
grantee- This parameter is required.
-
getResource
-