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'
)
[REQUIRED]
The cluster's ARN.
[REQUIRED]
The stack ID.
dict
Response Syntax
{
'EcsClusterArn': 'string'
}
Response Structure
(dict) --
Contains the response to a RegisterEcsCluster
request.
EcsClusterArn (string) --
The cluster's ARN.
Exceptions
OpsWorks.Client.exceptions.ValidationException
OpsWorks.Client.exceptions.ResourceNotFoundException