OpsWorks / Client / register_ecs_cluster
register_ecs_cluster#
- OpsWorks.Client.register_ecs_cluster(**kwargs)#
Registers a specified Amazon ECS cluster with a stack. You can register only one cluster with a stack. A cluster can be registered with only one stack. For more information, see Resource Management.
Required Permissions: To use this action, an IAM user must have a Manage permissions level for the stack or an attached policy that explicitly grants permissions. For more information on user permissions, see Managing User Permissions.
See also: AWS API Documentation
Request Syntax
response = client.register_ecs_cluster( EcsClusterArn='string', StackId='string' )
- Parameters:
EcsClusterArn (string) –
[REQUIRED]
The cluster’s ARN.
StackId (string) –
[REQUIRED]
The stack ID.
- Return type:
dict
- Returns:
Response Syntax
{ 'EcsClusterArn': 'string' }
Response Structure
(dict) –
Contains the response to a
RegisterEcsCluster
request.EcsClusterArn (string) –
The cluster’s ARN.
Exceptions