Updates the list of Active Directory users and groups that have special permissions for SMB file shares on the gateway.
Parameters:
-
smb_local_groups
(SMBLocalGroups)
–
A list of Active Directory users and groups that you want to grant special permissions for SMB file shares on the gateway.
Raises:
-
InternalServerError
–
An internal server error has occurred during the request. For more information, see the error and message fields.
-
InvalidGatewayRequestException
–
An exception occurred because an invalid gateway request was issued to the service. For more information, see the error and message fields.
-
UnknownServiceError
–
The service returned an error code this client does not model.
Source code in docs_src/capo_storage_gateway/_services/storage_gateway.py
| def update_smb_local_groups(
self,
gateway_arn: "capo_storage_gateway.types.gateway_arn.GatewayARN",
smb_local_groups: "capo_storage_gateway.types.smb_local_groups.SMBLocalGroups",
*,
config_overrides: Optional[StorageGatewayClientConfig] = None,
) -> "capo_storage_gateway.types.update_smb_local_groups_output.UpdateSMBLocalGroupsOutput":
"""<p>Updates the list of Active Directory users and groups that have special permissions for SMB file shares on the gateway.</p>
Args:
smb_local_groups: <p>A list of Active Directory users and groups that you want to grant special permissions for SMB file shares on the gateway.</p>
Raises:
capo_storage_gateway.errors.internal_server_error.InternalServerError: <p>An internal server error has occurred during the request. For more information, see the error and message fields.</p>
capo_storage_gateway.errors.invalid_gateway_request_exception.InvalidGatewayRequestException: <p>An exception occurred because an invalid gateway request was issued to the service. For more information, see the error and message fields.</p>
capo_storage_gateway.errors.UnknownServiceError: The service returned an error code this client does not model.
"""
def _handler(
req: "OperationRequest[capo_storage_gateway.types.update_smb_local_groups_input.UpdateSMBLocalGroupsInput]",
) -> OperationResponse[
"capo_storage_gateway.types.update_smb_local_groups_output.UpdateSMBLocalGroupsOutput"
]:
import capo_storage_gateway._operations.storage_gateway_20130630.update_smb_local_groups
output, http_response = (
capo_storage_gateway._operations.storage_gateway_20130630.update_smb_local_groups.update_smb_local_groups(
req.options, req.input
)
)
return OperationResponse(output=output, response=http_response)
interceptors_, options_ = self.operation_options(
config_overrides, OperationLogging("UpdateSMBLocalGroups")
)
input_: capo_storage_gateway.types.update_smb_local_groups_input.UpdateSMBLocalGroupsInput = {
"gateway_arn": gateway_arn,
"smb_local_groups": smb_local_groups,
}
response = execute_pipeline(
OperationRequest(input=input_, options=options_),
handler=_handler,
interceptors=list(interceptors_),
)
response.response.close()
return response.output
|