Files
agent-claw/cdk/node_modules/aws-cdk-lib/aws-ecs/lib/cluster-grants.d.ts
2026-05-06 18:55:16 -05:00

28 lines
986 B
TypeScript

import type * as ecs from './ecs.generated';
import type { IGrantable } from '../../aws-iam';
import { Grant } from '../../aws-iam';
/**
* Collection of grant methods for a IClusterRef
*/
export declare class ClusterGrants {
/**
* Creates grants for ClusterGrants
*/
static fromCluster(resource: ecs.IClusterRef): ClusterGrants;
protected readonly resource: ecs.IClusterRef;
private constructor();
/**
* Grants an ECS Task Protection API permission to the specified grantee.
* This method provides a streamlined way to assign the 'ecs:UpdateTaskProtection'
* permission, enabling the grantee to manage task protection in the ECS cluster.
*/
taskProtection(grantee: IGrantable): Grant;
/**
* Returns an ARN that represents all tasks within the cluster that match
* the task pattern specified. To represent all tasks, specify ``"*"``.
*
* @param keyPattern Task id pattern
*/
private arnForTasks;
}