ElasticBeanstalk / Client / associate_environment_operations_role
associate_environment_operations_role¶
- ElasticBeanstalk.Client.associate_environment_operations_role(**kwargs)¶
Warning
The operations role feature of Elastic Beanstalk is in beta release and is subject to change.
Add or change the operations role used by an environment. After this call is made, Elastic Beanstalk uses the associated operations role for permissions to downstream services during subsequent calls acting on this environment.
See also: AWS API Documentation
Request Syntax
response = client.associate_environment_operations_role( EnvironmentName='string', OperationsRole='string' )
- Parameters:
EnvironmentName (string) –
[REQUIRED]
The name of the environment to which to set the operations role.
OperationsRole (string) –
[REQUIRED]
The Amazon Resource Name (ARN) of an existing IAM role to be used as the environment’s operations role.
- Returns:
None
Exceptions
ElasticBeanstalk.Client.exceptions.InsufficientPrivilegesException