disassociateEnvironmentOperationsRole method

Future<void> disassociateEnvironmentOperationsRole({
  1. required String environmentName,
})

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. For more information, see Operations roles in the AWS Elastic Beanstalk Developer Guide.

May throw InsufficientPrivilegesException.

Parameter environmentName : The name of the environment from which to disassociate the operations role.

Implementation

Future<void> disassociateEnvironmentOperationsRole({
  required String environmentName,
}) async {
  ArgumentError.checkNotNull(environmentName, 'environmentName');
  _s.validateStringLength(
    'environmentName',
    environmentName,
    4,
    40,
    isRequired: true,
  );
  final $request = <String, dynamic>{};
  $request['EnvironmentName'] = environmentName;
  await _protocol.send(
    $request,
    action: 'DisassociateEnvironmentOperationsRole',
    version: '2010-12-01',
    method: 'POST',
    requestUri: '/',
    exceptionFnMap: _exceptionFns,
    shape: shapes['DisassociateEnvironmentOperationsRoleMessage'],
    shapes: shapes,
  );
}