updateResourceGateway method

Future<UpdateResourceGatewayResponse> updateResourceGateway({
  1. required String resourceGatewayIdentifier,
  2. List<String>? securityGroupIds,
})

Updates the specified resource gateway.

May throw AccessDeniedException. May throw ConflictException. May throw InternalServerException. May throw ResourceNotFoundException. May throw ThrottlingException. May throw ValidationException.

Parameter resourceGatewayIdentifier : The ID or ARN of the resource gateway.

Parameter securityGroupIds : The IDs of the security groups associated with the resource gateway.

Implementation

Future<UpdateResourceGatewayResponse> updateResourceGateway({
  required String resourceGatewayIdentifier,
  List<String>? securityGroupIds,
}) async {
  final $payload = <String, dynamic>{
    if (securityGroupIds != null) 'securityGroupIds': securityGroupIds,
  };
  final response = await _protocol.send(
    payload: $payload,
    method: 'PATCH',
    requestUri:
        '/resourcegateways/${Uri.encodeComponent(resourceGatewayIdentifier)}',
    exceptionFnMap: _exceptionFns,
  );
  return UpdateResourceGatewayResponse.fromJson(response);
}