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/elastic_beanstalk.py
| def disassociate_environment_operations_role(
self,
environment_name: "capo_elastic_beanstalk.types.environment_name.EnvironmentName",
*,
config_overrides: Optional[ElasticBeanstalkClientConfig] = 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.
"""
def _handler(
req: "OperationRequest[capo_elastic_beanstalk.types.disassociate_environment_operations_role_message.DisassociateEnvironmentOperationsRoleMessage]",
) -> OperationResponse[None]:
import capo_elastic_beanstalk._operations.aws_elastic_beanstalk_service.disassociate_environment_operations_role
output, http_response = (
capo_elastic_beanstalk._operations.aws_elastic_beanstalk_service.disassociate_environment_operations_role.disassociate_environment_operations_role(
req.options, req.input
)
)
return OperationResponse(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 = execute_pipeline(
OperationRequest(input=input_, options=options_),
handler=_handler,
interceptors=list(interceptors_),
)
response.response.close()
return response.output
|