ClusterGrants
- class aws_cdk.aws_ecs.ClusterGrants(*args: Any, **kwargs)
Bases:
objectCollection of grant methods for a IClusterRef.
- ExampleMetadata:
fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. from aws_cdk import aws_ecs as ecs from aws_cdk.interfaces import aws_ecs as interfaces_aws_ecs # cluster_ref: interfaces_aws_ecs.IClusterRef cluster_grants = ecs.ClusterGrants.from_cluster(cluster_ref)
Methods
- task_protection(grantee)
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.
- Parameters:
grantee (
IGrantable)- Return type:
Static Methods
- classmethod from_cluster(resource)
Creates grants for ClusterGrants.
- Parameters:
resource (
IClusterRef)- Return type: