UNPKG

aws-cdk-lib

Version:

Version 2 of the AWS Cloud Development Kit library

28 lines (27 loc) 986 B
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; }