class ConsumableResourceGrants
| Language | Type name |
|---|---|
.NET | Amazon.CDK.AWS.Batch.ConsumableResourceGrants |
Go | github.com/aws/aws-cdk-go/awscdk/v2/awsbatch#ConsumableResourceGrants |
Java | software.amazon.awscdk.services.batch.ConsumableResourceGrants |
Python | aws_cdk.aws_batch.ConsumableResourceGrants |
TypeScript | aws-cdk-lib » aws_batch » ConsumableResourceGrants |
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 { aws_batch as batch } from 'aws-cdk-lib';
import { aws_batch as interfaces_batch } from 'aws-cdk-lib/interfaces';
declare const consumableResourceRef: interfaces_batch.IConsumableResourceRef;
const consumableResourceGrants = batch.ConsumableResourceGrants.fromConsumableResource(consumableResourceRef);
Properties
| Name | Type | Description |
|---|---|---|
| resource | IConsumable |
resource
Type:
IConsumable
Methods
| Name | Description |
|---|---|
| actions(grantee, actions, options?) | Grant the given identity custom permissions. |
| read(grantee) | Grant permission to describe this consumable resource and list the jobs that use it. |
| update(grantee) | Grant permission to change the total quantity of this consumable resource. |
| static from | Creates grants for ConsumableResourceGrants. |
actions(grantee, actions, options?)
public actions(grantee: IGrantable, actions: string[], options?: PermissionsOptions): Grant
Parameters
- grantee
IGrantable - actions
string[] - options
PermissionsOptions
Returns
Grant the given identity custom permissions.
read(grantee)
public read(grantee: IGrantable): Grant
Parameters
- grantee
IGrantable
Returns
Grant permission to describe this consumable resource and list the jobs that use it.
This will grant the following permissions:
- batch:DescribeConsumableResource
- batch:ListJobsByConsumableResource
update(grantee)
public update(grantee: IGrantable): Grant
Parameters
- grantee
IGrantable
Returns
Grant permission to change the total quantity of this consumable resource.
This will grant the following permissions:
- batch:UpdateConsumableResource
static fromConsumableResource(resource)
public static fromConsumableResource(resource: IConsumableResourceRef): ConsumableResourceGrants
Parameters
- resource
IConsumableResource Ref
Returns
Creates grants for ConsumableResourceGrants.

.NET
Go
Java
Python
TypeScript