UNPKG

aws-cdk-lib

Version:

Version 2 of the AWS Cloud Development Kit library

27 lines (26 loc) 944 B
import * as ecs from './ecs.generated'; import { Grant, IGrantable } 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; }