Class ClusterGrants
java.lang.Object
software.amazon.jsii.JsiiObject
software.amazon.awscdk.services.ecs.ClusterGrants
- All Implemented Interfaces:
software.amazon.jsii.JsiiSerializable
@Generated(value="jsii-pacmak/1.119.0 (build 1634eac)",
date="2025-11-20T23:37:20.075Z")
@Stability(Stable)
public class ClusterGrants
extends software.amazon.jsii.JsiiObject
Collection of grant methods for a IClusterRef.
Example:
// The code below shows an example of how to instantiate this type. // The values are placeholders you should change. import software.amazon.awscdk.services.ecs.*; import software.amazon.awscdk.interfaces.ecs.*; IClusterRef clusterRef; ClusterGrants clusterGrants = ClusterGrants.fromCluster(clusterRef);
-
Nested Class Summary
Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationMode -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedClusterGrants(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedClusterGrants(software.amazon.jsii.JsiiObjectRef objRef) -
Method Summary
Modifier and TypeMethodDescriptionstatic ClusterGrantsfromCluster(IClusterRef resource) Creates grants for ClusterGrants.protected IClusterReftaskProtection(IGrantable grantee) Grants an ECS Task Protection API permission to the specified grantee.Methods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Constructor Details
-
ClusterGrants
protected ClusterGrants(software.amazon.jsii.JsiiObjectRef objRef) -
ClusterGrants
protected ClusterGrants(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
-
-
Method Details
-
fromCluster
Creates grants for ClusterGrants.- Parameters:
resource- This parameter is required.
-
taskProtection
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- This parameter is required.
-
getResource
-