The operations role feature of Elastic Beanstalk is in beta release and is subject to change.
Disassociate the operations role from an environment. After this call is made, Elastic Beanstalk uses the caller's permissions for permissions to downstream services during subsequent calls acting on this environment.
Parameters:
-
environment_name
(EnvironmentName)
–
The name of the environment from which to disassociate the operations role.
Raises:
Source code in docs_src/capo_elastic_beanstalk/_services/async_elastic_beanstalk.py
| async def disassociate_environment_operations_role(
self,
environment_name: "capo_elastic_beanstalk.types.environment_name.EnvironmentName",
*,
config_overrides: Optional[AsyncElasticBeanstalkClientConfig] = None,
) -> None:
"""<important> <p>The operations role feature of Elastic Beanstalk is in beta release and is subject to change.</p> </important> <p>Disassociate the operations role from an environment. After this call is made, Elastic Beanstalk uses the caller's permissions for permissions to downstream services during subsequent calls acting on this environment.</p>
Args:
environment_name: <p>The name of the environment from which to disassociate the operations role.</p>
Raises:
capo_elastic_beanstalk.errors.insufficient_privileges_exception.InsufficientPrivilegesException: <p>The specified account does not have sufficient privileges for one or more Amazon Web Services services.</p>
capo_elastic_beanstalk.errors.UnknownServiceError: The service returned an error code this client does not model.
"""
async def _handler(
req: "AsyncOperationRequest[capo_elastic_beanstalk.types.disassociate_environment_operations_role_message.DisassociateEnvironmentOperationsRoleMessage]",
) -> AsyncOperationResponse[None]:
import capo_elastic_beanstalk._operations.aws_elastic_beanstalk_service.disassociate_environment_operations_role
(
output,
http_response,
) = await capo_elastic_beanstalk._operations.aws_elastic_beanstalk_service.disassociate_environment_operations_role.async_disassociate_environment_operations_role(
req.options, req.input
)
return AsyncOperationResponse(output=output, response=http_response)
interceptors_, options_ = self.operation_options(
config_overrides, OperationLogging("DisassociateEnvironmentOperationsRole")
)
input_: capo_elastic_beanstalk.types.disassociate_environment_operations_role_message.DisassociateEnvironmentOperationsRoleMessage = {
"environment_name": environment_name
}
response = await aexecute_pipeline(
AsyncOperationRequest(input=input_, options=options_),
handler=_handler,
interceptors=list(interceptors_),
)
await response.response.aclose()
return response.output
|